Bug 43638 - GLIB check in configure.ac is for 2.28, but it should be for 2.30 since glib-unix.h is only in 2.30
GLIB check in configure.ac is for 2.28, but it should be for 2.30 since glib-...
Status: RESOLVED FIXED
Product: PolicyKit
Classification: Unclassified
Component: daemon
unspecified
Other All
: medium normal
Assigned To: David Zeuthen (not reading bugmail)
David Zeuthen (not reading bugmail)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-08 11:40 UTC by Samuli Suominen
Modified: 2012-06-19 19:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen 2011-12-08 11:40:50 UTC
configure.ac has this:

PKG_CHECK_MODULES(GLIB, [gio-2.0 >= 2.28.0])

but it should have this:

PKG_CHECK_MODULES(GLIB, [gio-2.0 >= 2.30.0])

otherwise we see this:

make[3]: Entering directory `/var/tmp/portage_build_tmp/portage/sys-auth/polkit-0.103/work/polkit-0.103/src/polkitd'
  CC     polkitd-main.o
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-main.o `test -f 'main.c' || echo './'`main.c
  CC     polkitd-gposixsignal.o
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
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <- HERE
Comment 1 Samuli Suominen 2011-12-08 11:41:19 UTC
reported downstream here:

http://bugs.gentoo.org/show_bug.cgi?id=393579
Comment 2 Samuli Suominen 2012-06-19 08:07:27 UTC
https://bugs.freedesktop.org/show_bug.cgi?id=42170 has a patch
Comment 3 David Zeuthen (not reading bugmail) 2012-06-19 14:12:16 UTC
We now depend on glib-2.30, see

http://cgit.freedesktop.org/polkit/commit/?id=1caa8c2d3636bdd99dbbf0c84002946c432bd6e1
Comment 4 Samuli Suominen 2012-06-19 19:21:59 UTC
well, this was reported against 0.105 instead of current 0.106, and now since 0.106 has the correct check for 2.30, this is really 'FIXED' :-)

Thanks David!