From 1dc177a12c3b67ec96baccb8ee8e915a7d6f1ee2 Mon Sep 17 00:00:00 2001 From: Miroslav Ondra Date: Wed, 7 Oct 2020 17:41:58 +0200 Subject: [PATCH] Fix Provides: unipi-kernel-modules(=VER) --- debian/control.g1 | 2 +- debian/rules.arm64 | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/control.g1 b/debian/control.g1 index 2fe21bd..c397cd8 100644 --- a/debian/control.g1 +++ b/debian/control.g1 @@ -2,7 +2,7 @@ Package: g1-unipi-kernel-modules Architecture: arm64 Pre-Depends: unipi-common Depends: ${misc:Depends}, g1-kernel-image(=${PKG-KERNEL-VER}), unipi-firmware (>=5.50) -Provides: unipi-kernel-modules +Provides: unipi-kernel-modules(=${PROJECT_VERSION}) Replaces: unipi-kernel-modules Breaks: unipi-kernel-modules Description: UniPi G1 kernel modules diff --git a/debian/rules.arm64 b/debian/rules.arm64 index 19bb4c1..8076611 100755 --- a/debian/rules.arm64 +++ b/debian/rules.arm64 @@ -30,6 +30,8 @@ PKG_KERNEL_VER = $(shell dpkg-query -f='$${Version}' -W $(PLATFORM)-kernel-heade LINUX_DIR_PATH = $(shell dpkg -L $(PLATFORM)-kernel-headers | sed -n '/^\/lib\/modules\/.*\/build$$/p') KERNEL_VERSION = $(subst /lib/modules/,,$(subst /build,,$(LINUX_DIR_PATH))) +PROJECT_VERSION=$(shell dpkg-parsechangelog -S Version) + clean: cat debian/control.in debian/control.$(CONTROL_INC) >debian/control dh clean @@ -45,6 +47,8 @@ override_dh_prep: @dh_prep --exclude=unipi-kernel-modules.substvars @echo PKG-KERNEL-VER=${PKG_KERNEL_VER} > debian/unipi-kernel-modules.substvars @echo PKG-KERNEL-VER=${PKG_KERNEL_VER} > debian/$(PLATFORM)-unipi-kernel-modules.substvars + @echo PROJECT_VERSION=${PROJECT_VERSION} >> debian/unipi-kernel-modules.substvars + @echo PROJECT_VERSION=${PROJECT_VERSION} >> debian/$(PLATFORM)-unipi-kernel-modules.substvars ( sed 's/)/.${PKG_KERNEL_VER})/;q' debian/changelog; \ printf "\n * Compiled for $(PLATFORM)-kernel-image\n";\ printf "\n -- auto-generator %s\n\n" "`date -R`"; \ -- 2.34.1