Bug 556212 - Build fails with AUDIT disabled
Build fails with AUDIT disabled
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: pam (Show other bugs)
12
All Linux
low Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-17 02:10 EST by JW
Modified: 2010-01-18 04:16 EST (History)
1 user (show)

See Also:
Fixed In Version: pam-1.1.1-2.fc13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-01-18 04:16:30 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description JW 2010-01-17 02:10:51 EST
Description of problem:
rpm build of pam fails when AUDIT disabled.

Version-Release number of selected component (if applicable):
pam-1.1.0-7

How reproducible:
Always

Steps to Reproduce:
1. rpmbuild -ba --without audit pam.spec
  
Actual results:
1. ERROR pam_tty_audit did not build a module.

Expected results:
no errors expected

Additional info:
Following patch needed for pam.spec:
+%if ! %{WITH_AUDIT}
+        [ ${dir} = "modules/pam_tty_audit" ] && continue
+%endif

Also:
+%if ! %{WITH_AUDIT}
 %{_moduledir}/pam_tty_audit.so
+%endif
Comment 1 JW 2010-01-17 02:15:43 EST
Mistake: end patch should be:

%if %{WITH_AUDIT}
%{_moduledir}/pam_tty_audit.so
%endif

Note You need to log in before you can comment on or make changes to this bug.