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 767339 - libselinux should be a sysdep for nautilus
libselinux should be a sysdep for nautilus
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: module sets
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2016-06-07 12:49 UTC by Simon McVittie
Modified: 2016-08-23 13:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
3.22: nautilus depends on libselinux (1.33 KB, patch)
2016-08-23 12:01 UTC, Michael Catanzaro
committed Details | Review
3.22: Always build nautilus with --disable-selinux (991 bytes, patch)
2016-08-23 13:40 UTC, Michael Catanzaro
committed Details | Review

Description Simon McVittie 2016-06-07 12:49:55 UTC
Nautilus has a mandatory check for libselinux.pc (except when --disable-selinux is explicitly used, as on non-Linux), so libselinux should maybe be a sysdep.

(However, it also seems wrong that Nautilus hard-requires libselinux unless specifically told not to - I would expect it to be more like the SELinux support in dbus, where the default is to auto-detect, but distributions can forcibly enable or disable to avoid auto-detection. I'll open a Nautilus bug for that.)
Comment 1 Michael Catanzaro 2016-08-23 11:54:12 UTC
I don't like automagic dependencies. In the case of nautilus it probably doesn't matter much, since all distros probably already have nautilus configured properly, but in general I think it's a terrible idea for features to be added or disabled because a packager has forgotten a BuildRequires in a spec/control file. So I wouldn't recommend changing nautilus here.

As for jhbuild, I think it's OK to build with --disable-selinux, but I guess all distros at least have libselinux available, so it's probably best to just add the missing sysdep.
Comment 2 Michael Catanzaro 2016-08-23 12:01:25 UTC
The following fix has been pushed:
0627874 3.22: nautilus depends on libselinux
Comment 3 Michael Catanzaro 2016-08-23 12:01:29 UTC
Created attachment 334000 [details] [review]
3.22: nautilus depends on libselinux
Comment 4 Javier Jardón (IRC: jjardon) 2016-08-23 12:54:45 UTC
Sorry, I have to revert this as some distros doesnt have libselinux packages (like Arch)
Comment 5 Michael Catanzaro 2016-08-23 13:37:37 UTC
OK, let's build with --disable-selinux then.
Comment 6 Michael Catanzaro 2016-08-23 13:40:51 UTC
The following fix has been pushed:
f93d8f6 3.22: Always build nautilus with --disable-selinux
Comment 7 Michael Catanzaro 2016-08-23 13:40:54 UTC
Created attachment 334005 [details] [review]
3.22: Always build nautilus with --disable-selinux

Apparently some Linux distros do not have libselinux at all.