Bug 749224

Summary: #error "Only <glib.h> can be included directly."
Product: [Fedora] Fedora Reporter: Tom Lane <tgl>
Component: glib2Assignee: Matthias Clasen <mclasen>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: hhorak, mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-26 14:43:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tom Lane 2011-10-26 14:19:34 UTC
Description of problem:
As of rawhide tip, a distressingly large fraction of glib2-using programs FTBFS with

/usr/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."

or variants of that.  If this isn't an outright bug, it represents a draconian API narrowing that maybe you'd better reconsider.

Version-Release number of selected component (if applicable):
glib2-devel-2.31.0-1.fc17

How reproducible:
100%

Steps to Reproduce:
1.  Try to build a lot of Fedora packages in mock with -r fedora-rawhide-x86_64,
for instance abiword, audacity, gnome-chemistry-utils (there are lots more)

Actual results:
I'm seeing a lot of failures that seem unrelated to what I actually intended to test.

Expected results:
These packages must have built not too long ago.

Additional info:

Comment 1 Matthias Clasen 2011-10-26 14:43:26 UTC
Not a bug, just a change. 
It has been recommended for a long time to that you only include <glib.h>.
This is now being enforced in GLib 2.31