Skip to contentSkip to conversation

Regression 6.3-rc3: version is empty for linux-headers installation dir

Debian Package David Wang 2 participants 3 messages Mar 20, 2023 Kbuild

lore
Share & tools
lore

David Wang

author
#0 lore raw

When make a clean build for debian packages, with 6.3-rc3, there is no version information in the name of linux-headers dir, the linux-headers package would install into "/usr/src/linux-headers-".

This is caused by 36862e14e31611f9786622db366327209a7aede7 which remove the definition for "version" in scripts/package/builddeb

scripts/package/builddeb +0 -0
index 906889b304a4..c5ae57167d7c 100755

...

-version=$KERNELRELEASE
--

But the variable is need for building linux-headers:
scripts/package/builddeb
188 destdir=$pdir/usr/src/linux-headers-$version
189 mkdir -p $destdir

This could be fixed by adding back the definition for version

scripts/package/builddeb +1 -0
index c5ae57167d7c..1870b2485217 100755
@@ -216,6 +216,7 @@ install_libc_headers () {
 rm -f debian/files
 
 packages_enabled=$(dh_listpackages)
+version=$KERNELRELEASE
 
 for package in ${packages_enabled}
 do

--

Davud

#1 lore raw
Quoted 7 lines · David Wang

This could be fixed by adding back the definition for version

scripts/package/builddeb +0 -0
index c5ae57167d7c..1870b2485217 100755

scripts/package/builddeb install_libc_headers () {

Quoted 8 lines
scripts/package/builddeb +1 -1
@@ -216,6 +216,7 @@ install_libc_headers () {
 rm -f debian/files
 
 packages_enabled=$(dh_listpackages)
+version=$KERNELRELEASE
 
 for package in ${packages_enabled}
 do
--

Hi,

Looks like your fixup is corrupted (tabs converted to spaces). Can you please send the proper patch (see Documentation/process/submitting-patches.rst)?

Also, see Documentation/process/email-clients.rst) for guides on configuring your email client for kernel development.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
author
#2 lore raw

Thanks for the information, I was meaning to just report the regression. And I just send a patch with the simple fix in another mail, hope the format is ok.

Thanks
David

Quoted 30 lines · Bagas Sanjaya
Quoted 7 lines · David Wang

This could be fixed by adding back the definition for version

scripts/package/builddeb +0 -0
index c5ae57167d7c..1870b2485217 100755

scripts/package/builddeb install_libc_headers () {

Quoted 8 lines
scripts/package/builddeb +1 -1
@@ -216,6 +216,7 @@ install_libc_headers () {
 rm -f debian/files
 
 packages_enabled=$(dh_listpackages)
+version=$KERNELRELEASE
 
 for package in ${packages_enabled}
 do
--

Hi,

Looks like your fixup is corrupted (tabs converted to spaces). Can you please send the proper patch (see Documentation/process/submitting-patches.rst)?

Also, see Documentation/process/email-clients.rst) for guides on configuring your email client for kernel development.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara