Skip to contentSkip to conversation

kbuild: deb-pkg: change the source package name to 'linux'

PATCH Superseded Masahiro Yamada 2 participants 2 messages Apr 19, 2021 Kbuild

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: deb-pkg: change the source package name to 'linux'

Change the source package name from 'linux-$(KERNELRELEASE)' to 'linux', which is aligned with the source package from the Debian community.

The filenames will be changed as follows:

[before]
linux-5.12.0-rc3+_5.12.0-rc3+-1.dsc
linux-5.12.0-rc3+_5.12.0-rc3+.orig.tar.gz
linux-5.12.0-rc3+_5.12.0-rc3+-1.diff.gz

[After]
linux_5.12.0-rc3+-1.dsc
linux_5.12.0-rc3+.orig.tar.gz
linux_5.12.0-rc3+-1.diff.gz

Commit 3716001bcb7f ("deb-pkg: add source package") introduced KDEB_SOURCENAME. If you are unhappy with the default name, you can override it via KDEB_SOURCENAME.

---

 scripts/Makefile.package | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.package +1 -1
index f952fb64789d..c5834a480545 100644
@@ -25,7 +25,7 @@ include $(srctree)/scripts/Kbuild.include
 
 # Remove hyphens since they have special meaning in RPM filenames
 KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE))
-KDEB_SOURCENAME ?= linux-$(KERNELRELEASE)
+KDEB_SOURCENAME ?= linux
 KBUILD_PKG_ROOTCMD ?="fakeroot -u"
 export KDEB_SOURCENAME
 # Include only those top-level files that are needed by make, plus the GPL copy
Signature · 1 line
2.27.0
#1 lore raw
Quoted 2 lines · Masahiro Yamada

Change the source package name from 'linux-$(KERNELRELEASE)' to 'linux', which is aligned with the source package from the Debian community.

I would prefer that the source package name is *not* the same, so that it is clearly distinguished from distribution packages.

Before commit 3716001bcb7f "deb-pkg: add source package" the binary packages used to claim that the source package was "linux-upstream" (although no such source package existed). Could we use that instead?

Ben.

Quoted 35 lines

The filenames will be changed as follows:

[before]
  linux-5.12.0-rc3+_5.12.0-rc3+-1.dsc
  linux-5.12.0-rc3+_5.12.0-rc3+.orig.tar.gz
  linux-5.12.0-rc3+_5.12.0-rc3+-1.diff.gz

[After]
  linux_5.12.0-rc3+-1.dsc
  linux_5.12.0-rc3+.orig.tar.gz
  linux_5.12.0-rc3+-1.diff.gz

Commit 3716001bcb7f ("deb-pkg: add source package") introduced KDEB_SOURCENAME. If you are unhappy with the default name, you can override it via KDEB_SOURCENAME.

---

 scripts/Makefile.package | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile.package +0 -0
index f952fb64789d..c5834a480545 100644
@@ -25,7 +25,7 @@ include $(srctree)/scripts/Kbuild.include


 # Remove hyphens since they have special meaning in RPM filenames KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE))

scripts/Makefile.package +1 -1
-KDEB_SOURCENAME ?= linux-$(KERNELRELEASE)
+KDEB_SOURCENAME ?= linux

 KBUILD_PKG_ROOTCMD ?="fakeroot -u"
 export KDEB_SOURCENAME
 # Include only those top-level files that are needed by make, plus the GPL copy

Signature · 2 lines
Ben Hutchings
Humour is the best antidote to reality.