>Number:         165706
>Category:       misc
>Synopsis:       print/ghostscript9 forces dependency of dns/libidn which is 
>really optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 05 08:50:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Pavel Gubin
>Release:        8.2-RELEASE
>Organization:
>Environment:
>Description:
While trying to update ghostscript9-9.05 to ghostscript9-9.05_2 I noticed that 
it wants to install dns/libidn, and found that libidn dependency appeared in 
Makefile's CVS version 1.12 of 2012/02/29 fixing inplicit dependency.

But really gs may be configured --without-libidn, so this dep may be made 
tunable.
>How-To-Repeat:
Try to update ghostscript9-9.05 to ghostscript9-9.05_2 on system without libidn.
>Fix:


Patch attached with submission follows:

--- Makefile.orig       2012-03-04 11:38:28.000000000 +0400
+++ Makefile    2012-03-05 12:36:39.000000000 +0400
@@ -24,7 +24,6 @@
 COMMENT=       Ghostscript 9.x PostScript interpreter
 
 LIB_DEPENDS=   expat:${PORTSDIR}/textproc/expat2 \
-               idn:${PORTSDIR}/dns/libidn \
                jbig2dec:${PORTSDIR}/graphics/jbig2dec \
                jpeg:${PORTSDIR}/graphics/jpeg \
                png:${PORTSDIR}/graphics/png \
@@ -56,7 +55,6 @@
                --enable-contrib \
                --enable-dynamic \
                --with-ijs \
-               --with-libidn \
                --without-jasper \
                --with-drivers=""
 CPPFLAGS+=     -DUPD_SIGNAL=0 -I. \
@@ -79,6 +77,7 @@
                CUPS    "Enable CUPS support"   on \
                FONTCONFIG      "fontconfig support"    on \
                LIBPAPER        "libpaper support"      off \
+               LIBIDN          "libidn support"        on \
                GTK     "GTK frontend"  off \
                X11     "X11 support"   on
 
@@ -123,6 +122,13 @@
 CONFIGURE_ARGS+=       --without-libpaper
 .endif
 
+.if !defined(WITHOUT_LIBIDN)
+LIB_DEPENDS+=  idn:${PORTSDIR}/dns/libidn
+CONFIGURE_ARGS+=       --with-libidn
+.else
+CONFIGURE_ARGS+=       --without-libidn
+.endif
+
 .if !defined(WITHOUT_FONTCONFIG)
 LIB_DEPENDS+=  fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
 CONFIGURE_ARGS+=       --enable-fontconfig


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to