Package: oprofile Version: 0.9.2-4 Severity: important I get the following when trying to run oprofile:
[EMAIL PROTECTED]:/tmp # opcontrol --start Using default event: CYCLES:100000:0:1:1 /usr/bin/opcontrol: line 1135: test: 1+1: integer expression expected /usr/bin/opcontrol: line 1135: test: 1+1+1: integer expression expected /usr/bin/opcontrol: line 1135: test: 1+1+1+1: integer expression expected The bug is introduced by the debian patch to oprofile: ..... else set_ctr_param $CTR enabled 1 set_ctr_param $CTR event $EVENT_VAL - let loop_count=1 + loop_count=1 for i in ${EVENT_STR}; do #Skip first argument of EVENT_STR (event val) since we've already #processed that value. @@ -1136,7 +1137,7 @@ VAL=`echo $i | awk -F: '{print $2}'` set_ctr_param "" $KEY $VAL fi - let loop_count="$loop_count"+1 + loop_count="$loop_count"+1 done set_ctr_param $CTR count $COUNT set_ctr_param $CTR kernel $KERNEL I have no idea why the syntax was changed from the valid "let" one. But if that's for some reason to avoid, instead use: loop_count = $(($loop_count+1)) -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc64) Kernel: Linux 2.6.21 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages oprofile depends on: ii debconf [debconf-2.0] 1.5.13 Debian configuration management sy ii oprofile-common 0.9.2-4 system-wide profiler for Linux sys ii oprofile-gui 0.9.2-4 system-wide profiler for Linux sys oprofile recommends no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]