Bug#856460: stap-prep: recommend installation of dbgsym instead of dbg kernel package

2017-03-01 Thread jackdev
Package: systemtap
Version: 3.0-7
Severity: normal
Tags: stretch

Hi,

the `stap-prep` script in Debian Stretch currently still recommends installing 
the linux-image-`uname -r`-dbg package instead of the linux-image-`uname 
-r`-dbgsym package.
As far as I can tell, the linux kernel package in Debian switched to 
automatically generated debug packages with the -dbgsym extension in Stretch.
http://snapshot.debian.org/package/linux/4.9.13-1/

> $ stap-prep
> Please install linux-image-4.9.0-1-amd64-dbg
> $ dpkg --get-selections linux-image*
> linux-image-4.9.0-1-amd64install
> linux-image-4.9.0-1-amd64install
> linux-image-amd64install

Also, while we're at it, I would like to see stap-prep tell me where (or how) I 
can get the relevant package, because `apt install linux-image-...-dbgsym` 
doesn't cut it since one also has to include one of the debug repositories. It 
took me quite a bit of searching online to find this information.
E.g.:
> $ stap-prep
> Please install linux-image-4.9.0-1-amd64-dbg from the debian-debug repository
> see https://wiki.debian.org/DebugPackage

Greetings,
Jack



Bug#856458: Command 'stap-prep' requires lsb-release

2017-03-01 Thread jackdev
Package: systemtap
Version: 3.0-7
Severity: normal
Tags: stretch

Hi,

I just installed systemtap inside a clean VM (based on the Debian Stretch 
Netinstall image).
After installation, I wanted to check if systemtap was successfully installed 
(and all required components are available):

> $ stap-prep
> /usr/bin/stap-prep: line 31L rpm: command not found

Obviously, this is a Debian distribution, so the rpm package manager is not 
available.

The problem here lies in line 114, where the script checks if the command 
`lsb_release` was successful, but then fails to do anything if it wasn't. (The 
package lsb-release isn't installed on my system).

Greetings,
Jack