pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [LINUX][2012Q3] ghostscript doesn't build

Il 25/11/2012 alle 12:03, Dario Niedermann ha scritto:

> Ghostscript build fails on Linux (i686). Tried with both distro-provided
> gcc 4.2.3 and pkgsrc's own gcc 4.7.0. Ghostscript's build options are
> 'fontconfig x11' (the default). This with pkgsrc's xorg-modular-server
> installed.

Found a way to build it by making the attached changes to the Makefile.

Basically, building Ghostscript against the jpeg headers provided in its
own tarball doesn't work (here). But it can be built without a problem
against the headers provided by pkgsrc's current jpeg package. At least
if the 'cups' option is not enabled (no idea otherwise).

Note, anyway, that however you build it, the resulting 'gs' executable
contains hardcoded paths for font and library search, and those paths
are incorrect if the install tree is /usr/pkg rather than /usr. Also,
the paths are versioned, and they point to an older Ghostscript release.

So this package looks to be in dire need of a revision!

--- Makefile.orig       2012-11-26 12:20:59.000000000 +0100
+++ Makefile    2012-11-26 13:51:20.000000000 +0100
@@ -35,7 +35,7 @@
 # XXX make sure the local jpeg headers are found before those pulled
 # in indirectly by cups bl3
-CPPFLAGS+=             -Ijpeg
+#CPPFLAGS+=            -Ijpeg
 .include "../../mk/"
 .include "../../mk/"
@@ -75,6 +75,11 @@
        ${MKDIR} ${WRKSRC}/bin
        ${MKDIR} ${WRKSRC}/obj
 #      ${RM} -rf ${WRKSRC}/jasper
+# Next non-comment line is needed because an '-Ijpeg' still pops out from 
+# who-knows-where even though the above CPPFLAGS line is commented out
+       ${RM} -rf ${WRKSRC}/jpeg
        ${RM} -rf ${WRKSRC}/libpng
        ${RM} -rf ${WRKSRC}/tiff
 #      ${RM} -rf ${WRKSRC}/zlib
@@ -86,6 +91,7 @@
 .include "../../print/libpaper/"
 .include "../../graphics/png/"
+.include "../../graphics/jpeg/"
 .include "../../graphics/tiff/"
 .include "../../devel/zlib/"
 # pkgsrc jasper is too new

> head -n1 /etc/*-{version,release} && uname -mprs
Slackware 12.1.0
Linux i686 AMD Turion(tm) 64 Mobile Technology MK-36

Home | Main Index | Thread Index | Old Index