From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 4 05:30:11 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 108DD1065672 for ; Sat, 4 Feb 2012 05:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E39398FC14 for ; Sat, 4 Feb 2012 05:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q145UAhu077915 for ; Sat, 4 Feb 2012 05:30:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q145UAWk077912; Sat, 4 Feb 2012 05:30:10 GMT (envelope-from gnats) Resent-Date: Sat, 4 Feb 2012 05:30:10 GMT Resent-Message-Id: <201202040530.q145UAWk077912@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sunpoet Po-Chuan Hsieh Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D9DE106566C for ; Sat, 4 Feb 2012 05:22:41 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from sunpoet.net (sunpoet.net [220.133.12.240]) by mx1.freebsd.org (Postfix) with ESMTP id B381D8FC14 for ; Sat, 4 Feb 2012 05:22:40 +0000 (UTC) Received: by sunpoet.net (Postfix, from userid 1000) id 6C73F19DC; Sat, 4 Feb 2012 13:22:20 +0800 (CST) Message-Id: <20120204052220.6C73F19DC@sunpoet.net> Date: Sat, 4 Feb 2012 13:22:20 +0800 (CST) From: Sunpoet Po-Chuan Hsieh To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: gnome@FreeBSD.org Subject: ports/164756: [PATCH] devel/gamin: add option for libinotify to fix build when it's already installed X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 05:30:11 -0000 >Number: 164756 >Category: ports >Synopsis: [PATCH] devel/gamin: add option for libinotify to fix build when it's already installed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 04 05:30:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Sunpoet Po-Chuan Hsieh >Release: FreeBSD 9.0-STABLE amd64 >Organization: The FreeBSD Project >Environment: System: FreeBSD bonjour.sunpoet.net 9.0-STABLE FreeBSD 9.0-STABLE #0: Sun Jan 29 23:36:49 CST 2012 >Description: - Add an option for libinotify Port maintainer (gnome@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: gamin fails to build when libinotify is installed % cd /usr/ports/devel/libinotify % make install % cd /usr/ports/devel/gamin % make build ... gmake[3]: Entering directory `/usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10/server' /bin/sh /usr/local/bin/libtool --tag=CC --mode=link cc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -O2 -pipe -march=core2 -fno-strict-aliasing -L/usr/local/lib -pthread -o gam_server gam_subscription.o gam_listener.o gam_server.o gam_node.o gam_tree.o gam_poll_basic.o gam_poll_generic.o gam_pidname.o gam_channel.o gam_connection.o gam_debugging.o gam_excludes.o gam_fs.o gam_conf.o gam_eq.o gam_inotify.o inotify-helper.o inotify-kernel.o inotify-missing.o inotify-path.o inotify-sub.o inotify-diag.o gam_kqueue.o ../lib/libgamin_shared.a -L/usr/local/lib -lglib-2.0 libtool: link: cc -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wsign-compare -Wno-sign-compare -g -O2 -pipe -march=core2 -fno-strict-aliasing -pthread -o gam_server gam_subscription.o gam_listener.o gam_server.o gam_node.o gam_tree.o gam_poll_basic.o gam_poll_generic.o gam_pidname.o gam_channel.o gam_connection.o gam_debugging.o gam_excludes.o gam_fs.o gam_conf.o gam_eq.o gam_inotify.o inotify-helper.o inotify-kernel.o inotify-missing.o inotify-path.o inotify-sub.o inotify-diag.o gam_kqueue.o -L/usr/local/lib ../lib/libgamin_shared.a /usr/local/lib/libglib-2.0.so /usr/local/lib/libintl.so /usr/local/lib/libiconv.so /usr/local/lib/libpcre.so -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib inotify-kernel.o: In function `ik_ignore': /usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10/server/inotify-kernel.c:297: undefined reference to `inotify_rm_watch' inotify-kernel.o: In function `ik_watch': /usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10/server/inotify-kernel.c:277: undefined reference to `inotify_add_watch' inotify-kernel.o: In function `ik_startup': /usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10/server/inotify-kernel.c:188: undefined reference to `inotify_init' gmake[3]: *** [gam_server] Error 1 gmake[3]: Leaving directory `/usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10/server' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10/server' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/works/usr/ports/devel/gamin/work/gamin-0.1.10' gmake: *** [all] Error 2 *** Error code 1 >Fix: --- gamin-0.1.10_4.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/gamin/Makefile,v retrieving revision 1.41 diff -u -u -r1.41 Makefile --- Makefile 23 Sep 2011 22:21:56 -0000 1.41 +++ Makefile 4 Feb 2012 05:20:12 -0000 @@ -30,7 +30,8 @@ GNU_CONFIGURE= yes .if !defined(GAMIN_SLAVE) -OPTIONS= GAM_POLLER "Use gamin's poller instead of kqueue's" off +OPTIONS= GAM_POLLER "Use gamin's poller instead of kqueue's" off \ + LIBINOTIFY "Build libinotify support" off .endif .include @@ -39,6 +40,14 @@ .if defined(WITH_GAM_POLLER) CPPFLAGS+= -DUSE_GAMIN_POLLER=1 .endif + +.if defined(WITH_LIBINOTIFY) +CONFIGURE_ARGS+=--enable-inotify +LDFLAGS+= -L${LOCALBASE}/lib -linotify +LIB_DEPENDS+= inotify:${PORTSDIR}/devel/libinotify +.else +CONFIGURE_ARGS+=--disable-inotify +.endif .endif post-patch: --- gamin-0.1.10_4.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: