Red Hat Bugzilla – Bug 148973
rpm should have BuildRequires dependency on libselinux version
Last modified: 2007-11-30 17:07:16 EST
Description of problem:
Building the rpm package depends on newer versions of libselinux,
otherwise it complains about an undefined reference "rpm_execcon".
The rpm src.rpm should contain a BuildRequires dependency for the
correct version of the libselinux (or libselinux-devel?) package.
Version-Release number of selected component (if applicable):
*** Bug 148982 has been marked as a duplicate of this bug. ***
A (necessary imho) ABI change like rpm_execcon cannot be
properly tracked through build dependencies.
Adding a build dependency fo now isn't the right
solution either, as libselinux development is
happening much more quickly than rpm development.
So any build dependency added today is predicatbly
going to rot when libselinux changes and rpm does not.
A more general fix, using dlopen rather than the
traditional (and overly stiff and complex imho)
solution is needed so that rpm "works" with and
without libselinux, either enabled/disabled, strict/targeted.
These are intrinsically run-time attributes that no build
dependency can adequately solve.
Defeered unti then ...