Bug 128974
| Summary: | Dependency to libselinux(-devel) even if SELinux is disabled | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Robert Scheck <redhat-bugzilla> |
| Component: | shadow-utils | Assignee: | Eido Inoue <havill> |
| Status: | CLOSED WONTFIX | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | Keywords: | EasyFix |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-10-01 16:50:11 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 123268 | ||
I think, this bug report isn't any longer of belong, because Fedora Core 3 will have SELinux support; closing with "wontfix" now. |
Description of problem: Dependency to libselinux(-devel) even if SELinux is disabled at rebuilding time: --- snipp --- # rpmbuild -ba shadow-utils.spec error: Failed build dependencies: libselinux-devel is needed by shadow-utils-4.0.3-25 # --- snapp --- Version-Release number of selected component (if applicable): shadow-utils-4.0.3-24 How reproducible: Everytime, see below. Steps to Reproduce: 1. Set "%define WITH_SELINUX 0" 2. rpmbuild -ba shadow-utils.spec 3. Get the dependency error Actual results: Dependency to libselinux(-devel) even if SELinux is disabled. Expected results: Dependency to libselinux(-devel) only if SELinux is enabled; the following change solves it for me: --- snipp --- --- shadow-utils.spec 2004-08-02 01:36:29.000000000 +0200 +++ shadow-utils.spec.rsc 2004-08-02 17:07:11.000000000 +0200 @@ -34,8 +34,10 @@ License: BSD Group: System Environment/Base BuildPrereq: autoconf, automake, libtool, gettext +%if %{WITH_SELINUX} BuildRequires: libselinux-devel Requires: libselinux +%endif Buildroot: %{_tmppath}/%{name}-%{version}-root Obsoletes: adduser --- snapp ---