Bug 556212 - Build fails with AUDIT disabled
Summary: Build fails with AUDIT disabled
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pam
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-17 07:10 UTC by JW
Modified: 2010-01-18 09:16 UTC (History)
1 user (show)

Fixed In Version: pam-1.1.1-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-18 09:16:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description JW 2010-01-17 07:10:51 UTC
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 07:15:43 UTC
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.