ghostscript depends on jpeg?

View: New views
3 Messages — Rating Filter:   Alert me  

ghostscript depends on jpeg?

by Greg Troxel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have cups enabled, and print/ghostcript ends up depending on jpeg,
such that if jpeg shlib changes and ghostscript isn't rebuild that it
doesn't work.  There is a comment:

  # XXX make sure the local jpeg headers are found before those pulled in
  # indirectly by cups bl3

but the grand plan is not explained.

cups depends on jpeg, but apparently ghostscript has a direct dependency
somehow, but I can't figure it out from the build log.

It seems broken for gs to have internal jpeg anyway.


If no one has better ideas or objections I'll add a dependency on jpeg
in the cups case.


Before doing the repair:

gdt 72 /usr/pkgsrc/print/ghostscript > ldd /usr/pkg/lib/libgs.so
/usr/pkg/lib/libgs.so:
        -lc.12 => /usr/lib/libc.so.12
        -lICE.6 => /usr/pkg/lib/libICE.so.6
        -lSM.6 => /usr/pkg/lib/libSM.so.6
        -lXau.6 => /usr/pkg/lib/libXau.so.6
        -lXdmcp.6 => /usr/pkg/lib/libXdmcp.so.6
        -lX11.6 => /usr/pkg/lib/libX11.so.6
        -lXt.6 => /usr/pkg/lib/libXt.so.6
        -lXext.6 => /usr/pkg/lib/libXext.so.6
        -ljpeg.7 => /usr/pkg/lib/libjpeg.so.7
        -lz.1 => /usr/lib/libz.so.1
        -lm.0 => /usr/lib/libm.so.0
        -ltiff.3 => /usr/pkg/lib/libtiff.so.3
        -lpng12.0 => /usr/pkg/lib/libpng12.so.0
        -lpthread.0 => /usr/lib/libpthread.so.0
        -lcrypt.0 => /usr/lib/libcrypt.so.0
        -lcrypto.4 => /usr/lib/libcrypto.so.4
        -lcom_err.5 => /usr/lib/libcom_err.so.5
        -lasn1.7 => /usr/lib/libasn1.so.7
        -lutil.7 => /usr/lib/libutil.so.7
        -lroken.13 => /usr/lib/libroken.so.13
        -lhx509.2 => /usr/lib/libhx509.so.2
        -lkrb5.22 => /usr/lib/libkrb5.so.22
        -lheimntlm.1 => /usr/lib/libheimntlm.so.1
        -lgssapi.7 => /usr/lib/libgssapi.so.7
        -lssl.6 => /usr/lib/libssl.so.6
        -lcups.2 => /usr/pkg/lib/libcups.so.2
        -lcupsimage.2 => /usr/pkg/lib/libcupsimage.so.2
        -ljpeg.62 => not found
        -lpaper.1 => /usr/pkg/lib/libpaper.so.1
        -lfreetype.6 => /usr/pkg/lib/libfreetype.so.6
        -lexpat.1 => /usr/pkg/lib/libexpat.so.1
        -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1

Re: ghostscript depends on jpeg?

by Joerg Sonnenberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 22, 2009 at 10:53:46AM -0400, Greg Troxel wrote:
> It seems broken for gs to have internal jpeg anyway.

IIRC Postscript would have some non-standard JPEG like images included,
but the details are fuzzy.

Joerg

Re: ghostscript depends on jpeg?

by Dieter Baron :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In article <20091022151253.GA16176@...> Joerg wrote:
: On Thu, Oct 22, 2009 at 10:53:46AM -0400, Greg Troxel wrote:
: > It seems broken for gs to have internal jpeg anyway.

: IIRC Postscript would have some non-standard JPEG like images included,
: but the details are fuzzy.

  IIRC the jpeg library cannot be built with support for both 8 and 12
bits per components at once, but PostScript supports both, so gs needs
support for both.  (It's been many years, so maybe things have changes
since.)

                                        yours,
                                        dillo