On 08/13/2018 10:20 AM, Alexander Bokovoy wrote:
On ma, 13 elo 2018, Robert Marcano wrote:
On 08/13/2018 06:17 AM, Graham Leggett wrote:
On 11 Aug 2018, at 20:58, Robert Marcano <rob...@marcanoonline.com> wrote:

Current *-devel packages tend to pull a lot of dependencies, probably to make developers life easier, but I think some of them are not needed.

Do you think they’re not needed, or are you sure they’re not needed?

I think and find occurrences of this, another example:

 # rpm -q --requires krb5-devel | grep libselinux-devel
 libselinux-devel

but an application using krb5-devel doesn't need to link with selinux directly. Another email on this thread point that some are needed for headers, but krb5-devel headers doesn't includes selinux headers

 # rpm -ql krb5-devel | grep \\.h$ | xargs grep -l selinux
 <None>

 # grep Requires.private /usr/lib64/pkgconfig/libselinux.pc
 Requires.private: libsepol libpcre2-8
You are mixing up two separate use cases:
-- libkrb5 builds with SELinux support. -- libkrb5 users depend on SELinux

In case of krb5-libs, there is internally SELinux support and SELinux
headers are needed during the package build. However, users of krb5-libs
do not need to link against SELinux libraries themselves unless they are
SELinux-aware.

Package build time dependencies are added with BuildRequires on the RPM spec file, this case is [1]:

  Requires: keyutils-libs-devel, libselinux-devel

On the devel package, this say that installing krb5-devel requires libselinux-devel, it doesn't.

[1] https://src.fedoraproject.org/cgit/rpms/krb5.git/tree/krb5.spec?h=f28#n171


This is a fairly common use case. For example, Samba provides VFS
modules to use glusterfs. However, samba-devel does not provide nor
require any headers related to gluster.

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/IK62UXB6FFUMVDNOPVAXB4SONIA6GHI3/

Reply via email to