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

Bug 573248

Summary: app-text/ghostscript-gpl-9.18 fails to compile zlib.h not found
Product: Gentoo Linux Reporter: Jonas Stein <jstein>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal CC: arfrever.fta, jstein, proteuss, vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jonas Stein gentoo-dev 2016-01-28 20:30:01 UTC
Upstream ships zlib.h with the source, while gentoo provides its own package for zlib AFAIK. 

*  Skipping ghostscript-gpl-9.12-sys-zlib.patch due to EPATCH_EXCLUDE ...
.
.
.
.
make[2]: *** No rule to make target '/var/tmp/portage/app-text/ghostscript-gpl-9.18/temp/zlib.h', needed by 'soobj/gdevgprf.o'.  Stop.

On #ghostscript I got the following hint today:
"Oh, there was a problem with gprf and xpswrite not working with the system zlib. Fixed a bit over a week ago" Perhaps it helps...


Reproducible: Always
Comment 2 Arfrever Frehtes Taifersar Arahesis 2016-02-11 22:18:08 UTC
This build failure was introduced in:

commit 31c685e18c5b9b558b7deb85d8235f4e9007ac80
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Jan 7 21:45:03 2016 -0500

    app-text/ghostscript-gpl: fix zlib include path usage
    
    The ghostscript-gpl-9.12-sys-zlib.patch attempts to change the include
    path from the local copy in the src to the common includedir flag set
    by configure flags.  This generally works for native builds, but breaks
    when cross-compiling.  Drop the patch and set the zlib src dir to the
    temp dir instead.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31c685e18c5b9b558b7deb85d8235f4e9007ac80
Comment 3 SpanKY gentoo-dev 2016-02-12 00:06:23 UTC
i might have only verified 9.15 as 9.18 is masked.  i'll take a look.