Package: systemtap
Version: 3.0-7
Severity: normal

The offender is:

case "$DISTRO" in 
    Debian) # 2.6.32-39
        if uname -v | grep -q Debian; then
            VERSION="$(uname -v | cut -d " " -f 4)"
        else
            VERSION="$(cut -d " " -f 5 /proc/version | cut -d ")" -f 1)"
        fi
        ;;

rrs@learner:~$ cat /proc/version 
Linux version 4.10.1+ (rrs@chutzpah) (gcc version 6.3.0 20170221 (Debian 
6.3.0-8) ) #20 SMP Sun Feb 26 21:22:45 IST 2017
2017-03-01 / 15:12:42 ♒♒♒  ☺  

which results in:

rrs@learner:~$ cut -d " " -f 5 /proc/version | cut -d ")" -f 1
(gcc
2017-03-01 / 15:13:21 ♒♒♒  ☺  


Proposed fix is:


case "$DISTRO" in 
    Debian) # 2.6.32-39
        if uname -v | grep -q Debian; then
            VERSION="$(uname -v | cut -d " " -f 4)"
        else
            VERSION="$(cut -d " " -f 3 /proc/version)"
        fi
        ;;

which results in:

rrs@learner:~/rrs-home/Community/pi-gitolite-admin (master)$ stap-prep
Package linux-image-4.10.1+ version 4.10.1+-20 does not match version of 
currently running kernel: 4.10.1+
 Consider apt-get upgrade && reboot
Package linux-headers-4.10.1+ version 4.10.1+-20 does not match version of 
currently running kernel: 4.10.1+
 Consider apt-get upgrade && reboot
Package linux-image-4.10.1+-dbg version 4.10.1+-20 does not match version of 
currently running kernel: 4.10.1+
 Consider apt-get upgrade && reboot
Be root or adduser rrs stapusr
Be root or adduser rrs stapdev
2017-03-01 / 15:15:17 ♒♒♒  ☺  

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (990, 'unstable-debug'), (990, 'testing-debug'), (990, 
'unstable'), (990, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.1+ (SMP w/4 CPU cores)
Locale: LANG=en_IN.utf8, LC_CTYPE=en_IN.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages systemtap depends on:
ii  libavahi-client3   0.6.32-2
ii  libavahi-common3   0.6.32-2
ii  libc6              2.24-9
ii  libdw1             0.168-0.2
ii  libelf1            0.168-0.2
ii  libgcc1            1:6.3.0-8
ii  libnspr4           2:4.12-6
ii  libnss3            2:3.26.2-1
ii  libsqlite3-0       3.16.2-3
ii  libstdc++6         6.3.0-8
ii  make               4.1-9.1
ii  systemtap-common   3.0-7
ii  systemtap-runtime  3.0-7

systemtap recommends no packages.

Versions of packages systemtap suggests:
pn  systemtap-doc      <none>
pn  vim-addon-manager  <none>

-- no debconf information

Reply via email to