After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754186 - nm-version.h: #include glib.h, but NetworkManager.pc has no dependency on glib-2.0
nm-version.h: #include glib.h, but NetworkManager.pc has no dependency on gli...
Status: RESOLVED OBSOLETE
Product: NetworkManager
Classification: Platform
Component: API
1.0.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-review
 
 
Reported: 2015-08-27 16:15 UTC by Rex Dieter
Modified: 2015-10-09 21:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add Requires.private: glib-2.0 (813 bytes, patch)
2015-08-27 16:15 UTC, Rex Dieter
none Details | Review

Description Rex Dieter 2015-08-27 16:15:59 UTC
Created attachment 310105 [details] [review]
Add Requires.private: glib-2.0

Since commit,
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/libnm-core/nm-version.h.in?h=nm-1-0&id=6f616d4c4b04d5478f60d0311317bc84c5459ea4

nm-version.h has
#include <glib.h>

So, NetworkManager.pc should pull glib-2.0 as a dependency, I'd suggest adding:
Requires.private: glib-2.0

(Only noticed when some kde-related fedora builds were failing)
Comment 1 Dan Williams 2015-10-09 20:40:17 UTC
Hmm, we don't want NetworkManager.h (and thus NetworkManager.pc) to have a direct dependency on glib, since the stuff there is generic C defines that anything can use, even if it's not glib-based.  eg, KDE should be able to use that and not pull in anything glib related.

I think Thomas has been doing some fixups here, see https://bugzilla.gnome.org/show_bug.cgi?id=755938 for more details (the fixes are in the branch mentioned in the bug).
Comment 2 Thomas Haller 2015-10-09 21:07:14 UTC
Right, including <glib.h> was actually a bug.
So the solution is not to require glib, but not including it.

That is fixed now both for master and nm-1-0.




More details in the commit message:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=7bf10a75db84655e65fe6216d248f7775c58ca23


I'm closing this (but feel free to reopen)