ports/124179: [patch] ghostscript-gpl: don't link against libiconv

Helge Oldach ports-print-ghostscript-jun08 at oldach.net
Sun Jun 1 07:00:14 UTC 2008


>Number:         124179
>Category:       ports
>Synopsis:       [patch] ghostscript-gpl: don't link against libiconv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 01 07:00:13 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 6.3-1230 i386
>Organization:
>Environment:

System: FreeBSD localhost 6.3-1230 FreeBSD 6.3-1230 #0: Tue May 20 17:05:20 CEST 2008 toor at 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)

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list