Subject: misc/24751: xft-config and xcursor-config are broken
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <hira@po6.nsk.ne.jp>
List: netbsd-bugs
Date: 03/12/2004 12:35:41
>Number: 24751
>Category: misc
>Synopsis: xft-config and xcursor-config are broken
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 12 03:36:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Kouichirou Hiratsuka
>Release: NetBSD 1.6ZK
>Organization:
>Environment:
System: NetBSD firefly.localdomain 1.6ZK NetBSD 1.6ZK (FIREFLY.MP) #36: Thu Mar 11 21:34:35 JST 2004 root@firefly.localdomain:/usr/src/sys/arch/i386/compile/FIREFLY.MP i386
Architecture: i386
Machine: i386
>Description:
xft-config and xcursor-config are broken. It's the same reason as
PR xsrc/24747.
# /usr/X11R6/bin/xft-config --libs
@hardcode_libdir_flag_spec@ -L/usr/X11R6/lib -lXft -L/usr/X11R6/lib -lfreetype @FONTCONFIG_LIBS@ -L/usr/X11R6/lib -lXrender
# /usr/X11R6/bin/xcursor-config --libs
@hardcode_libdir_flag_spec@ -L/usr/X11R6/lib -lXcursor
>How-To-Repeat:
cd ${NETBSDSRCDIR}/x11
make build
xft-config --libs
xcursor-config --libs
>Fix:
Index: x11/lib/Xft/Makefile
===================================================================
RCS file: /cvs/cvsroot/src/x11/lib/Xft/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- x11/lib/Xft/Makefile 9 Feb 2004 05:58:24 -0000 1.6
+++ x11/lib/Xft/Makefile 11 Mar 2004 16:46:47 -0000
@@ -34,11 +34,13 @@
exec_prefix="${X11BINDIR}" \
libdir="${X11USRLIBDIR}" \
includedir="${X11INCDIR}" \
+ hardcode_libdir_flag_spec="-Wl,-rpath,${X11USRLIBDIR}" \
PACKAGE_VERSION="2.1.0" \
FREETYPE_LIBS="-L${X11USRLIBDIR} -lfreetype" \
FREETYPE_CFLAGS="-I${X11INCDIR}/freetype2" \
XRENDER_LIBS="-L${X11USRLIBDIR} -lXrender" \
XRENDER_CFLAGS="-I${X11INCDIR}" \
+ FONTCONFIG_LIBS="-L${X11USRLIBDIR} -lfontconfig" \
FONTCONFIG_CFLAGS="-I${X11INCDIR}"
xft.pc:
Index: x11/lib/Xcursor/Makefile
===================================================================
RCS file: /cvs/cvsroot/src/x11/lib/Xcursor/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- x11/lib/Xcursor/Makefile 9 Feb 2004 05:58:24 -0000 1.6
+++ x11/lib/Xcursor/Makefile 11 Mar 2004 16:49:48 -0000
@@ -35,6 +35,7 @@
exec_prefix="${X11BINDIR}" \
libdir="${X11USRLIBDIR}" \
includedir="${X11INCDIR}" \
+ hardcode_libdir_flag_spec="-Wl,-rpath,${X11USRLIBDIR}" \
PACKAGE_VERSION="1.0.0"
xcursor.pc:
>Release-Note:
>Audit-Trail:
>Unformatted: