pkgsrc-Bugs archive

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

pkg/41387: [graphics/ImageMagick] buildlink3.mk should include "ghostscript option" case



>Number:         41387
>Category:       pkg
>Synopsis:       [graphics/ImageMagick] buildlink3.mk should include 
>"ghostscript option" case
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 08 17:25:00 +0000 2009
>Originator:     Ryo HAYASAKA
>Release:        NetBSD 5.99.11, pkgsrc-current
>Organization:
Japan Advanced Institute of Science and Technology (JAIST)
>Environment:
System: NetBSD bonnie.jaist.ac.jp 5.99.11 NetBSD 5.99.11 (MONOLITHIC) #79: Fri 
May 8 21:09:55 JST 2009 
root%bonnie.jaist.ac.jp@localhost:/usr/src/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:
graphics/autotrace fails to build with ImageMagick which has ghostscript
option:

$ make
=> Bootstrap dependency digest>=20010302: found digest-20080510
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum SHA1 OK for autotrace-0.31.1.tar.gz
=> Checksum RMD160 OK for autotrace-0.31.1.tar.gz
===> depends-message [autotrace-0.31.1nb8] ===> Installing dependencies for 
autotrace-0.31.1nb8
=> Build dependency libtool-base>=1.5.18nb5: found libtool-base-1.5.26nb1
=> Build dependency x11-links>=0.43: found x11-links-0.43
=> Build dependency checkperms>=1.1: found checkperms-1.10
=> Full dependency ImageMagick>=6.3.1.6nb1: found ImageMagick-6.4.8.3
...
--- autotrace ---
/bin/sh ./libtool --mode=link cc  -O2 -pipe -mfpmath=sse -msse3 -march=athlon64 
-I/usr/pkg/include -I/usr/X11R7/include -I/usr/include 
-I/usr/X11R7/include/freetype2   -L/usr/pkg/lib -Wl,-R/usr/pkg/lib 
-L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -o autotrace  
atou.o main.o getopt.o  getopt1.o libautotrace.la                        
-L/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib 
-Wl,-R/usr/pkg/lib   -L/usr/X11R7/lib -R/usr/X11R7/lib -L/usr/X11R7/lib 
-lfreetype -lz -L/usr/pkg/lib -L/usr/pkg/lib -lMagickCore -llcms -ltiff 
-lfreetype -ljasper -ljpeg -lgs -lpng -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 
-lz -lm -lpthread -lltdl            -lpng -lz -lm                               
            -lm
cc -O2 -pipe -mfpmath=sse -msse3 -march=athlon64 
-I/usr/pkgsrc/graphics/autotrace/work/.buildlink/include 
-I/usr/pkgsrc/graphics/autotrace/work/.x11-buildlink/include 
-I/usr/pkgsrc/graphics/autotrace/work/.x11-buildlink/include/freetype2 
-Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R7/lib -o .libs/autotrace atou.o main.o 
getopt.o getopt1.o  -L/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib 
-L/usr/pkgsrc/graphics/autotrace/work/.x11-buildlink/lib 
./.libs/libautotrace.so 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libMagickCore.so 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/liblcms.so 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libtiff.so -lc -lfreetype 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libjasper.so 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libjpeg.so -lgs -lXext -lXt 
-lSM -lICE -lX11 -lbz2 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libxml2.so -lpthread 
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libltdl.so /usr/pkgsrc/graphi
 cs/autotrace/work/.buildlink/lib/libpng12.so -lz -lm  -Wl,--rpath 
-Wl,/usr/pkg/lib -Wl,--rpath 
-Wl,/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib -Wl,--rpath 
-Wl,/usr/X11R7/lib
/usr/pkgsrc/graphics/autotrace/work/.buildlink/lib/libjasper.so: warning: 
warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp()
ld: cannot find -lgs
*** [autotrace] Error code 1
1 error

make: stopped in /usr/pkgsrc/graphics/autotrace/work/autotrace-0.31.1
*** [all] Error code 2
1 error

make: stopped in /usr/pkgsrc/graphics/autotrace/work/autotrace-0.31.1
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/graphics/autotrace
*** Error code 1

Stop.
        
>How-To-Repeat:
        
>Fix:
Index: buildlink3.mk
===================================================================
RCS file: /usr/cvsup/pkgsrc/graphics/ImageMagick/buildlink3.mk,v
retrieving revision 1.23
diff -d -p -u -r1.23 buildlink3.mk
--- buildlink3.mk       20 Mar 2009 19:24:36 -0000      1.23
+++ buildlink3.mk       8 May 2009 17:11:59 -0000
@@ -12,6 +12,9 @@ BUILDLINK_PKGSRCDIR.ImageMagick?=     ../../
 pkgbase := ImageMagick
 .include "../../mk/pkg-build-options.mk"

+.if !empty(PKG_BUILD_OPTIONS.ImageMagick:Mghostscript)
+.include "../../print/ghostscript/buildlink3.mk"
+.endif
 .if !empty(PKG_BUILD_OPTIONS.ImageMagick:Mx11)
 .include "../../x11/libX11/buildlink3.mk"
 .endif
        



Home | Main Index | Thread Index | Old Index