From nobody@FreeBSD.org  Mon Mar 11 19:56:38 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id C2A1A704
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Mar 2013 19:56:38 +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 B198CCF5
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Mar 2013 19:56:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2BJubkf089964
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Mar 2013 19:56:37 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2BJub0r089963;
	Mon, 11 Mar 2013 19:56:37 GMT
	(envelope-from nobody)
Message-Id: <201303111956.r2BJub0r089963@red.freebsd.org>
Date: Mon, 11 Mar 2013 19:56:37 GMT
From: Ivan Klymenko <fidaj@ukr.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] sysutils/gksu not builds
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         176863
>Category:       ports
>Synopsis:       [patch] sysutils/gksu not builds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bsam
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 20:00:00 UTC 2013
>Closed-Date:    Mon Mar 25 19:31:27 UTC 2013
>Last-Modified:  Mon Mar 25 19:31:27 UTC 2013
>Originator:     Ivan Klymenko
>Release:        FreeBSD 10.0-CURRENT
>Organization:
individual
>Environment:
>Description:
 cc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/libgksu -I/usr/local/include/startup-notification-1.0 -I/usr/local/include/gnome-keyring-1 -I/usr/local/include/gconf/2 -I/usr/local/include/orbit-2.0 -DORBIT2=1 -I/usr/local/include/nautilus -I/usr/local/include/gtk-2.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pixman-1 -I/usr/local/include/libdrm -D_THREAD_SAFE -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng15 -I/usr/local/include/pango-1.0 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/include/freetype2 -I/usr/local/include -DLOCALEDIR=\"/usr/local/share/locale\" -DDATA_DIR=\"/usr/local/share\" -DPREFIX=\"/usr/local\" -I/usr/local/include -g -O2 -Wall -O2 -pipe -fno-strict-aliasing -MT libnautilus-gksu.lo -MD -MP -MF .deps/libnautilus-gksu.Tpo -c libnautilus-gksu.c  -fPIC -DPIC -o .libs/libnautilus-gksu.o
In file included from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gkeyfile.h:24:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gerror.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glibconfig.h:9,
                 from /usr/local/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gtypes.h:35,
                 from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gtypes.h:36,
                 from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
distcc[41156] ERROR: compile libnautilus-gksu.c on 78.46.220.81/10,lzo failed
distcc[41156] (dcc_build_somewhere) Warning: remote compilation of 'libnautilus-gksu.c' failed, retrying locally
distcc[41156] Warning: failed to distribute libnautilus-gksu.c to 78.46.220.81/10,lzo, running locally instead
In file included from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gkeyfile.h:24:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gerror.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glibconfig.h:9,
                 from /usr/local/include/glib-2.0/glib/gtypes.h:34,
                 from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gtypes.h:35,
                 from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/local/include/glib-2.0/glib/gtypes.h:36,
                 from /usr/local/include/glib-2.0/glib/gquark.h:34,
                 from /usr/local/include/glib-2.0/glib/gerror.h:30,
                 from /usr/local/include/glib-2.0/glib/gkeyfile.h:30,
                 from libnautilus-gksu.c:8:
/usr/local/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
distcc[41156] ERROR: compile libnautilus-gksu.c on localhost failed
gmake[2]: *** [libnautilus-gksu.lo] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
gmake[2]: &#1042;&#1099;&#1093;&#1086;&#1076; &#1080;&#1079; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075;&#1072; `/usr/ports_build/usr/ports/sysutils/gksu/work/gksu-2.0.2/nautilus-gksu'
gmake[1]: *** [all-recursive] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 1
gmake[1]: &#1042;&#1099;&#1093;&#1086;&#1076; &#1080;&#1079; &#1082;&#1072;&#1090;&#1072;&#1083;&#1086;&#1075;&#1072; `/usr/ports_build/usr/ports/sysutils/gksu/work/gksu-2.0.2'
gmake: *** [all] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
===> Compilation failed unexpectedly.
You have chosen to use multiple make jobs (parallelization) for all ports.
This port was not tested for this setting.  Please remove FORCE_MAKE_JOBS and
retry the build before reporting the failure to the maintainer.
*** [do-build] Error code 1

Stop in /usr/ports/sysutils/gksu.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- nautilus-gksu/libnautilus-gksu.c.orig	2013-03-11 21:52:17.000000000 +0200
+++ nautilus-gksu/libnautilus-gksu.c	2013-03-11 21:52:23.000000000 +0200
@@ -5,7 +5,6 @@
 #include <string.h>
 #include <pthread.h>
 
-#include <glib/gkeyfile.h>
 #include <gtk/gtk.h>
 #include <gio/gio.h>
 #include <libnautilus-extension/nautilus-extension-types.h>


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->bsam 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Mar 11 20:00:08 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/176863: commit references a PR
Date: Mon, 25 Mar 2013 19:28:23 +0000 (UTC)

 Author: bsam
 Date: Mon Mar 25 19:28:15 2013
 New Revision: 315243
 URL: http://svnweb.freebsd.org/changeset/ports/315243
 
 Log:
   . trim makefile header to two line style;
   . remove shlib ABI versions from LIB_DEPENDS;
   . USE_GNOME=gnomehack -> USES=pathfix;
   . USE_GNOME=pkgconfig -> USE_PKGCONFIG=build;
   . add USE_LDCONFIG=yes (a library is installed);
   . utilise USE_GNOME=desktopfileutils;
   . fix build after glib2 update;          [1]
   . sort pkg-plist.
   
   PR:		ports/176863  [1]
   Reported by:	Ivan Klymenko <fidaj@ukr.net>  [1]
 
 Modified:
   head/sysutils/gksu/Makefile
   head/sysutils/gksu/pkg-plist
 
 Modified: head/sysutils/gksu/Makefile
 ==============================================================================
 --- head/sysutils/gksu/Makefile	Mon Mar 25 19:14:43 2013	(r315242)
 +++ head/sysutils/gksu/Makefile	Mon Mar 25 19:28:15 2013	(r315243)
 @@ -1,13 +1,9 @@
 -# New ports collection makefile for:   gksu
 -# Date created:        2 October 2004
 -# Whom:                Jesse van den Kieboom <troplosti@orcaweb.cjb.net>
 -#
 +# Created by: Jesse van den Kieboom <troplosti@orcaweb.cjb.net>
  # $FreeBSD$
 -#
  
  PORTNAME=	gksu
  PORTVERSION=	2.0.2
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	sysutils
  MASTER_SITES=	http://people.debian.org/~kov/gksu/
  
 @@ -15,15 +11,25 @@ MAINTAINER=	bsam@FreeBSD.org
  COMMENT=	Graphical frontend to su
  
  LIB_DEPENDS=	gksu2:${PORTSDIR}/sysutils/libgksu \
 -		nautilus-extension.1:${PORTSDIR}/x11-fm/nautilus \
 -		gnome-keyring.0:${PORTSDIR}/security/gnome-keyring
 +		nautilus-extension:${PORTSDIR}/x11-fm/nautilus \
 +		gnome-keyring:${PORTSDIR}/security/gnome-keyring
  
 -USE_GNOME=	gtk20 pkgconfig gnomeprefix gnomehack gconf2 intlhack
 +USES=		pathfix
 +USE_PKGCONFIG=	build
 +USE_GNOME=	desktopfileutils gconf2 gnomeprefix gtk20 intlhack
  GNU_CONFIGURE=	yes
  USE_GMAKE=	yes
 +USE_LDCONFIG=	yes
  CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib
  
  MAN1=		gksu.1
  
 +post-patch:
 +	@${REINPLACE_CMD} -e 's|glib/gkeyfile.h|glib.h|g' \
 +		${WRKSRC}/nautilus-gksu/libnautilus-gksu.c
 +
 +post-install:
 +	-update-desktop-database
 +
  .include <bsd.port.mk>
 
 Modified: head/sysutils/gksu/pkg-plist
 ==============================================================================
 --- head/sysutils/gksu/pkg-plist	Mon Mar 25 19:14:43 2013	(r315242)
 +++ head/sysutils/gksu/pkg-plist	Mon Mar 25 19:28:15 2013	(r315243)
 @@ -3,10 +3,12 @@ bin/gksudo
  lib/nautilus/extensions-2.0/libnautilus-gksu.la
  lib/nautilus/extensions-2.0/libnautilus-gksu.so
  lib/nautilus/extensions-2.0/libnautilus-gksu.a
 +man/man1/gksudo.1
  share/applications/gksu.desktop
  share/pixmaps/gksu-icon.png
  share/pixmaps/gksu-root-terminal.png
  share/gksu/gksu-migrate-conf.sh
 -man/man1/gksudo.1
  @dirrm share/gksu
  @dirrmtry share/applications
 +@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
 +@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: bsam 
State-Changed-When: Mon Mar 25 19:31:26 UTC 2013 
State-Changed-Why:  
The port is fixed with an other patch. Thanks for reporting! 

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