Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393579 - sys-auth/polkit-0.103 needs glib-unix.h from glib-2.30 but upstream configure.ac fails to check for it
Summary: sys-auth/polkit-0.103 needs glib-unix.h from glib-2.30 but upstream configure...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Nirbheek Chauhan (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 03:42 UTC by Matt
Modified: 2011-12-09 13:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log for failed sys-auth/polkit-0.103 (build.log,51.41 KB, text/plain)
2011-12-08 03:42 UTC, Matt
Details
environment for failed sys-auth/polkit-0.103 (environment,98.73 KB, text/plain)
2011-12-08 03:43 UTC, Matt
Details
emerge --info =sys-auth/polkit-0.103 (emerge_info_polkit-0.103,6.24 KB, text/plain)
2011-12-08 03:43 UTC, Matt
Details
Successful dev-libs/glib build (dev-libs:glib-2.28.8:20111208-040718.log,103.08 KB, text/plain)
2011-12-08 04:14 UTC, Matt
Details
Successful sys-auth/polkit-0.103 build.log (sys-auth:polkit-0.103:20111209-131803.log,85.48 KB, text/plain)
2011-12-09 13:28 UTC, Matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2011-12-08 03:42:05 UTC
sys-auth/polkit-0.103 Fails to build:

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\" -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\" -DPACKAGE_LOCALSTATE_DIR=\""/var"\" -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\" -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT    -DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE -DG_LOG_DOMAIN=\"polkitd-1\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -O4 -march=prescott -pipe -fomit-frame-pointer -w -Wall -Wchar-subscripts -Wmissing-declarations -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wformat -Wformat-security -c -o polkitd-gposixsignal.o `test -f 'gposixsignal.c' || echo './'`gposixsignal.c
main.c:26:23: fatal error: glib-unix.h: No such file or directory
compilation terminated.
make[3]: *** [polkitd-main.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103/src/polkitd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103'
make: *** [all] Error 2
 * ERROR: sys-auth/polkit-0.103 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of 'emerge --info =sys-auth/polkit-0.103',
 * the complete build log and the output of 'emerge -pqv =sys-auth/polkit-0.103'.
 * The complete build log is located at '/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/temp/environment'.
 * S: '/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103'


~~~~~~~~~~~

$ locate glib-unix.h
$

It indeed doesn't exist on my system.

$ emerge -pqv =sys-auth/polkit-0.103
[ebuild     U ] sys-auth/polkit-0.103 [0.102] USE="introspection kde nls pam -debug -doc -examples -gtk"

(other outputs / logs to follow in attachments)


M.
Comment 1 Matt 2011-12-08 03:42:53 UTC
Created attachment 295163 [details]
build.log for failed sys-auth/polkit-0.103

build.log for failed sys-auth/polkit-0.103
Comment 2 Matt 2011-12-08 03:43:20 UTC
Created attachment 295165 [details]
environment for failed sys-auth/polkit-0.103

environment for failed sys-auth/polkit-0.103
Comment 3 Matt 2011-12-08 03:43:58 UTC
Created attachment 295167 [details]
emerge --info =sys-auth/polkit-0.103

emerge --info =sys-auth/polkit-0.103
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2011-12-08 03:54:54 UTC
(In reply to comment #0)
> sys-auth/polkit-0.103 Fails to build:
> 
> i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src -I../../src
> -DPACKAGE_LIBEXEC_DIR=\""/usr/libexec"\" -DPACKAGE_SYSCONF_DIR=\""/etc"\"
> -DPACKAGE_DATA_DIR=\""/usr/share"\" -DPACKAGE_BIN_DIR=\""/usr/bin"\"
> -DPACKAGE_LOCALSTATE_DIR=\""/var"\"
> -DPACKAGE_LOCALE_DIR=\""/usr/share/locale"\" -DPACKAGE_LIB_DIR=\""/usr/lib"\"
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   
> -DPOLKIT_BACKEND_I_KNOW_API_IS_SUBJECT_TO_CHANGE -DG_LOG_DOMAIN=\"polkitd-1\"
> -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -O4

Notice that -I/usr/include/glib-2.0 is there.

> main.c:26:23: fatal error: glib-unix.h: No such file or directory

$ qfile -v glib-unix.h
dev-libs/glib-2.30.2 (/usr/include/glib-2.0/glib-unix.h)

As shown above, glib-unix.h is part of dev-libs/glib which is a depend of polkit-0.103.

Post full build.log of dev-libs/glib if the problem persists after re-emerging glib.
Comment 5 Matt 2011-12-08 04:13:57 UTC
(In reply to comment #4)

> Notice that -I/usr/include/glib-2.0 is there.
> 
> > main.c:26:23: fatal error: glib-unix.h: No such file or directory
> 
> $ qfile -v glib-unix.h
> dev-libs/glib-2.30.2 (/usr/include/glib-2.0/glib-unix.h)
> 
> As shown above, glib-unix.h is part of dev-libs/glib which is a depend of
> polkit-0.103.
> 
> Post full build.log of dev-libs/glib if the problem persists after re-emerging
> glib.

Yeah...  I kinda realized that /after/ I hit submit.  Sorry about that. :-/  I should've tried that first, but now have:


# emerge -aq1 dev-libs/glib
[ebuild   R   ] dev-libs/glib-2.28.8 

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) dev-libs/glib-2.28.8
>>> Installing (1 of 1) dev-libs/glib-2.28.8

# qfile -v glib-unix.h

# ls -l /usr/include/glib-2.0/glib-unix.h
ls: cannot access /usr/include/glib-2.0/glib-unix.h: No such file or directory

# ls -l /usr/include/glib-2.0/
total 72
drwxr-xr-x 2 root root 20480 Dec  7 23:10 gio
drwxr-xr-x 2 root root 12288 Dec  7 23:10 glib
-rw-r--r-- 1 root root  2910 Dec  7 23:10 glib.h
-rw-r--r-- 1 root root  1511 Dec  7 23:10 glib-object.h
-rw-r--r-- 1 root root  3613 Dec  7 23:10 gmodule.h
drwxr-xr-x 2 root root  4096 Dec  7 23:10 gobject


build.log for glib attached below.

Just for grins, I tried polkit again.  Still fails with the same error (of course).


M.
Comment 6 Matt 2011-12-08 04:14:34 UTC
Created attachment 295169 [details]
Successful dev-libs/glib build

Successful dev-libs/glib build
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2011-12-08 15:39:21 UTC
+  08 Dec 2011; Samuli Suominen <ssuominen@gentoo.org> polkit-0.103.ebuild:
+  Raise dev-libs/glib depend to at least 2.30 wrt #393579 by Matt Palermo
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2011-12-08 19:42:31 UTC
reported upstream here:

http://bugs.freedesktop.org/show_bug.cgi?id=43638
Comment 9 Matt 2011-12-09 13:27:42 UTC
(sorry for the delay...)

After unmasking the different glib:

# echo "=dev-libs/glib-2.30.2 ~x86" >> /etc/portage/package.keywords/monolithic

# qfile -v glib-unix.h
dev-libs/glib-2.30.2 (/usr/include/glib-2.0/glib-unix.h)

sys-auth/polkit-0.103 Built just fine!  Build.log attached.

THANK YOU!


M.
Comment 10 Matt 2011-12-09 13:28:12 UTC
Created attachment 295289 [details]
Successful sys-auth/polkit-0.103 build.log