While trying to run the latest version(s) of bootstrap-prefix.sh, it crashes in stage 1 due to a bootstrap issue with bzip2: * Bootstrapping bzip2 * Unpacking bzip2 * Compiling bzip2 ./configure --host=x86_64-pc-linux-gnu --prefix=/home/bob/new/gentoo/tmp/usr --mandir=/home/bob/new/gentoo/tmp/usr/share/man --infodir=/home/bob/new/gentoo/tmp/usr/share/info --datadir=/home/bob/new/gentoo/tmp/usr/share --sysconfdir=/home/bob/new/gentoo/tmp/etc --localstatedir=/home/bob/new/gentoo/tmp/var/lib --build=x86_64-pc-linux-gnu ./bootstrap-prefix.sh: line 18: ./configure: No such file or directory It seems to call the bootstrap_simple function, which, apparently, was recently changed and now does a "./configure" as well. However, bzip2 does not have a configure script. Reproducible: Always Steps to Reproduce: 1. wget https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh 2. chmod +x bootstrap-prefix.sh 3. ./bootstrap-prefix.sh # using the default options Actual Results: * Bootstrapping bzip2 * Unpacking bzip2 * Compiling bzip2 ./configure --host=x86_64-pc-linux-gnu --prefix=/home/bob/new/gentoo/tmp/usr --mandir=/home/bob/new/gentoo/tmp/usr/share/man --infodir=/home/bob/new/gentoo/tmp/usr/share/info --datadir=/home/bob/new/gentoo/tmp/usr/share --sysconfdir=/home/bob/new/gentoo/tmp/etc --localstatedir=/home/bob/new/gentoo/tmp/var/lib --build=x86_64-pc-linux-gnu ./bootstrap-prefix.sh: line 18: ./configure: No such file or directory
It works fine with a slightly older version of the script, where this change in bootstrap_simple hasn't been made yet, e.g. this one: https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh?id=ad5ab57d7ce52784d597298c13265c617dbf507c
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=dd56c723b9354a3e9f0faec2dc8ae95552a87372 commit dd56c723b9354a3e9f0faec2dc8ae95552a87372 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2020-06-19 07:08:07 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2020-06-19 07:08:07 +0000 scripts/bootstrap-prefix: only run configure if it exists In bootstrap_simple, check if there is a configure script before trying to call it. Some packages don't have a configure script like bzip2. Thanks Bob Dröge for pointing this out in bug #728682. Bug: https://bugs.gentoo.org/728682 Signed-off-by: Fabian Groffen <grobian@gentoo.org> scripts/bootstrap-prefix.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
This was a bit stupid on my part, I hope my fix does the trick for you. Obviously I don't have systems without bzip2 available...
I tried this in a quite minimal CentOS 7 VM, which indeed did not have bzip2. Just tried the fixed version and now it works. Thanks for the quick fix!