On Sep 4, 2006, at 3:28 AM, Jean-François Mertens wrote:

> Hi,
>
> disabling jasper doesn't seem the right way to solve a  
> buildconflict...
> The -I/sw/include flags remain before the -I.  flags, and since god  
> knows
> what could be in /sw/include (eg, from a user's local pkgs), the  
> problem remains.
>
> The first attempt, using the standard tools, worked perfectly :
>
> /sw/fink/dists/unstable/main/finkinfo/text root# cvs diff  
> ghostscript.info
> Index: ghostscript.info
> ===================================================================
> RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/text/ 
> ghostscript.info,v
> retrieving revision 1.5
> diff -r1.5 ghostscript.info
> 11a12,14
> > NoSetCPPFLAGS: true
> > NoSetLDFLAGS: true
> > SetLIBRARY_PATH: %p/lib
> 14,15c17,20
> <  ./configure --without-jasper %c
> <  make CFLAGS_STANDARD="-O2 -I%p/include" XLDFLAGS=-L%p/lib
> ---
> > #!/bin/sh -ev
> >  export CPATH=%p/include
> >  ./configure %c
> >  make CFLAGS_STANDARD="-O2"
>
>
> Best,
>
> Jean-Francois
>

What you suggest works for me, too, and it looks like the right way  
to go given the new policy of the ghostscript package: It's a new  
feature in gs 8.54 that all the dependencies are actually included  
(in slightly patched form) in ghostscript's sources. That makes it  
possible (and necessary) to some extent to insulate ghostscript from  
the other jpeg and png-related packages provided by fink, as your  
patch does.

Logic then dictates that I should go even further and remove the  
BuildDepends on libjpeg and  libpng3, as well as the runtime  
dependencies on the corresponding shlibs.

I've checked that gs still builds and works with the above changes  
and then additionally setting
Depends: x11, x11-shlibs, ghostscript-fonts
BuildDepends: x11-dev

What I did to check that the shlibs in Depends can be removed was:
dpkg -r --force-depends libjpeg-shlibs
dpkg -r --force-depends libpng3-shlibs

This cripples tools like ImageMagick's "display", but I was still  
able to create jpg images with gs -sDEVICE=jpeg  after doing this.

Of course I feel bad now because I may have to make Martin (or  
someone else) update the CVS again...
So before doing that, maybe Jean-Francois can tell me if this sounds  
right, or if I should leave all those dependencies untouched to be on  
the safe side?

Jens





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to