From nobody@FreeBSD.org  Tue Feb 21 10:49:13 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id E04EF106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Feb 2012 10:49:13 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 8FFEA8FC22
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Feb 2012 10:49:13 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q1LAnCJs069401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 21 Feb 2012 10:49:12 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q1LAnCqY069400;
	Tue, 21 Feb 2012 10:49:12 GMT
	(envelope-from nobody)
Message-Id: <201202211049.q1LAnCqY069400@red.freebsd.org>
Date: Tue, 21 Feb 2012 10:49:12 GMT
From: ildar Hizbulin <hizel@vyborg.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysutils/policykit do not build while installed devel/libinotify
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         165358
>Category:       ports
>Synopsis:       sysutils/policykit do not build while installed devel/libinotify
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 21 10:50:10 UTC 2012
>Closed-Date:    Sun Mar 04 23:43:04 UTC 2012
>Last-Modified:  Sun Mar 04 23:43:04 UTC 2012
>Originator:     ildar Hizbulin
>Release:        9.0-RELEASE
>Organization:
Ariadna-Link JSC
>Environment:
FreeBSD doom 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
While installed devel/libinotify - sysutils/policykit do not build


>How-To-Repeat:
before sysutils/policykit install devel/libinotify

/bin/sh ../../libtool --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPACKAGE_LIBEXEC_DIR=\""/usr/local/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/usr/local/etc"\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -DPACKAGE_BIN_DIR=\""/usr/local/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/local/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/local/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -DTEST_DATA_DIR=\"../../test/\" -DTEST_BUILD_DIR=\"../..\"  -I/usr/local/include  -O2 -pipe -fno-strict-aliasing -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-context.lo -MD -MP -MF .deps/polkit-context.Tpo -c -o polkit-context.lo polkit-context.c
 cc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPACKAGE_LIBEXEC_DIR=\"/usr/local/libexec\" -DPACKAGE_SYSCONF_DIR=\"/usr/local/etc\" -DPACKAGE_DATA_DIR=\"/usr/local/share\" -DPACKAGE_BIN_DIR=\"/usr/local/bin\" -DPACKAGE_LOCALSTATE_DIR=\"/var\" -DPACKAGE_LOCALE_DIR=\"/usr/local/share/locale\" -DPACKAGE_LIB_DIR=\"/usr/local/lib\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DPOLKIT_COMPILATION -DTEST_DATA_DIR=\"../../test/\" -DTEST_BUILD_DIR=\"../..\" -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -MT polkit-context.lo -MD -MP -MF .deps/polkit-context.Tpo -c polkit-context.c  -fPIC -DPIC -o .libs/polkit-context.o
polkit-context.c: In function 'polkit_context_init':
polkit-context.c:167: error: storage size of 'ev' isn't known
polkit-context.c:232: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:232: warning: implicit declaration of function 'kqueue'
polkit-context.c:232: warning: nested extern declaration of 'kqueue'
polkit-context.c:233: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:240: error: 'PolKitContext' has no member named 'kqueue_config_fd'
polkit-context.c:240: warning: implicit declaration of function 'open'
polkit-context.c:240: warning: nested extern declaration of 'open'
polkit-context.c:240: error: 'O_RDONLY' undeclared (first use in this function)
polkit-context.c:240: error: (Each undeclared identifier is reported only once
polkit-context.c:240: error: for each function it appears in.)
polkit-context.c:241: error: 'PolKitContext' has no member named 'kqueue_config_fd'
polkit-context.c:248: warning: implicit declaration of function 'EV_SET'
polkit-context.c:248: warning: nested extern declaration of 'EV_SET'
polkit-context.c:248: error: 'PolKitContext' has no member named 'kqueue_config_fd'
polkit-context.c:248: error: 'EVFILT_VNODE' undeclared (first use in this function)
polkit-context.c:249: error: 'EV_ADD' undeclared (first use in this function)
polkit-context.c:249: error: 'EV_ENABLE' undeclared (first use in this function)
polkit-context.c:249: error: 'EV_CLEAR' undeclared (first use in this function)
polkit-context.c:250: error: 'NOTE_DELETE' undeclared (first use in this function)
polkit-context.c:250: error: 'NOTE_EXTEND' undeclared (first use in this function)
polkit-context.c:250: error: 'NOTE_WRITE' undeclared (first use in this function)
polkit-context.c:250: error: 'NOTE_RENAME' undeclared (first use in this function)
polkit-context.c:252: warning: implicit declaration of function 'kevent'
polkit-context.c:252: warning: nested extern declaration of 'kevent'
polkit-context.c:252: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:255: error: 'PolKitContext' has no member named 'kqueue_config_fd'
polkit-context.c:261: error: 'PolKitContext' has no member named 'kqueue_policy_fd'
polkit-context.c:262: error: 'PolKitContext' has no member named 'kqueue_policy_fd'
polkit-context.c:269: error: 'PolKitContext' has no member named 'kqueue_policy_fd'
polkit-context.c:273: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:276: error: 'PolKitContext' has no member named 'kqueue_policy_fd'
polkit-context.c:283: error: 'PolKitContext' has no member named 'kqueue_grant_perm_fd'
polkit-context.c:284: error: 'PolKitContext' has no member named 'kqueue_grant_perm_fd'
polkit-context.c:291: error: 'PolKitContext' has no member named 'kqueue_grant_perm_fd'
polkit-context.c:293: error: 'NOTE_ATTRIB' undeclared (first use in this function)
polkit-context.c:295: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:298: error: 'PolKitContext' has no member named 'kqueue_grant_perm_fd'
polkit-context.c:304: error: 'PolKitContext' has no member named 'kqueue_fd_watch_id'
polkit-context.c:304: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:305: error: 'PolKitContext' has no member named 'kqueue_fd_watch_id'
polkit-context.c:167: warning: unused variable 'ev'
polkit-context.c: In function 'polkit_context_io_func':
polkit-context.c:546: error: 'PolKitContext' has no member named 'kqueue_fd'
polkit-context.c:547: error: array type has incomplete element type
polkit-context.c:564: error: dereferencing pointer to incomplete type
polkit-context.c:564: error: dereferencing pointer to incomplete type
polkit-context.c:564: error: dereferencing pointer to incomplete type
polkit-context.c:564: error: dereferencing pointer to incomplete type
polkit-context.c:547: warning: unused variable 'ev'
gmake[3]: *** [polkit-context.lo] Error 1
gmake[3]: Leaving directory `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/src/polkit'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/sysutils/policykit/work/PolicyKit-0.9/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/sysutils/policykit/work/PolicyKit-0.9'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/sysutils/policykit.

>Fix:
in src/polkit/polkit-context.c fix #ifdef/#elif for HAVE_KQUEUE and HAVE_INOTIFY

or deinstall devel/libinotify solve problem. libinotify depend gamin, with option: LIBINOTIFY "Use libinotify as the FAM backend" off

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Feb 21 10:50:19 UTC 2012 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165358 

From: "Ildar Hizbulin" <hizel@vyborg.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/165358: sysutils/policykit do not build while installed
 devel/libinotify
Date: Mon, 27 Feb 2012 16:29:06 +0400

 My best patch: disable INOTIFY if KQUEUE found
 
 diff -ruN policykit.orig/Makefile policykit/Makefile
 --- policykit.orig/Makefile     2011-11-09 19:25:44.000000000 +0400
 +++ policykit/Makefile  2012-02-27 16:21:34.000000000 +0400
 @@ -8,7 +8,7 @@
 
   PORTNAME=      policykit
   PORTVERSION=   0.9
 -PORTREVISION=  6
 +PORTREVISION=  7
   CATEGORIES=    sysutils gnome
   MASTER_SITES=  http://hal.freedesktop.org/releases/
   DISTNAME=      PolicyKit-${PORTVERSION}
 @@ -22,6 +22,8 @@
   USERS=         polkit
   GROUPS=                polkit
 
 +USE_AUTOTOOLS= aclocal autoheader automake autoconf libtool
 +ACLOCAL_ARGS=  -I ${LOCALBASE}/share/aclocal
   USE_GNOME=     gnomehack glib20 intlhack
   USE_GMAKE=     yes
   GNU_CONFIGURE= yes
 diff -ruN policykit.orig/files/patch-configure.in  
 policykit/files/patch-configure.in
 --- policykit.orig/files/patch-configure.in     1970-01-01  
 03:00:00.000000000 +0300
 +++ policykit/files/patch-configure.in  2012-02-27 16:21:34.000000000 +0400
 @@ -0,0 +1,37 @@
 +--- configure.in.orig  2008-06-30 23:40:59.000000000 +0400
 ++++ configure.in       2012-02-27 16:15:17.000000000 +0400
 +@@ -527,16 +527,6 @@
 +       ;;
 + esac
 +
 +-have_inotify=no
 +-AC_CHECK_HEADERS([linux/inotify.h], [have_inotify=yes])
 +-AC_CHECK_HEADERS([sys/inotify.h], [have_inotify=yes])
 +-
 +-AM_CONDITIONAL(HAVE_INOTIFY, test "x$have_inotify" = "xyes")
 +-
 +-if test "x$have_inotify" = "xyes" ; then
 +-    AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage])
 +-fi
 +-
 + have_kqueue=yes
 + AC_CHECK_FUNCS([kqueue],,have_kqueue=no)
 +
 +@@ -546,6 +536,17 @@
 +     AC_DEFINE([HAVE_KQUEUE], 1, [Enable BSD kqueue() usage])
 + fi
 +
 ++have_inotify=no
 ++if test "x$have_kqueue" != "xyes" ; then
 ++      AC_CHECK_HEADERS([linux/inotify.h], [have_inotify=yes])
 ++      AC_CHECK_HEADERS([sys/inotify.h], [have_inotify=yes])
 ++fi
 ++AM_CONDITIONAL(HAVE_INOTIFY, test "x$have_inotify" = "xyes")
 ++if test "x$have_inotify" = "xyes" ; then
 ++    AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage])
 ++fi
 ++
 ++
 + # ********************
 + # Internationalisation
 + # ********************
 
 
 -- 
 e-mail: hizel@vyborg.ru
 jid: hizel@vyborg.ru

From: "Ildar Hizbulin" <hizel@vyborg.ru>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/165358: sysutils/policykit do not build while installed
 devel/libinotify
Date: Tue, 28 Feb 2012 10:06:49 +0400

 ------------9QExitHXl08ubBlcoaPk0C
 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
 Content-Transfer-Encoding: 7bit
 
 with attach
 
 
 
 -- 
 e-mail: hizel@vyborg.ru
 jid: hizel@vyborg.ru
 ------------9QExitHXl08ubBlcoaPk0C
 Content-Disposition: attachment; filename=patch.txt
 Content-Type: text/plain; name=patch.txt
 Content-Transfer-Encoding: 7bit
 
 diff -ruN sysutils/policykit.orig/Makefile sysutils/policykit/Makefile
 --- sysutils/policykit.orig/Makefile	2011-11-09 19:25:44.000000000 +0400
 +++ sysutils/policykit/Makefile	2012-02-27 16:21:34.000000000 +0400
 @@ -8,7 +8,7 @@
  
  PORTNAME=	policykit
  PORTVERSION=	0.9
 -PORTREVISION=	6
 +PORTREVISION=	7
  CATEGORIES=	sysutils gnome
  MASTER_SITES=	http://hal.freedesktop.org/releases/
  DISTNAME=	PolicyKit-${PORTVERSION}
 @@ -22,6 +22,8 @@
  USERS=		polkit
  GROUPS=		polkit
  
 +USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtool
 +ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
  USE_GNOME=	gnomehack glib20 intlhack
  USE_GMAKE=	yes
  GNU_CONFIGURE=	yes
 diff -ruN sysutils/policykit.orig/files/patch-configure.in sysutils/policykit/files/patch-configure.in
 --- sysutils/policykit.orig/files/patch-configure.in	1970-01-01 03:00:00.000000000 +0300
 +++ sysutils/policykit/files/patch-configure.in	2012-02-27 16:21:34.000000000 +0400
 @@ -0,0 +1,37 @@
 +--- configure.in.orig	2008-06-30 23:40:59.000000000 +0400
 ++++ configure.in	2012-02-27 16:15:17.000000000 +0400
 +@@ -527,16 +527,6 @@
 + 	;;
 + esac
 + 
 +-have_inotify=no
 +-AC_CHECK_HEADERS([linux/inotify.h], [have_inotify=yes])
 +-AC_CHECK_HEADERS([sys/inotify.h], [have_inotify=yes])
 +-
 +-AM_CONDITIONAL(HAVE_INOTIFY, test "x$have_inotify" = "xyes")
 +-
 +-if test "x$have_inotify" = "xyes" ; then
 +-    AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage])
 +-fi
 +-
 + have_kqueue=yes
 + AC_CHECK_FUNCS([kqueue],,have_kqueue=no)
 + 
 +@@ -546,6 +536,17 @@
 +     AC_DEFINE([HAVE_KQUEUE], 1, [Enable BSD kqueue() usage])
 + fi
 + 
 ++have_inotify=no
 ++if test "x$have_kqueue" != "xyes" ; then
 ++	AC_CHECK_HEADERS([linux/inotify.h], [have_inotify=yes])
 ++	AC_CHECK_HEADERS([sys/inotify.h], [have_inotify=yes])
 ++fi
 ++AM_CONDITIONAL(HAVE_INOTIFY, test "x$have_inotify" = "xyes")
 ++if test "x$have_inotify" = "xyes" ; then
 ++    AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage])
 ++fi
 ++
 ++
 + # ********************
 + # Internationalisation
 + # ********************
 
 ------------9QExitHXl08ubBlcoaPk0C--
 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sun Mar 4 23:42:51 UTC 2012 
State-Changed-Why:  
Fixed, thanks for reporting. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=165358 
>Unformatted:
