ports/109476: [PATCH] graphics/gd: unbreak build with WITH_FONTCONFIG
Radim Kolar SF.NET
hsn at sendmail.cz
Fri Feb 23 20:10:05 UTC 2007
>Number: 109476
>Category: ports
>Synopsis: [PATCH] graphics/gd: unbreak build with WITH_FONTCONFIG
>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: Fri Feb 23 20:10:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Radim Kolar SF.NET
>Release: FreeBSD 6.2-RELEASE i386
>Organization:
>Environment:
System: FreeBSD sanatana.dharma 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Sun Jan 14 11:36:17 CET 2007
>Description:
when building with fontconfig configuration option, fontconfig library must
be linked in. It
fixes breakage with apps linking self against gd but not against fontconfig.
on my system this change unbreaks py-gd. (extension library builded ok, but failed to load
>How-To-Repeat:
>Fix:
--- gd-2.0.34_1,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/gd/Makefile /home/hsn/hacked/gd/Makefile
--- /usr/ports/graphics/gd/Makefile Thu Feb 22 21:33:05 2007
+++ /home/hsn/hacked/gd/Makefile Fri Feb 23 21:01:43 2007
@@ -7,7 +7,7 @@
PORTNAME= gd
PORTVERSION= 2.0.34
-PORTREVISION?= 0
+PORTREVISION?= 1
PORTEPOCH= 1
CATEGORIES+= graphics
MASTER_SITES= http://www.libgd.org/releases/
@@ -46,8 +46,8 @@
.if defined(WITH_FONTCONFIG)
LIB_DEPENDS+= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
CPPFLAGS+= -I${X11BASE}/include -DHAVE_LIBFONTCONFIG -DHAVE_PTHREAD ${PTHREAD_CFLAGS}
-LDFLAGS+= ${PTHREAD_LIBS}
-LDFLAGS2+= ${PTHREAD_LIBS}
+LDFLAGS+= ${PTHREAD_LIBS} -lfontconfig
+LDFLAGS2+= ${PTHREAD_LIBS} -L${X11BASE}/lib
FEATURES+= GD_FONTCONFIG
.endif
--- gd-2.0.34_1,1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
>>> import gd
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.4/site-packages/gd.py", line 10, in ?
import _gd
ImportError: /usr/local/lib/libgd.so.4: Undefined symbol "FcPatternGetString"
Port maintainer (dinoex at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.77
More information about the freebsd-ports-bugs
mailing list