New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34190 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

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

Reported by: gary.verhaegen@… Owned by: ryandesign@…
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

comment:1 Changed 13 months 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 13 months ago by ryandesign@…

  • Cc nomaintainer@… removed
  • Status changed from new to assigned
  • Owner changed from macports-tickets@… to ryandesign@…
  • Summary changed from Awesome (WM) needs updating to awesome: 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 13 months ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Summary changed from awesome: glib2 2.32 incompatibility to awesome: #error "Only <glib.h> can be included directly."
Note: See TracTickets for help on using tickets.