Problems with ESP Ghostscript 7.07.1 and a system libpng
|Reported by:||Owned by:|
The current stable espgs version (7.07.1) has a bug which prevents a system libpng from being detected, so to build a gs binary with PNG support, we have necessarily to unpack the lipng package inside the espgs source dir.
The patch http://www.linuxfromscratch.org/patches/downloads/espgs/espgs-7.07.1-libpng_check.patch, backported from CVS, fixes this issue. Unfortunately, this fix exposed another bug when compiling the shared library (see http://www.cups.org/str.php?L602 for details). For this specific bug, we don't need a patch, only a instruction modification.
Finally, the following changes are suggested to resolve this issue:
- Add the espgs-7.07.1-libpng_check.patch to the ESP Ghostscript section marked as "required".
- Change the the shared library compilation instruction to:
make CFLAGS_SO='-fPIC $(ACDEFS)' so
The upcoming 7.07.2 version is supposed to fix these bugs.