Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 316587

Summary: sys-libs/zlib-1.2.5 fails to install on OSX
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---

Description Stuart Shelton 2010-04-21 22:08:42 UTC
>>> Install zlib-1.2.5 into /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image/opt/gentoo/ category sys-libs
make install DESTDIR=/opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image/ LDCONFIG=: 
cp libz.a /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/lib
cp libz.so.1.2.5 /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/lib
cd /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/lib; chmod u=rw,go=r libz.a
cp zlib.3 /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/share/man/man3
chmod 644 /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/share/man/man3/zlib.3
cp zlib.pc /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/lib/pkgconfig
chmod 644 /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/lib/pkgconfig/zlib.pc
cp zlib.h zconf.h /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/include
chmod 644 /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/include/zlib.h /opt/gentoo/var/tmp/portage/sys-libs/zlib-1.2.5/image//opt/gentoo/usr/include/zconf.h
 * ERROR: sys-libs/zlib-1.2.5 failed:
 *   unable to read install_name from libz.dylib
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called call-ebuildshell 'src_install'
 *   environment, line  268:  Called src_install
 *   environment, line 2369:  Called gen_usr_ldscript '-a' 'z'
 *   environment, line 1391:  Called die
 * The specific snippet of code:
 *                   [[ -z ${tlib} ]] && die "unable to read install_name from ${lib}";
Comment 1 Fabian Groffen gentoo-dev 2010-04-22 19:09:42 UTC
also fails for me on OSX 10.4 Tiger/ppc
Comment 2 Fabian Groffen gentoo-dev 2010-04-22 19:37:11 UTC
problem found, some sed statement deduces uname from CHOST if set, which results in darwinX, not Darwin.