Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190105 - would like bootstrap_bzip2 if possible
Summary: would like bootstrap_bzip2 if possible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 22:20 UTC by Daniel LaMotte
Modified: 2007-10-15 18:30 UTC (History)
1 user (show)

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 Daniel LaMotte 2007-08-24 22:20:07 UTC
I've been attempting to install prefix on irix and osf1 and neither system has bzip2 installed by default

Reproducible: Always
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-15 16:50:18 UTC
HP-UX needs this as well.
Comment 2 Fabian Groffen gentoo-dev 2007-10-15 17:06:20 UTC
I should have noticed this earlier.  Trivial to do, committed.  Sorry and thanks!
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-15 17:20:12 UTC
You forgot a "() {" at the end of bzip2 and even with that added I still can't get it to work.


bash-3.2$ ../global/bootstrap-prefix.sh $EPREFIX/tmp bzip2
* Bootstrapping Gentoo prefixed portage installation using
* host:   ia64-hp-hpux11.23
* prefix: /home/jolexa/portage/hpux-11.23/tmp
* ready to bootstrap bzip2
* Bootstrapping bzip2
* Unpacking bzip2
* Compiling bzip2
../global/bootstrap-prefix.sh: line 20: ./configure: No such file or directory

I don't think the bzip2 package is on the GNU mirrors either, at least I can't find it.
Comment 4 Fabian Groffen gentoo-dev 2007-10-15 17:29:03 UTC
hmmm oops!  Couldn't check as the gnu website is down.

Ok, should have checked in a version that has more chance to work now...
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-15 17:36:54 UTC
(In reply to comment #4)
> Ok, should have checked in a version that has more chance to work now...


Its not PREFIX  friendly:


* Installing bzip2
if ( test ! -d /usr/local/bin ) ; then mkdir -p /usr/local/bin ; fi
if ( test ! -d /usr/local/lib ) ; then mkdir -p /usr/local/lib ; fi
if ( test ! -d /usr/local/man ) ; then mkdir -p /usr/local/man ; fi
if ( test ! -d /usr/local/man/man1 ) ; then mkdir -p /usr/local/man/man1 ; fi
if ( test ! -d /usr/local/include ) ; then mkdir -p /usr/local/include ; fi
cp -f bzip2 /usr/local/bin/bzip2
cp: cannot create regular file `/usr/local/bin/bzip2': Permission denied
make: *** [install] Error 1

Comment 6 Fabian Groffen gentoo-dev 2007-10-15 17:40:48 UTC
it should be now.  I forgot econf.  Sorry for not testing.  I'm doing something else at the moment, so don't hestitate to keep on replying ;)
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-15 17:57:46 UTC
(In reply to comment #6)
> it should be now.  I forgot econf.  Sorry for not testing.  I'm doing something
> else at the moment, so don't hestitate to keep on replying ;)
> 

Well, the fun part about this one is that you can't use econf because there is no configure script. Sorry for being vague in my previous report. I didn't have time at that second to look into it.

You compile bzip2 just by running make. In this case we will need something like "make install PREFIX=/xxx/yyy" -- maybe "make install $EPREFIX/"${ROOT}"/usr" ? I'm not sure how the cmd line arguments gets stored into a variable or what variable but we call bootstrap-prefix.sh with the path where we want it to go on the cmd line.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-15 18:00:07 UTC
HOW TO BUILD -- UNIX

Type 'make'.  This builds the library libbz2.a and then the programs
bzip2 and bzip2recover.  Six self-tests are run.  If the self-tests
complete ok, carry on to installation:

To install in /usr/local/bin, /usr/local/lib, /usr/local/man and
/usr/local/include, type

   make install

To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type

   make install PREFIX=/xxx/yyy

If you are (justifiably) paranoid and want to see what 'make install'
is going to do, you can first do

   make -n install                      or
   make -n install PREFIX=/xxx/yyy      respectively.

The -n instructs make to show the commands it would execute, but not
actually execute them.

Comment 9 Fabian Groffen gentoo-dev 2007-10-15 18:28:59 UTC
ok, works on Solaris while testing now.
Comment 10 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2007-10-15 18:30:57 UTC
(In reply to comment #9)
> ok, works on Solaris while testing now.
> 

Works on hp-ux ia64. Thanks.