nixpkgs/pkgs/development/tools/profiling/oprofile/opcontrol.patch
Ludovic Courtès e24afc19ad Add OProfile, a system-wide profiler for Linux.
svn path=/nixpkgs/trunk/; revision=11984
2008-06-04 21:23:30 +00:00

17 lines
510 B
Diff

--- oprofile-0.9.3/utils/opcontrol 2007-07-16 20:22:17.000000000 +0200
+++ oprofile-0.9.3/utils/opcontrol 2008-06-04 23:05:20.000000000 +0200
@@ -1647,12 +1647,10 @@ check_version()
# 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=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
check_options_early $@