> Norman Ramsey <[email protected]> wrote:
> |> There was a missing line continuation in the install: rule of the
> |> makefile, the fix is on [master]. Thanks so much again! Could it
> |> be that this fixes your issue? Would be good to know!
> |
> |Fixed.
> |
> | make OPT_AUTOCC=no VAL_PREFIX=/tmp/s-nail VAL_PRIVSEP_USER=nr install
> |
> |Works as expected.
>
> Really?? That is good news! I would not have known where to look
> at otherwise, easily.
>
> And you want me to support CC=cc on the command line, do you?
Not necessary. That OPT_AUTOCC=no is to work around the bug running
/home/nr/bin/clang, the fix for which must not have made it to the
master branch yet:
nr@homedog ~/n/s-nail> make config
Checking for basic utility set
Setting up configuration options ... done
Joining in ./make.rc ... done
Operating system is linux
Checking for remaining set of utilities
Evaluating all configuration items ... done
Searching for a usable C compiler .. $CC=/home/nr/bin/clang
./make-config.sh: 1183: ./make-config.sh: /home/nr/bin/clang: Permission
denied
ERROR: i cannot compile a "Hello world" via
/home/nr/bin/clang -I./
ERROR: Please read INSTALL, rerun
makefile:14: recipe for target 'config' failed
make: *** [config] Error 1
nr@homedog ~/n/s-nail>
> I wonder how VAL_PRIVSEP_USER=nr pays you anything.
The 'install' target tries to chown a file to be owned by root,
but it's not running with root privileges, so the chown fails.
Setting VAL_PRIVSEP_USER=nr suppresses the error message.
It's not obvious to me what you should do when 'make install'
is run as non-root, but perhaps not try to chown things to root :-)
> And we now follow something similar to the established "config-it
> && build-it && PRIVILEGED install-it"
I have never liked this model. When I build a package from source, I
install it in /usr/local/, which does *not* (and should not) require
extraordinary privileges. But that's just me.
Norman