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 721087 - Missing -lselinux in pkg-config --libs --static gio-2.0
Missing -lselinux in pkg-config --libs --static gio-2.0
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.39.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-12-26 15:18 UTC by Mikhail Gusarov
Modified: 2013-12-26 16:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (341 bytes, patch)
2013-12-26 15:18 UTC, Mikhail Gusarov
accepted-commit_now Details | Review

Description Mikhail Gusarov 2013-12-26 15:18:14 UTC
Created attachment 264903 [details] [review]
Patch

gio uses libselinux if configured, but this is not reflected in libgio-2.0.pc.in, so trying to link statically to gio using $(pkg-config --libs --static gio-2.0) gives the following error:

/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libgio-2.0.a(libgio_2_0_la-glocalfileinfo.o): In function `set_selinux_context':
(.text+0x1d7): undefined reference to `is_selinux_enabled'

Attached patch fixes the issue.
Comment 1 Colin Walters 2013-12-26 16:23:52 UTC
Review of attachment 264903 [details] [review]:

Looks good.  If you submit more patches in the future, please see https://wiki.gnome.org/GnomeLove/SubmittingPatches for how to write patches that can be applied directly to git.