Opened 12 years ago

Closed 12 years ago

#34190 closed defect (fixed)

awesome: #error "Only <glib.h> can be included directly."

Reported by: gary.verhaegen@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc:
Port: awesome

Description

glib2 has been recently updated to 2.32, which apparently forbids the inclusion of some headers. The awesome window manager depends on glib2 and used to include those deprecated headers directly; it has apparently been fixed upstream by the awesome WM developers : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665508

So it should simply require updating the awesome version in macports, assuming the macports version is not too heavily customized to run on the Mac.

Current awesome version : 3.4.11, required version to play nice with glib2 2.32 : 3.4.12.

Change History (3)

comment:1 Changed 12 years ago by gary.verhaegen@…

As a temporary workaround, simply changing the #include <glib/spawn.h> to #include <glib.h> in spawn.c is enough to get awesome 3.4.11 to compile (and it seems to work).

comment:2 in reply to:  description Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: nomaintainer@… removed
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: Awesome (WM) needs updatingawesome: glib2 2.32 incompatibility

Replying to gary.verhaegen@…:

Current awesome version : 3.4.11, required version to play nice with glib2 2.32 : 3.4.12.

3.4.11 is the latest version available. When 3.4.12 becomes available of course we can update to that version. In the mean time we can patch the #include.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Summary: awesome: glib2 2.32 incompatibilityawesome: #error "Only <glib.h> can be included directly."
Note: See TracTickets for help on using tickets.