* coreutils: Can't exec "/bin/sh": No such file or directory at ./man/help2man
@ 2013-06-22 16:59 Nikita Karetnikov
2013-06-22 20:22 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Nikita Karetnikov @ 2013-06-22 16:59 UTC (permalink / raw)
To: bug-guix
[-- Attachment #1: Type: text/plain, Size: 1234 bytes --]
# ./pre-inst-env guix build -K --no-substitutes coreutils
[...]
Can't exec "/bin/sh": No such file or directory at ./man/help2man line 229.
help2man: can't get '--help' info from man/chroot.td/chroot
make[2]: *** [man/chroot.1] Error 2
make[2]: Leaving directory `/tmp/nix-build-coreutils-8.21.drv-3/coreutils-8.21'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nix-build-coreutils-8.21.drv-3/coreutils-8.21'
make: *** [all] Error 2
phase `build' failed after 55 seconds
note: keeping build directory `/tmp/nix-build-coreutils-8.21.drv-3'
builder for `/nix/store/jyj752q3jjxj0xjgm7wh2xwhkckndab7-coreutils-8.21.drv' failed with exit code 1
@ build-failed /nix/store/jyj752q3jjxj0xjgm7wh2xwhkckndab7-coreutils-8.21.drv - 1 builder for `/nix/store/jyj752q3jjxj0xjgm7wh2xwhkckndab7-coreutils-8.21.drv' failed with exit code 1
guix build: error: build failed: build of `/nix/store/jyj752q3jjxj0xjgm7wh2xwhkckndab7-coreutils-8.21.drv' failed
/tmp/nix-build-coreutils-8.21.drv-3/coreutils-8.21# grep -r "/bin/sh" man
[...]
Binary file man/chroot.td/chroot matches
# strings chroot | grep /bin/sh
/bin/sh
If no command is given, run '${SHELL} -i' (default: '/bin/sh -i').
Can this be fixed with 'substitute*'?
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: coreutils: Can't exec "/bin/sh": No such file or directory at ./man/help2man
2013-06-22 16:59 coreutils: Can't exec "/bin/sh": No such file or directory at ./man/help2man Nikita Karetnikov
@ 2013-06-22 20:22 ` Ludovic Courtès
2013-06-23 1:01 ` Nikita Karetnikov
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2013-06-22 20:22 UTC (permalink / raw)
To: Nikita Karetnikov; +Cc: bug-guix
Nikita Karetnikov <nikita@karetnikov.org> skribis:
> # ./pre-inst-env guix build -K --no-substitutes coreutils
What’s the output path for that? (See "out" in
/nix/store/jyj752q3jjxj0xjgm7wh2xwhkckndab7-coreutils-8.21.drv, for
instance.)
Which Guix commit is it, and which platform?
> [...]
>
> Can't exec "/bin/sh": No such file or directory at ./man/help2man line 229.
> help2man: can't get '--help' info from man/chroot.td/chroot
> make[2]: *** [man/chroot.1] Error 2
The line in question is:
join '', map { s/ +$//; expand $_ } `$ARGV[0] $_ 2>/dev/null`
It could be that Perl’s backquote thing uses /bin/sh, but then we’d have
noticed it elsewhere too (on Hydra, on my laptop, etc.)
Is the daemon doing chroot builds and build users?
> Binary file man/chroot.td/chroot matches
>
> # strings chroot | grep /bin/sh
> /bin/sh
> If no command is given, run '${SHELL} -i' (default: '/bin/sh -i').
>
> Can this be fixed with 'substitute*'?
Yes, but that’s a different issue. Actually, I would leave it as is,
because chroot honors $SHELL:
/* No command. Run an interactive shell. */
char *shell = getenv ("SHELL");
if (shell == NULL)
shell = bad_cast ("/bin/sh");
And also because in the GNU System there’ll be /bin/sh as a symlink to
the “current” Bash (as done on NixOS).
WDYT?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-23 0:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-22 16:59 coreutils: Can't exec "/bin/sh": No such file or directory at ./man/help2man Nikita Karetnikov
2013-06-22 20:22 ` Ludovic Courtès
2013-06-23 1:01 ` Nikita Karetnikov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.