Control: tag -1 +confirmed

Thank you for the bug report.

On Wed, 2017-03-01 at 10:37 +0100, jack...@mailbox.org wrote:
> 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/
> 

Please see proposed patch. This should set the messaging correct.

> > $ stap-prep
> > Please install linux-image-4.9.0-1-amd64-dbg
> > $ dpkg --get-selections linux-image*
> > linux-image-4.9.0-1-amd64    install
> > linux-image-4.9.0-1-amd64    install
> > linux-image-amd64            install
> 
> 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

This should get covered by the attached patch. Can you please test and confirm ?
Because from your logs, the condition you hit is different that the condition
set for Debian.

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
--- a/stap-prep
+++ b/stap-prep
@@ -88,7 +88,8 @@
 		echo " Ubuntu -dbgsym packages are typically in a separate repository"
 		echo " Follow https://wiki.ubuntu.com/DebuggingProgramCrash to add this repository"
 	    elif [ "$DISTRO" = "Debian" -a "$(echo $package | grep dbg$)" ]; then
-		echo " Debian does not have -dbg packages for all kernels. Consider switching to a kernel that has one."
+		echo " Debian -dbgsym packages are typically in a separate repository"
+		echo " Follow https://wiki.debian.org/AutomaticDebugPackages to add this repository"
 	    fi
 	else
 	    echo "Please install $package"

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to