Re: [PATCH] kbuild: deb-pkg: allow to set package name version

From: Thomas Weißschuh

Date: Tue Oct 20 2026 - 16:21:41 EST


On 2026-10-20 22:02:25+0200, Nicolas Schier wrote:
> On Mon, Oct 19, 2026 at 09:16:14PM +0200, Guido Günther wrote:
> > Instead of hardcoding ${KERNELRELEASE} in the package name allow
> > the user to override this.
> >
> > This can be useful if one doesn't want to accumulate different packages
> > for every commit or micro version bump by setting
> > KDEB_PKGNAMEVERSION=7.3 or even KDEB_PKGNAMEVERSION=stable.
>
> I am not yet convinced, that this is a good idea. Do you want to
> elaborate a bit more, why you think this is necessary? Have you tested
> your patch? I don't like that source package name and binary package
> name divert w/o good reasoning.

FWIW we have something similar for the Arch Linux packaging with
PACMAN_PKGBASE. It is the complement to the proposed patch, as Arch Linux
by default does *not* allow multiple installed kernel packages of a
single type at the same time. PACMAN_PKGBASE allows this.
KDEB_PKGNAMEVERSION would enable the Arch Linux behavior for the Debian
packages. Personally I would have found this convenient in the past.


Thomas