Bug 176863 - [patch] sysutils/gksu not builds
Summary: [patch] sysutils/gksu not builds
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Boris Samorodov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-11 20:00 UTC by Ivan Klymenko
Modified: 2013-03-25 19:31 UTC (History)
0 users

See Also:


Attachments
file.diff (344 bytes, patch)
2013-03-11 20:00 UTC, Ivan Klymenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Klymenko 2013-03-11 20:00:00 UTC
 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.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-11 20:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-03-25 19:28:23 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"
Comment 3 Boris Samorodov freebsd_committer freebsd_triage 2013-03-25 19:31:26 UTC
State Changed
From-To: open->closed

The port is fixed with an other patch. Thanks for reporting!