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
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=da79b51a8bc3aeb4c4e55ae4ce6ebe07b34b93cf
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
i might have only verified 9.15 as 9.18 is masked. i'll take a look.
should be fixed by: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c59ac63b4932179366f6c948f02a0f7439b25fc