kbuild: deb-pkg: set version for linux-headers paths
authorKevin Locke <kevin@kevinlocke.name>
Tue, 21 Mar 2023 21:39:22 +0000 (15:39 -0600)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 22 Mar 2023 01:13:16 +0000 (10:13 +0900)
commit3ced71d273f8edf07bf01a831a49ca6b988e06b3
tree0a6f15bfbb252944ac1cf31488a8820527bddb44
parente8d018dd0257f744ca50a729e3d042cf2ec9da65
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: 36862e14e316 ("kbuild: deb-pkg: use dh_listpackages to know enabled packages")
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/builddeb