oprofile: use coreutils to build, add patch to fix hardcoded paths.

This commit is contained in:
Juan RP 2011-12-16 16:40:54 +01:00
parent 391028bdc9
commit fae63305a6
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,15 @@
Assume that which and dirname are found in PATH, don't harcode your custom PATH.
--- utils/opcontrol.orig 2011-12-16 16:32:00.405576367 +0100
+++ utils/opcontrol 2011-12-16 16:32:25.755959905 +0100
@@ -2156,8 +2156,8 @@ help_start_daemon_with_ibs()
# determine the location of opcontrol and related programs
if test -z "$OPDIR"; then
BINDIR="/usr/bin"
- OPCONTROL=`$BINDIR/which $0`
- OPDIR=`$BINDIR/dirname $OPCONTROL`
+ OPCONTROL=`which $0`
+ OPDIR=`dirname $OPCONTROL`
fi
PATH=$OPDIR:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin

View File

@ -1,7 +1,7 @@
# Template file for 'oprofile'
pkgname=oprofile
version=0.9.7
revision=1
revision=2
homepage="http://oprofile.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
build_style=gnu-configure
@ -25,6 +25,7 @@ system_accounts="oprofile"
oprofile_homedir="/var/lib/oprofile"
make_dirs="/var/lib/oprofile 0750 oprofile oprofile"
Add_dependency build coreutils
Add_dependency build qt-devel
Add_dependency build zlib-devel
Add_dependency build popt-devel