[PATCH 6/9] UBUNTU: [Packaging] generate nvidia version mappings at clean time -- handle +21.04.1
Andy Whitcroft
apw at canonical.com
Fri Jan 22 16:23:08 UTC 2021
Make version handling compatible with hirsute backport-forward
versioning.
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
debian/rules.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/rules.in b/debian/rules.in
index 31b7aeb..16033cb 100755
--- a/debian/rules.in
+++ b/debian/rules.in
@@ -9,7 +9,7 @@ arch = $(shell dpkg-architecture -qDEB_HOST_ARCH)
src_package := $(shell LC_ALL=C dpkg-parsechangelog -SSource)
src_fullversion = $(shell LC_ALL=C dpkg-parsechangelog -SVersion)
src_abi = $(shell echo "$(src_fullversion)" | sed -ne 's/\([0-9]*\.[0-9]*\.[0-9]*\-[0-9]*\)\..*/\1/p')
-src_version = $(shell echo $(src_fullversion) | sed -e 's/+[0-9][0-9]*//')
+src_version = $(shell echo $(src_fullversion) | sed -e 's/+[0-9][0-9]*$$//')
src_series = $(shell dpkg-parsechangelog -SDistribution | sed -e 's/-\(security\|updates\|proposed\)$$//')
src_kernel = $(shell echo "$(src_package)" | sed -e 's/restricted-modules-//')
--
2.29.2
More information about the kernel-team
mailing list