Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: "Guido Günther" <agx@sigxcpu.org>
To: sashiko-reviews@lists.linux.dev
Cc: Nathan Chancellor <nathan@kernel.org>,
	Nicolas Schier <nsc@kernel.org>,
	linux-kbuild@vger.kernel.org
Subject: Re: [PATCH] kbuild: deb-pkg: allow to set package name version
Date: Tue, 20 Oct 2026 21:48:10 +0200	[thread overview]
Message-ID: <atfFes2OpYRhsgFN@quark2.heme.sigxcpu.org> (raw)
In-Reply-To: <sashiko-outbox-179507@kernel.org>

Hi,
On Tue, Oct 20, 2026 at 07:16:51PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] kbuild: deb-pkg: broken build symlink in install_kernel_headers()
> --
> 
> commit bc8efaaf9e21748a005be3c75bb9c6c2334ac049
> Author: Guido Günther <agx@sigxcpu.org>
> 
> kbuild: deb-pkg: allow to set package name version
> 
> This commit introduces KDEB_PKGNAMEVERSION in scripts/package/mkdebian to
> allow overriding the version suffix used in the generated Debian binary
> package names instead of always using KERNELRELEASE.

That's true, the script should use ${KERNELRELEASE} when referring to the
kernel version and $version elsewhere. Other parts of the script have
that correct so it's just a:

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index ba1defc616524..5fdc9ea0dcca4 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -147,8 +147,8 @@ install_kernel_headers () {
 		"${srctree}/scripts/package/install-extmod-build" "${pdir}/usr/src/linux-headers-${version}"
 	fi
 
-	mkdir -p $pdir/lib/modules/$version/
-	ln -s /usr/src/linux-headers-$version $pdir/lib/modules/$version/build
+	mkdir -p $pdir/lib/modules/${KERNELRELEASE}/
+	ln -s /usr/src/linux-headers-$version $pdir/lib/modules/${KERNELRELEASE}/build
 }
 
 install_libc_headers () {

I'll fold that into a v2 after waiting a bit more for other feedback.

Cheers,
 -- Guido

  reply	other threads:[~2026-10-20 19:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-19 19:16 [PATCH] kbuild: deb-pkg: allow to set package name version Guido Günther
2026-10-20 19:16 ` sashiko-bot
2026-10-20 19:48   ` Guido Günther [this message]
2026-10-20 20:02 ` Nicolas Schier
2026-10-20 20:16   ` Thomas Weißschuh
2026-10-20 21:16   ` Guido Günther

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=atfFes2OpYRhsgFN@quark2.heme.sigxcpu.org \
    --to=agx@sigxcpu.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=nathan@kernel.org \
    --cc=nsc@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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