Bug 218053

Summary: RPMs not multilib safe
Product: [Fedora] Fedora Reporter: Ulrich Drepper <drepper>
Component: auditAssignee: Steve Grubb <sgrubb>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 6   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: audit-1.5.6-2.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-06 13:51:58 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:

Description Ulrich Drepper 2006-12-01 16:10:56 UTC
Description of problem:
On biarch systems there is always an install conflict because of
/etc/libaudit.conf.  The file is copied into the chroot-ed install tree when
building the RPM and the date is not adjusted.  This means when the RPM is
installed the dates in the two biarch RPMs differs and therefore we get a conflict.

Version-Release number of selected component (if applicable):
1.3-2.fc6

How reproducible:
always

Steps to Reproduce:
1.install any audit release on biarch system
2.
3.
  
Actual results:
  Updating  : audit-libs                                           [
4/38]warning: /etc/libaudit.conf created as /etc/libaudit.conf.rpmnew


Expected results:
  Updating  : audit-libs                                           [ 4/38]


Additional info:
Two possible solutions

1. move the file into the audit RPM of which there is only one installed.
   But maybe audit-libs can be installed without audit in which case this
   is no option.

2. Use

     touch -r REFFILE /var/tmp/..../etc/libaudit.conf

   after installing in the chroot-ed install dir and before packaging to
   unify the timestamps.  For REFFILE use a file from the source tree which
   isn't touched during the build process

Comment 1 Steve Grubb 2006-12-01 16:28:39 UTC
Hmm...option 1 can't be done since the config file is for use by libaudit and
not the daemon. I assume option 2 is just a change to the spec file. I think I
could do:

touch -r ./audit.spec $RPMBUILD_ROOT/etc/libaudit.conf

since there is a spec file in the tar ball that does not get used.

Comment 2 Steve Grubb 2006-12-01 16:37:28 UTC
audit-1.3-3 was built into rawhide with the above fix. I'll pick up the change
next time FC5/6 audit package is updated and push the change into RHEL5. Thanks
for pointing this out.

Comment 3 Till Maas 2008-01-06 13:51:58 UTC
fixed in Fedora 7