From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 1C4D33858D35 for ; Tue, 7 Jul 2020 07:33:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1C4D33858D35 Received: by mail-wm1-x32f.google.com with SMTP id f18so45402144wml.3 for ; Tue, 07 Jul 2020 00:33:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:subject:message-id :mime-version:content-disposition; bh=yxSCRAooR6PHe8oqIv1LNxfzZkPw4aHgdLnuo953LEw=; b=GvET7RqoK0lggEXQpzTZ4MYqyHCOsoUyP2g3sigeQo1DQHCHWXS76Hnyy/6ROdeUCI Je1KyNkEnJN/chY1wLGYqj1J6ObCyUV0+Q2ug1+uU7DnJ+3ltAyGm3+bKG66D1PV2iqm IusBesY9Hiaz6j+z41caGOXfq/3/7n3iHCHbBjYF/lYDphpelzuaEfPLqwg91250v+qP Hny0Xzh4QX0mjssey0yEicyu1Szfo1fUPbpm4FG746PV47H3ODIP+nXZOLdgW3N3YOI1 1qyZTfaSBcBr9auPuiCA4PZ/lKiPc2dtp+jNzS01FCCkoN6HweXgNdrsqs/w8tcLhHtb g8Cw== X-Gm-Message-State: AOAM531Rvc8BBrD+zcR/ooS3CeJ2juk4AT0NFwMSJ3IT/8/BagVbXY04 XP0OUfRh+g9DfZXnaJXCHQCmRF2SiINILSTk X-Google-Smtp-Source: ABdhPJyLR2lbSId1h5Xr0wYJ3OP18hoURKMVAJAAkOqGzi6zwFXFzMYqKQTE1MIAw8fNKMLoLqWILg== X-Received: by 2002:a1c:4343:: with SMTP id q64mr2752945wma.20.1594107183801; Tue, 07 Jul 2020 00:33:03 -0700 (PDT) Received: from ariel (x590e30a2.dyn.telefonica.de. [89.14.48.162]) by smtp.gmail.com with ESMTPSA id d2sm27658295wrs.95.2020.07.07.00.33.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 00:33:03 -0700 (PDT) Sender: Emanuele Rocca From: Emanuele Rocca X-Google-Original-From: Emanuele Rocca Date: Tue, 7 Jul 2020 09:33:01 +0200 To: systemtap@sourceware.org Subject: [PATCH] Use current Debian package names in stap-prep Message-ID: <20200707073301.GA46335@ariel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: systemtap@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Systemtap mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2020 07:33:06 -0000 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