Skip to content

Commit 3ced71d

Browse files
kevinoidmasahir0y
authored andcommitted
kbuild: deb-pkg: set version for linux-headers paths
As a result of the switch to dh_listpackages, $version is no longer set when install_kernel_headers() is called. This causes files in the linux-headers deb package to be installed to a path with an empty $version (e.g. /usr/src/linux-headers-/scripts/sign-file rather than /usr/src/linux-headers-6.3.0-rc3/scripts/sign-file). To avoid this, while continuing to use the version information from dh_listpackages, pass $version from $package as the second argument of install_kernel_headers(). Fixes: 36862e1 ("kbuild: deb-pkg: use dh_listpackages to know enabled packages") Signed-off-by: Kevin Locke <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent e8d018d commit 3ced71d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/package/builddeb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ install_linux_image_dbg () {
162162

163163
install_kernel_headers () {
164164
pdir=$1
165+
version=$2
165166

166167
rm -rf $pdir
167168

@@ -229,7 +230,7 @@ do
229230
linux-libc-dev)
230231
install_libc_headers debian/linux-libc-dev;;
231232
linux-headers-*)
232-
install_kernel_headers debian/linux-headers;;
233+
install_kernel_headers debian/linux-headers ${package#linux-headers-};;
233234
esac
234235
done
235236

0 commit comments

Comments
 (0)