Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728682 - Bzip2 bootstrap fails due to missing configure script
Summary: Bzip2 bootstrap fails due to missing configure script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-18 18:20 UTC by Bob Dröge
Modified: 2020-06-19 07:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Dröge 2020-06-18 18:20:46 UTC
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
Comment 1 Bob Dröge 2020-06-18 18:22:49 UTC
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
Comment 2 Larry the Git Cow gentoo-dev 2020-06-19 07:09:18 UTC
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(-)
Comment 3 Fabian Groffen gentoo-dev 2020-06-19 07:14:42 UTC
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...
Comment 4 Bob Dröge 2020-06-19 07:25:54 UTC
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!