Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420307 - sys-auth/polkit-0.106 build fails due to incorrect glib version
Summary: sys-auth/polkit-0.106 build fails due to incorrect glib version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-08 19:09 UTC by safety0ff.bugz
Modified: 2012-06-13 14:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description safety0ff.bugz 2012-06-08 19:09:36 UTC
Polkit-106 requires glib 2.31 or greater (due to new new thread api.)

Ebuild specifies >= glib-2.30 erroneously.

Reproducible: Always

Steps to Reproduce:
1. Have glib version < 2.31
2. Try to upgrade polkit to 106
Actual Results:  
Error while building js backed stuff due to GCond and GMutex incomplete type and many "implicit declaration" warnings.

Expected Results:  
Build & install without error

Needed to install spidermonkey first as per bug 420173.
Comment 1 Pacho Ramos gentoo-dev 2012-06-09 10:55:03 UTC
Can you provide build.log? I have seen some cases of false glib-2.32 dependencies due some files that needed to be regenerated by us to allow compilation with older glib versions. Thanks
Comment 2 safety0ff.bugz 2012-06-09 16:14:33 UTC
Sorry I don't have the build log (recreating it would require changing a few other packages.)

I figured that it needed glib >= 2.31 because of the new thread api:
In glib < 2.31 the structures are forward declared in the headers, hence can only be declared as pointers in user code (hence the incomplete type errors because 106 doesn't declare as pointers.)
See this commit: http://cgit.freedesktop.org/polkit/commit/src/polkitbackend/polkitbackendjsauthority.c?id=2ec9e681e0ee17bcc60a0724b201b2e19b573abb

Also, I've since gone back to polkit 105 since polkit qt wasn't playing nice with 106. (polkit 106 is a prerelease anyway, not sure why it is not hard masked.)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-06-13 14:46:08 UTC
Raised the dependency to 2.32 in portage, closing