From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 5 08:50:12 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDDCD106567C for ; Mon, 5 Mar 2012 08:50:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7FF168FC21 for ; Mon, 5 Mar 2012 08:50:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q258oCmt003512 for ; Mon, 5 Mar 2012 08:50:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q258oC0t003511; Mon, 5 Mar 2012 08:50:12 GMT (envelope-from gnats) Resent-Date: Mon, 5 Mar 2012 08:50:12 GMT Resent-Message-Id: <201203050850.q258oC0t003511@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pavel Gubin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86262106566B for ; Mon, 5 Mar 2012 08:49:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 757528FC1B for ; Mon, 5 Mar 2012 08:49:40 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q258ndeo081439 for ; Mon, 5 Mar 2012 08:49:39 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q258ndE4081438; Mon, 5 Mar 2012 08:49:39 GMT (envelope-from nobody) Message-Id: <201203050849.q258ndE4081438@red.freebsd.org> Date: Mon, 5 Mar 2012 08:49:39 GMT From: Pavel Gubin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/165706: print/ghostscript9 forces dependency of dns/libidn which is really optional X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 08:50:12 -0000 >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: