Bug 133395

Summary: sysstat spec creates broken cron entries on biarch systems
Product: Red Hat Enterprise Linux 3 Reporter: Charlie Bennett <ccb>
Component: sysstatAssignee: Ivana Varekova <varekova>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: chrismcc
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: sysstat-5.0.11.rhel3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-03 11:42:37 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    

Description Charlie Bennett 2004-09-23 18:18:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3)
Gecko/20040803

Description of problem:
in the sysstat .spec file are the following lines:

                                                                     
          
%ifarch x86_64 ppc64 s390x
perl -pi -e "s|/lib|/lib64|g" %{SOURCE1}
%endif

this patched the file in SOURCES/sysstat.cron

that file in the srpm now reads:

[chrismcc@valhalla SRPMS]$ cat ../SOURCES/sysstat.crond
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A


running it again will yield a broken cron

e.g.  /usr/lib6464/sa/sa1 1 1  on a 64 bit platform 

recomend:                                                            
         
       
%ifarch x86_64 ppc64 s390x
perl -pi -e "s|/lib|/lib64|g" %{buildroot}/etc/cron.d/sysstat
%endif




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


How reproducible:
Always

Steps to Reproduce:
Hey, this even includes a fix.

Additional info:

Comment 1 Charlie Bennett 2004-09-23 18:22:23 UTC
Factored out of bug 104266 for independent tracking

Comment 2 Charlie Bennett 2004-09-30 20:02:19 UTC
The sysstat-5.0.5 planned for the next release has a fix for this bug.