ports/55398: A port depending on x11/libcapplet fails to link
SUGIMOTO Sadahiro
ixtl at utmc.or.jp
Fri Aug 8 19:50:24 UTC 2003
>Number: 55398
>Category: ports
>Synopsis: A port depending on x11/libcapplet fails to link
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Aug 08 12:50:22 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: SUGIMOTO Sadahiro
>Release: FreeBSD 5.1-RELEASE i386
>Organization:
the University of Tokyo
>Environment:
System: FreeBSD vision.ixtl.p.utmc.or.jp 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
www/gtkhtml, which depends on x11/libcapplet, fails to link because the result
of `gnome-config --libs-only-l capplet` contains -lgnugetopt.
>How-To-Repeat:
# cd /usr/ports/www/gtkhtml
# make
>Fix:
--- libcapplet/Makefile.orig Mon Jul 14 20:27:35 2003
+++ libcapplet/Makefile Sat Aug 9 04:21:30 2003
@@ -21,6 +21,14 @@
USE_GETOPT_LONG=yes
MAKE_ENV= X11BASE="${X11BASE}" LOCALBASE="${LOCALBASE}" LDFLAGS="${LDFLAGS}"
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500041
+USE_REINPLACE= yes
+post-build:
+ ${REINPLACE_CMD} -e 's/-lgnugetopt //' ${WRKSRC}/cappletConf.sh
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libcapplet.so.5 ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libcapplet.a ${PREFIX}/lib
@@ -32,4 +40,4 @@
${INSTALL_DATA} ${WRKSRC}/control-center.idl ${PREFIX}/share/gnome/idl
${INSTALL_SCRIPT} ${WRKSRC}/cappletConf.sh ${PREFIX}/etc
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list