[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 'build-use-chroot = true' leads to 'ERROR: In procedure system*: No
From: |
Ludovic Courtès |
Subject: |
Re: 'build-use-chroot = true' leads to 'ERROR: In procedure system*: No such file or directory' |
Date: |
Wed, 12 Dec 2012 14:33:11 +0100 |
User-agent: |
Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) |
Nikita Karetnikov <address@hidden> skribis:
> build-chroot-dirs = /dev /proc /bin
[...]
> ?: 0 [system* "./configure" ...]
>
> ERROR: In procedure system*:
> ERROR: In procedure system*: No such file or directory
Is /bin/sh a symlink? If it is, its target has to be in one of the
directories listed in ‘build-chroot-dirs’.
But more importantly, /bin/sh is likely to be a dynamically-linked
executable, linked against stuff from /lib, which is not in
‘build-chroot-dirs’. Thus, it won’t run in the chroot.
An option is to replace /bin/sh by the statically-linked Bash that’s in
distro/packages/bootstrap/*-linux/bash.
Another one, which I think we’ll do, is to change gnu-build-system.scm
to either run (system* "/path/to/our/bash" "./configure" ...), or call
‘patch-shebangs’ on ‘configure’.
HTH,
Ludo’.