From owner-freebsd-ports@FreeBSD.ORG Sun Jun 1 06:55:15 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCBB81065670; Sun, 1 Jun 2008 06:55:15 +0000 (UTC) (envelope-from hmo@sep.oldach.net) Received: from rigel.oldach.net (rigel.oldach.net [194.8.96.250]) by mx1.freebsd.org (Postfix) with ESMTP id 445AB8FC0C; Sun, 1 Jun 2008 06:55:14 +0000 (UTC) (envelope-from hmo@sep.oldach.net) Received: from sep.oldach.net (hmo.in-dsl.de [217.197.85.210]) by rigel.oldach.net (8.14.2/8.14.2/hmo30jul04) with ESMTP id m516ciEg050257 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 Jun 2008 08:38:45 +0200 (CEST) (envelope-from hmo@sep.oldach.net) Received: from sep.oldach.net (localhost [127.0.0.1]) by sep.oldach.net (8.14.2/8.14.2/hmo26jun05) with ESMTP id m516ch7v011050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 1 Jun 2008 08:38:43 +0200 (CEST) (envelope-from hmo@sep.oldach.net) Received: (from hmo@localhost) by sep.oldach.net (8.14.2/8.14.2/Submit/hmo26jun05) id m516cgMW011049; Sun, 1 Jun 2008 08:38:42 +0200 (CEST) (envelope-from hmo) Date: Sun, 1 Jun 2008 08:38:42 +0200 (CEST) Message-Id: <200806010638.m516cgMW011049@sep.oldach.net> To: FreeBSD-gnats-submit@freebsd.org From: Helge Oldach X-send-pr-version: 3.113 X-GNATS-Notify: Cc: ports@freebsd.org Subject: [patch] ghostscript-gpl: don't link against libiconv X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Helge Oldach List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jun 2008 06:55:15 -0000 >Submitter-Id: current-users >Originator: Helge Oldach >Organization: >Confidential: no >Synopsis: [patch] ghostscript-gpl: don't link against libiconv >Severity: non-critical >Priority: low >Category: ports >Class: sw-bug >Release: FreeBSD 6.3-1230 i386 >Environment: System: FreeBSD localhost 6.3-1230 FreeBSD 6.3-1230 #0: Tue May 20 17:05:20 CEST 2008 toor@localhost:/usr/obj/usr/src/sys/HMO i386 >Description: print/ghostscript-gpl will link against an installed libiconv, even if the OPVP/OPRP drivers are not enabled. However, only those two drivers require libiconv; this library is otherwise unused. Avoid this linkage bloat. >How-To-Repeat: # ldd `which gs` /usr/local/bin/gs: libgs.so.8 => /usr/X11R6/lib/libgs.so.8 (0x2807a000) libc.so.6 => /lib/libc.so.6 (0x28679000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x28760000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x2882b000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x28876000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x2887d000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x28893000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x288a0000) libjpeg.so.9 => /usr/X11R6/lib/libjpeg.so.9 (0x28985000) libpng.so.5 => /usr/X11R6/lib/libpng.so.5 (0x289a3000) libz.so.3 => /lib/libz.so.3 (0x289c5000) libm.so.4 => /lib/libm.so.4 (0x289d6000) libiconv.so.3 => /usr/X11R6/lib/libiconv.so.3 (0x289ec000) libXau.so.6 => /usr/local/lib/libXau.so.6 (0x28ac9000) libXdmcp.so.6 => /usr/local/lib/libXdmcp.so.6 (0x28acc000) librpcsvc.so.3 => /usr/lib/librpcsvc.so.3 (0x28ad1000) # >Fix: --- Makefile.ctm 2008-05-09 07:05:07.000000000 +0200 +++ Makefile 2008-06-01 08:32:01.000000000 +0200 @@ -157,11 +157,14 @@ . warning drivers incompatible with WITHOUT_ICONV will be removed automatically . undef WITH_GS_oprp . undef WITH_GS_opvp +CONFIGURE_ARGS+=--with-libiconv=no . else USE_ICONV= yes CONFIGURE_ARGS+=--with-libiconv=gnu EXTRALIBS+= -liconv . endif +.else +CONFIGURE_ARGS+=--with-libiconv=no .endif .if !defined(WITH_LETTERSIZE)