From: Emanuele Rocca <ema@wikimedia.org>
To: systemtap@sourceware.org
Subject: [PATCH] Use current Debian package names in stap-prep
Date: Tue, 7 Jul 2020 09:33:01 +0200 [thread overview]
Message-ID: <20200707073301.GA46335@ariel> (raw)
The package including debug symbols for the Linux kernel is called
linux-image-$ABINAME-dbg in Debian, not -dbgsym. Further, those packages
are available in the regular archive. There's no need to configure
additional repositories.
---
stap-prep | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git stap-prep stap-prep
index ec061a828..c6c7539b0 100755
--- stap-prep
+++ stap-prep
@@ -93,7 +93,12 @@ esac
echo "make >= 0"
echo "linux-image-$ABINAME = $VERSION"
echo "linux-headers-$ABINAME = $VERSION"
- echo "linux-image-$ABINAME-dbgsym = $VERSION"
+ if [ "$DISTRO" = "Debian" ]; then
+ echo "linux-image-$ABINAME-dbg = $VERSION"
+ elif [ "$DISTRO" = "Ubuntu" ]; then
+ echo "linux-image-$ABINAME-dbgsym = $VERSION"
+ fi
+
) | while read package relation requiredversion; do
installedversion="$(dpkg-query -W "$package" 2> /dev/null | cut -f 2)"
if [ "$installedversion" = "" ]; then
@@ -103,9 +108,6 @@ esac
if [ "$DISTRO" = "Ubuntu" ]; then
echo " Ubuntu -dbgsym packages are typically in a separate repository"
echo " Follow https://wiki.ubuntu.com/DebuggingProgramCrash to add this repository"
- elif [ "$DISTRO" = "Debian" ]; then
- echo " Debian -dbgsym packages are typically in a separate repository"
- echo " Follow https://wiki.debian.org/AutomaticDebugPackages to add this repository"
fi
else
echo "Need to install $package"
--
2.27.0
reply other threads:[~2020-07-07 7:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200707073301.GA46335@ariel \
--to=ema@wikimedia.org \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).