Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318679 - [bootstrapping failure on solaris/hp-ux] sys-libs/zlib-1.2.5-r2: circular dep on pax-utils
Summary: [bootstrapping failure on solaris/hp-ux] sys-libs/zlib-1.2.5-r2: circular dep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High critical with 1 vote (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 326461 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-05 20:52 UTC by Jeremy Olexa (darkside) (RETIRED)
Modified: 2010-07-05 08:14 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 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-05 20:52:52 UTC
20100502 snapshot.

During the emerge pax-utils step, zlib-1.2.5-r2 is pulled into the depgraph but it will die if pax-utils isn't installed..

 * QA Notice: command not found:
 * 
 *      $EPREFIX/var/tmp/portage/sys-libs/zlib-1.2.5-r2/temp/environment: line 4258: scanelf: command not found

>>> Failed to emerge sys-libs/zlib-1.2.5-r2, Log file:

>>>  '/net/nbstore/vol/tools/prefix/p/x86-solaris-10/var/tmp/portage/sys-libs/zlib-1.2.5-r2/temp/build.log'

 * Messages for package sys-libs/zlib-1.2.5-r2:

 * ERROR: sys-libs/zlib-1.2.5-r2 failed:
 *   unable to read SONAME from libz.so
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_install
 *   environment, line 5175:  Called gen_usr_ldscript '-a' 'z'
 *   environment, line 4259:  Called die
 * The specific snippet of code:
 *                       [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}";
 * 
 * If you need support, post the output of 'emerge --info =sys
Comment 1 Fabian Groffen gentoo-dev 2010-05-06 06:16:27 UTC
ok, this worked on Darwin, so the order/amount probably has to be updated
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-06 16:44:32 UTC
(In reply to comment #1)
> ok, this worked on Darwin, so the order/amount probably has to be updated
> 

So, on solaris/hp-ux (according to pax-utils ebuild), you need gnulib installed.

gnulib requires aclocal (sys-devel/automake-wrapper)

automake-wrapper requires automake

automake requires autoconf

autoconf requires a bunch of crap like perl.

And, guess what? zlib shows up in all of these package's depgraphs. fun. =P
Comment 3 Fabian Groffen gentoo-dev 2010-05-06 18:12:10 UTC
probably time to give gnulib a kick
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-05-13 18:33:59 UTC
As a workaround: http://overlays.gentoo.org/proj/alt/changeset/57771

Index: pax-utils-0.2.1.ebuild
===================================================================
--- pax-utils-0.2.1.ebuild      (revision 57765)
+++ pax-utils-0.2.1.ebuild      (working copy)
@@ -27,7 +27,7 @@
 
 src_compile() {
        local libs
-       if [[ ${CHOST} == *-solaris* || ${CHOST} == *-hpux* ]]; then
+       if [[ ${CHOST} == *-hpux* ]]; then
                append-flags -I"${EPREFIX}"/usr/$(get_libdir)/gnulib/include
                append-ldflags -L"${EPREFIX}"/usr/$(get_libdir)/gnulib/lib
                libs="-lgnu"
Comment 5 Fabian Groffen gentoo-dev 2010-06-11 20:38:23 UTC
I think we need to make toolchain.eclass (or whatever provides gen_usr_ldscripts) resistant against a missing scanelf/scanmacho, by doing a lame copy or something.
Comment 6 Daniel Vergien 2010-06-14 07:45:38 UTC
(In reply to comment #4)
> As a workaround: http://overlays.gentoo.org/proj/alt/changeset/57771

Should the dependencies to glib not also be removed? At least I needed it on solaris. 
Comment 7 Chris Engelhart 2010-06-23 13:30:40 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > As a workaround: http://overlays.gentoo.org/proj/alt/changeset/57771
> 
> Should the dependencies to glib not also be removed? At least I needed it on
> solaris. 
> 

Once I applied darkside's patch and removed the dependency to gnulib, I was able to:
emerge --oneshot pax-utils
just fine on Solaris10/sparc. No idea on the HP/UX front.

Portage 2.2.00.15842-prefix (prefix/sunos/solaris/5.10/sparc, gcc-4.2.4, unavailable, 5.10 sun4u)
=================================================================
System uname: Solaris-2.10-sun4u-sparc-32bit-ELF
Timestamp of tree: Sun, 09 May 2010 21:37:55 +0000
app-shells/bash:     4.0_p37
sys-devel/binutils:  2.20.51.0.4
sys-devel/gcc:       4.2.4-r01.2
sys-devel/gcc-config: 1.4.1-r00.2
ACCEPT_KEYWORDS="~sparc-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-sun-solaris2.10"
CFLAGS=""
CHOST="sparc-sun-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CPPFLAGS="-I/home/chris/gentoo32/usr/include"
CXXFLAGS=""
DISTDIR="/home/chris/gentoo32/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-L/home/chris/gentoo32/usr/lib -R/home/chris/gentoo32/usr/lib -L/home/chris/gentoo32/lib -R/home/chris/gentoo32/lib"
PKGDIR="/home/chris/gentoo32/usr/portage/packages"
PORTAGE_CONFIGROOT="/home/chris/gentoo32/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/home/chris/gentoo32/var/tmp"
PORTDIR="/home/chris/gentoo32/usr/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
e chaos account" 
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 8 Fabian Groffen gentoo-dev 2010-07-02 12:10:27 UTC
I just committed a patch for comment #5.
Comment 9 Fabian Groffen gentoo-dev 2010-07-02 12:10:49 UTC
*** Bug 326461 has been marked as a duplicate of this bug. ***
Comment 10 Fabian Groffen gentoo-dev 2010-07-02 12:13:12 UTC
I'll have to  bootstrap tomorrow to see how to get by this.
Comment 11 Fabian Groffen gentoo-dev 2010-07-03 13:22:19 UTC
I updated the bootstrap-prefix.sh script, and I updated the solaris bootstrap directions to include a bootstrap of zlib.  With this (I admit, I tried on latest_tree) I was able to emerge portage.
Comment 12 vlad f halilov 2010-07-05 08:01:05 UTC
Yup, everything all roght now on emerge portage.
Comment 13 Fabian Groffen gentoo-dev 2010-07-05 08:14:48 UTC
closing then for the moment