| Summary: | sys-block/gparted-0.13.1 with <dev-cpp/glibmm-2.32.0 - In file included from Device.cc:19: /usr/include/glib-2.0/glib/gtree.h:28:2: error: #error "Only <glib.h> can be included directly." | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Tomas Psika <it> |
| Component: | [OLD] GNOME | Assignee: | Gilles Dartiguelongue (RETIRED) <eva> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | gnome |
| Priority: | Normal | ||
| Version: | 10.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
I guess this is invalid - you should simply upgrade (all) your packages to the unstable branch. Yes, you need to update glibmm if you want latest glib |
system: =dev-cpp/glibmm-2.24.2-r1 (rather old) -> should upgrade in any case =dev-cpp/gtkmm-2.24.2 - newest :(2.4) =dev-libs/glib-2.32.4 - newest :(2) sys-block/gparted-0.13.1 (and maybe older versions!) fails to compile: === In file included from /usr/include/glibmm-2.4/glibmm/balancedtree.h:29:0, from /usr/include/glibmm-2.4/glibmm.h:83, from /usr/include/gtkmm-2.4/gtkmm/label.h:7, from ../include/../include/../include/Utils.h:30, from ../include/../include/Partition.h:27, from ../include/Device.h:22, from Device.cc:19: /usr/include/glib-2.0/glib/gtree.h:28:2: error: #error "Only <glib.h> can be included directly." === Must upgrade glibmm. But only emerge >=dev-cpp/glibmm-2.32.0 works because of this compile errors on older versions (eg. 2.28.2 and 2.30.1): === In file included from varianttype.cc:26:0: /usr/include/glib-2.0/glib/gvarianttype.h:24:2: error: #error "Only <glib.h> can be included directly." === Finally after successfull upgrade to >=dev-cpp/glibmm-2.32.1 GParted emerges fine. This dependency is not specified anywhere in portage. See commit c589a3db61a7d256db23553808e0f63126787ce1 in glibmm library which solved the issue: http://git.gnome.org/browse/glibmm/commit/glib/src/varianttype.ccg?id=c589a3db61a7d256db23553808e0f63126787ce1 # (glibmm clone): git tag --contains c589a3db61a7d256db23553808e0f63126787ce1 2.31.0 2.31.0.1 2.31.0.2 2.31.16 ... 2.33.2 2.33.3 2.33.4 Reproducible: Always