Summary: | dev-java/icedtea-7.2.0 cannot be built with dev-libs/glib-2.31 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maciej Piechotka <uzytkownik2> |
Component: | New packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | cornicx, gnome, keenblade, marienz, rsa4046 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 406437 | ||
Attachments: | explicitly link to gthread |
Description
Maciej Piechotka
2012-02-07 09:04:21 UTC
*** Bug 400715 has been marked as a duplicate of this bug. *** I'm seeing the same. If I understand correctly the glib change is that libgthread-2.0 is now a dummy library containing just the deprecated g_thtread_init function, which no longer does anything. The build fails not so much because g_thread_init was removed, but because -lgthread-2.0 is not in the linker flags. It was probably pulled in indirectly in the past. Adding -lgthread-2.0 to the linker flags (upstream mentions pkg-config --libs gthread-2.0 for getting this) should fix this, and should also work on older glibs. Alternatively g_thread_init could be removed, but it seems that is unsafe on glib <= .30, so the former fix is probably easier. I'll see if I can cook up a patch, but as I'm expecting the icedtea build system to be somewhat hairy it might take a while. Created attachment 303181 [details, diff]
explicitly link to gthread
The attached patch gets me past it. Not 100% sure it's the best place to add these linker flags, though.
Looks correct. Also posted here: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2012-February/017367.html Fixed for icedtea 7.2.0.1 and 7.2.1, 6.x aren't affected as they use internal gtk headers. Thanks to Maciej Piechotka for the report and Marien Zwart for the patch. |