Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 396417

Summary: x11-wm/awesome: Build failure against >=dev-libs/glib-2.31
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: [OLD] UnspecifiedAssignee: MATSUU Takuto (RETIRED) <matsuu>
Status: RESOLVED FIXED    
Severity: normal CC: anton.kochkov, sy.achmed, wired
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 406437    
Attachments: awesome-fix-glib-include.patch

Description Priit Laes (IRC: plaes) 2011-12-29 15:27:16 UTC
Since glib-2.30, only single includes (<glib.h> are allowed), otherwise build fails with following error:

[snip]
[ 32%] Building C object CMakeFiles/awesome.dir/spawn.c.o
In file included from /var/tmp/portage/x11-wm/awesome-3.4.11/work/awesome-3.4.11/spawn.c:27:0:
/usr/include/glib-2.0/glib/gspawn.h:22:2: error: #error "Only <glib.h> can be included directly."
In file included from /usr/include/glib-2.0/glib/gspawn.h:28:0,
[/snip]
Comment 1 Priit Laes (IRC: plaes) 2011-12-29 15:35:49 UTC
Created attachment 297309 [details, diff]
awesome-fix-glib-include.patch
Comment 2 Priit Laes (IRC: plaes) 2011-12-29 15:39:00 UTC
Build actually fails with >=glib-2.31. My bad. But patch still applies and is backwards compatible.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-04-20 17:11:10 UTC
*** Bug 412797 has been marked as a duplicate of this bug. ***
Comment 4 Jeff 2012-04-23 21:30:32 UTC
*** Bug 413189 has been marked as a duplicate of this bug. ***
Comment 5 Michael Mair-Keimberger (iamnr3) 2012-05-01 19:34:45 UTC
I can confirm that bug. I didn't tried out that patch (yet), but it would be nice if we could fix that problem :)
Comment 6 Alex Alexander (RETIRED) gentoo-dev 2012-05-03 11:44:54 UTC
patch works, fix pushed :) thanks!