Re: Accounting for SHELL in ./configure

2024-05-03 Thread Hin-Tak Leung
bind mount (and anything invoking mount) requires root privilege, except for fusemount and some removable medium use cases - even that is often disabled based on site policy. Using proot-me seems to be no better than the original poster's - depending on a peculiar way of doing things

Re: Accounting for SHELL in ./configure

2024-05-03 Thread Matsumura, George
Greetings, I hope this is relevant and not besides the point, but I was thinking that you may be able to use proot to bind mount your shell to /bin/sh without root privileges: https://proot-me.github.io/ Hopefully this would also be useful in other situations where the SHELL environment

Re: Accounting for SHELL in ./configure

2024-05-03 Thread Werner LEMBERG
>> But you still doesn't show us an *exact* recipe or log files that >> demonstrates the problem you encounter. > > Below you can see the error: (the Readline library that '/bin/sh' > needed was more recent than our custom Readline installation; so > '/bin/sh' could not find the function it

Re: Accounting for SHELL in ./configure

2024-05-03 Thread Mohammad Akhlaghi
But you still doesn't show us an *exact* recipe or log files that demonstrates the problem you encounter. Below you can see the error: (the Readline library that '/bin/sh' needed was more recent than our custom Readline installation; so '/bin/sh' could not find the function it needed

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Werner LEMBERG
>> Please describe your setup carefully before jumping to quick >> solutions. > > The problem occurred on an Arch GNU/Linux, and the '/bin/sh > --version' is GNU Bash 5.2.26 and I installed FreeType 2.11.0. After > checking the Git repository and noticing that my particular problem > occurred

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Hin-Tak Leung
I dare say your problem does not happen to thousands of Arch Linux users who try to compile freetype. One thing on the security aspect of sh and GNU Bash - you are aware that GNU Bash itself behaves differently, depending on what you call the binary, right? If you build GNU Bash yourself, then

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Alexei Podtelezhnikov
> > The main purpose of going through all this trouble is long-term > reproducibility of our scientific publications/results. Reproducibility is not equal to determinism.

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Mohammad Akhlaghi
Thanks Hin-Tak, I will be updating the version of FreeType shortly, this was for an older project. The main purpose of going through all this trouble is long-term reproducibility of our scientific publications/results. Unfortunately that is something most operating system package managers

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Hin-Tak Leung
Hmm, why are you trying to compile an older version of freetype (2.11.x), when arch linux ships 2.13.x ?  Anyway, here is how the Arch Linux people build freetype - they use meson instead of autoconf (PKGBUILD itself is largely a shell script with, divided into shell script routines):

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Mohammad Akhlaghi
Dear Alexei, Werner and Hin-Tak, Thank you for the comments; I appreciate the prompt replies :-). There is this peculiar autogen.sh to be run initially... Still fails? How? I had indeed read the README, but it had only instructed using 'autogen.sh' when "... building a git snapshot or

Re: Accounting for SHELL in ./configure

2024-05-02 Thread Hin-Tak Leung
Besides what Werner said - name your system. Most of the world has converged on GNU bash, but Ubuntu/Debian uses dash, some older Solaris used ksh. Some really old unix system (tru64 came to mind) has genuine BSD sh. You wrote about lacking the privilege to be root, so I guess you are not

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Werner LEMBERG
>> >> Do you mean here? >> >> https://gitlab.freedesktop.org/freetype/freetype/-/tree/master/builds/unix >> ... > > Please start at README and README.git or here: > https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/INSTALL.UNIX > > There is this peculiar autogen.sh to be run

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Alexei Podtelezhnikov
On Wed, May 1, 2024 at 7:11 PM Mohammad Akhlaghi wrote: > > Do you mean here? > > https://gitlab.freedesktop.org/freetype/freetype/-/tree/master/builds/unix > ... Please start at README and README.git or here: https://gitlab.freedesktop.org/freetype/freetype/-/blob/master/docs/INSTALL.UNIX

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Mohammad Akhlaghi
Do you mean here? https://gitlab.freedesktop.org/freetype/freetype/-/tree/master/builds/unix There is only 'configure.raw' there; its contents are indeed Autoconf, but its name is non-standard, that is probably why I missed it ;-). The main point is that the 'configure' script at the top

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Behdad Esfahbod
I know all that. :) Check out builds/unix/configure.ac behdad http://behdad.org/ On Wed, May 1, 2024 at 4:40 PM Mohammad Akhlaghi wrote: > I had set the 'SHELL' environment variable but still '/bin/sh' was used. > The only way I could pass my SHELL to the Make command within the > configure

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Mohammad Akhlaghi
I had set the 'SHELL' environment variable but still '/bin/sh' was used. The only way I could pass my SHELL to the Make command within the configure script was through the non-standard hack I mentioned before: GNUMAKE="make SHELL=$SHELL" Autoconf generates the './configure' script

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Behdad Esfahbod
Scratch that. Where is it exactly failing? On Unix, the build system is essentially autoconf, so it should respect SHELL as you suggest. behdad http://behdad.org/ On Wed, May 1, 2024 at 3:15 PM Behdad Esfahbod wrote: > Can you check if also setting CONFIG_SHELL helps? > > behdad >

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Behdad Esfahbod
Can you check if also setting CONFIG_SHELL helps? behdad http://behdad.org/ On Wed, May 1, 2024 at 3:06 PM Mohammad Akhlaghi wrote: > The Autoconf-generated configure script, or even CMake, respect SHELL, so > if a user gives it a problematic shell, they won't be able to build > anything abd

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Mohammad Akhlaghi
The Autoconf-generated configure script, or even CMake, respect SHELL, so if a user gives it a problematic shell, they won't be able to build anything abd many programs will crash. But please consider the scenario mentioned before: when a user doesn't have root permissions to change

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Behdad Esfahbod
I'm not talking about the user overriding the shell specifically. I'm talking about users who genuinely use a non-POSIX shell as their terminal shell. Then just running ./configure would fail if configure was to respect $SHELL. Or rather you're saying that only POSIX-compatible shells should set

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Mohammad Akhlaghi
Thanks Behdad, The problem is that I do not have root permissions on the system with the faulty '/bin/sh': I cannot change '/bin/sh' and need to build my programs with a custom shell. If the user specifies a wrong shell (not the default '/bin/sh'), it is their own responsibility that it is

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Behdad Esfahbod
There's no guarantee that the user's shell is sh-compatible. autoconf really means sh here, because that's the shell the script is written for. Just symlink your favorite shell to sh then, if it's compatible. behdad http://behdad.org/ On Wed, May 1, 2024 at 2:13 PM Mohammad Akhlaghi wrote: >

Re: Accounting for SHELL in ./configure

2024-05-01 Thread Mohammad Akhlaghi
Hi again, I was able to find a cleaner hack by running this command before the './configure' script: export GNUMAKE="make SHELL=$SHELL" Afterwards, FreeType successfully ran with my desired shell. But generally, it would greatly help those building FreeType from source if the configure