Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394629 - sys-libs/zlib-1.2.5.1-r2 fails to prepare on OS X
Summary: sys-libs/zlib-1.2.5.1-r2 fails to prepare on OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 02:39 UTC by François Bissey
Modified: 2011-12-14 15:09 UTC (History)
0 users

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


Attachments
output of the epatch command (zlib-1.2.5.1-aix-soname.patch.out,3.81 KB, text/plain)
2011-12-14 02:39 UTC, François Bissey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2011-12-14 02:39:39 UTC
Created attachment 295741 [details]
output of the epatch command

The ebuild fails at the src_unpack stage. For some reason the zlib-1.2.5.1-aix-soname.patch doesn't want to apply properly:

 * Package:    sys-libs/zlib-1.2.5.1-r2
 * Repository: gentoo_prefix
 * Maintainer: base-system@gentoo.org
 * USE:        elibc_Darwin kernel_Darwin minizip prefix userland_GNU x86-macos
 * FEATURES:   nostrip preserve-libs
>>> Unpacking source...
>>> Unpacking zlib-1.2.5.1.tar.gz to /Users/frb15/Desktop/Gentoo/var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/work
 * Applying zlib-1.2.5.1-version.patch ...
 [ ok ]
 * Applying zlib-1.2.5.1-symlinks.patch ...
 [ ok ]
 * Applying zlib-1.2.4-minizip-autotools.patch ...
 [ ok ]
 * Running eautoreconf in '/Users/frb15/Desktop/Gentoo/var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/work/zlib-1.2.5.1/contrib/minizip' ...
 * Running aclocal -I /Users/frb15/Desktop/Gentoo/usr/share/aclocal ...
 [ ok ]
 * Running glibtoolize --copy --force --install --automake ...
 [ ok ]
 * Running aclocal -I /Users/frb15/Desktop/Gentoo/usr/share/aclocal ...
 [ ok ]
 * Running autoconf ...
 [ ok ]
 * Running automake --add-missing --copy --foreign ...
 [ ok ]
 * Running elibtoolize in: zlib-1.2.5.1/contrib/minizip/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Applying zlib-1.2.5.1-aix-soname.patch ...

 * Failed Patch: zlib-1.2.5.1-aix-soname.patch !
 *  ( /Users/frb15/Desktop/Gentoo/usr/portage/sys-libs/zlib/files/zlib-1.2.5.1-aix-soname.patch )
 * 

I attach zlib-1.2.5.1-aix-soname.patch.out
Comment 1 François Bissey 2011-12-14 02:48:03 UTC
Looking at it more closely it may be an incompatibility with USE=minizip since eautoreconf is run in that case.
Comment 2 Benda Xu gentoo-dev 2011-12-14 05:36:42 UTC
reproduced the same error on amd64-linux, minizip causes eautoreconf to run, which changes configure and let the aix-soname patch fail (which simply patches against configure).

Just looked up that minizip is for zip archives with homepage http://www.winimage.com/zLibDll/minizip.html

haubi: seems we need to patch against configure.ac instead.
Comment 3 Fabian Groffen gentoo-dev 2011-12-14 15:07:52 UTC
dudes, the configure from the top dir isn't autoconf-based.

The problem is that miniconf doesn't restore the working directory, so all the remaining fixes fail.
Comment 4 Fabian Groffen gentoo-dev 2011-12-14 15:09:46 UTC
fixed in prefix, thanks