Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 19:56:37 GMT
From:      Ivan Klymenko <fidaj@ukr.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176863: [patch] sysutils/gksu not builds
Message-ID:  <201303111956.r2BJub0r089963@red.freebsd.org>
Resent-Message-ID: <201303112000.r2BK00NX092119@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176863
>Category:       ports
>Synopsis:       [patch] sysutils/gksu not builds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 11 20:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303111956.r2BJub0r089963>