Date: Sat, 9 Aug 2003 04:38:58 +0900 (JST) From: SUGIMOTO Sadahiro <ixtl@utmc.or.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ixtl@utmc.or.jp Subject: ports/55398: A port depending on x11/libcapplet fails to link Message-ID: <200308081938.h78JcwxN018263@ixtl.p.utmc.or.jp> Resent-Message-ID: <200308081950.h78JoMVb006785@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308081938.h78JcwxN018263>