Summary: | [prefix/cygwin] sys-libs/zlib-1.2.11: Emerge fails on prefixed cygwin with USE="minizip" | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Sven Eden <sven.eden> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Other | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch zlib-1.2.11.ebuild to zlib-1.2.11-r1.ebuild
Patch contrib/minizip to build on gentoo prefixed cygwin New patch for zlib-1.2.11-r1.ebuild Additional patch to make zlib.pc to report the correct sharedlibdir. |
Description
Sven Eden
2018-01-08 16:38:56 UTC
Created attachment 513772 [details, diff]
Patch zlib-1.2.11.ebuild to zlib-1.2.11-r1.ebuild
This patches the ebuild to patch contrib/minizip if used, and removes the usage of win32/Makefile.gcc
Created attachment 513774 [details, diff]
Patch contrib/minizip to build on gentoo prefixed cygwin
This patch is needed by the patched ebuild. It adds -no-undefined to libminizip_la_LDFLAGS and switches fopen64() and frinds to their non-64 counterparts.
Created attachment 514230 [details, diff]
New patch for zlib-1.2.11-r1.ebuild
I have made somne false assumptions about how zlib can be built on cygwin.
Apart from that I discovered, that there are more issues than I thought.
This new patch fixes the build, so that the dynamic cygz.dll is actually built and installed.
Further the .pc files are fixed. They are utterly broken with the stock ebuild.
(Symptoms:
- file-5.32.ebuild breaks in configuration stage, because it can not find libz
- "pkg-config --cflags|--libs zlib" report wrong flags.)
Created attachment 514232 [details, diff]
Additional patch to make zlib.pc to report the correct sharedlibdir.
Unfortunately win32/Makefile.gcc has an error:
It installs the dynamic cygz.dll in BINARY_PATH, but sets sharedlibdir to LIBRARY_PATH.
This patch fixes that, so packages searching for cygz.dll using pkg-configure --libs zlib will no longer fail.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=03d80d896aa99447ff64cc89078b20b2d7755441 commit 03d80d896aa99447ff64cc89078b20b2d7755441 Author: Michael Haubenwallner <haubi@gentoo.org> AuthorDate: 2018-01-17 17:19:51 +0000 Commit: Michael Haubenwallner <haubi@gentoo.org> CommitDate: 2018-01-17 17:20:14 +0000 sys-libs/zlib: apply minizip cygwin patches Let's see how Cygwin upstream patches for minizip can help here. Closes: https://bugs.gentoo.org/643916 Package-Manager: Portage-2.3.19, Repoman-2.3.6 sys-libs/zlib/Manifest | 2 ++ sys-libs/zlib/zlib-1.2.11-r1.ebuild | 19 +++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) Just wanted to confirm that the new ebuild and patches work very well and exactly as expected. Thank you very much! |