rpms/oprofile/devel oprofile_opcontrol.patch, NONE, 1.1 oprofile.spec, 1.37, 1.38

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Feb 10 15:47:25 UTC 2006


Author: wcohen

Update of /cvs/dist/rpms/oprofile/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv1481

Modified Files:
	oprofile.spec 
Added Files:
	oprofile_opcontrol.patch 
Log Message:
Use the full path for which and dirname in opcontrol.



oprofile_opcontrol.patch:
 opcontrol |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE oprofile_opcontrol.patch ---
--- oprofile-0.8.1/utils/opcontrol.orig	2006-02-10 10:08:05.000000000 -0500
+++ oprofile-0.8.1/utils/opcontrol	2006-02-10 10:09:15.000000000 -0500
@@ -1340,8 +1340,9 @@
 # main
 
 # determine the location of opcontrol and related programs
-OPCONTROL=`which $0`
-OPDIR=`dirname $OPCONTROL`
+BINDIR="/usr/bin"
+OPCONTROL=`$BINDIR/which $0`
+OPDIR=`$BINDIR/dirname $OPCONTROL`
 
 PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
 


Index: oprofile.spec
===================================================================
RCS file: /cvs/dist/rpms/oprofile/devel/oprofile.spec,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- oprofile.spec	7 Feb 2006 13:22:50 -0000	1.37
+++ oprofile.spec	10 Feb 2006 15:47:22 -0000	1.38
@@ -1,6 +1,6 @@
 %define DATE 200511111
 %define oprofile_version 0.9.1
-%define oprofile_release 7
+%define oprofile_release 8
 Summary: System wide profiler
 Name: oprofile
 Version: 0.9.1
@@ -18,6 +18,7 @@
 #Patch79: oprofile-0.8.1-power970.patch
 #Patch80: oprofile-0.8.2-ppc64dot.patch
 Patch81: oprofile-0.9.1-anon.patch
+Patch82: oprofile_opcontrol.patch
 
 URL: http://oprofile.sf.net
 ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x alpha alphaev6 sparc sparc64
@@ -56,6 +57,7 @@
 %patch63 -p1 -b .libs
 #%patch80 -p1 -b .ppc64dot
 %patch81 -p1 -b .anon
+%patch82 -p1 -b .opcontrol
 
 ./autogen.sh
 
@@ -231,6 +233,9 @@
 
 
 %changelog
+* Fri Feb 10 2006 Will Cohen <wcohen at redhat.com>
+- Complete path for which and dirname in opcontrol.
+
 * Tue Feb 07 2006 Jesse Keating <jkeating at redhat.com> - 0.9.1-7.1
 - rebuilt for new gcc4.1 snapshot and glibc changes
 




More information about the fedora-cvs-commits mailing list