From 52d217db9b544fdc55f1f5c8588ad87d0e9ddd01 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Thu, 25 Aug 2022 23:20:55 +0700 Subject: [PATCH] Set PACKAGE_VERSION in override_dh_dkms As this file is use by dh_dkms, it's Ok to adjust it just before calling dh_dkms. Also, the option '-V $(DEB_VERSION_UPSTREAM)' is pointless, as we already made sure that PACKAGE_VERSION was set properly. --- debian/rules | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/debian/rules b/debian/rules index 121739e..99bc854 100755 --- a/debian/rules +++ b/debian/rules @@ -7,14 +7,13 @@ export DEB_VERSION_UPSTREAM dh $@ override_dh_dkms: - dh_dkms -V $(DEB_VERSION_UPSTREAM) -- dkms.conf + # Force PACKAGE_VERSION to be DEB_VERSION_UPSTREAM + sed -i dkms.conf -e 's%^PACKAGE_VERSION=.*%PACKAGE_VERSION="$(DEB_VERSION_UPSTREAM)"%' + dh_dkms -- dkms.conf execute_after_dh_fixperms: find debian/realtek-rtl8188eus-dkms/usr/src -type f -exec chmod -x {} \; -execute_after_dh_install: - sed -i dkms.conf -e 's%^PACKAGE_VERSION=.*%PACKAGE_VERSION="$(DEB_VERSION_UPSTREAM)"%' - # Nothing to configure, build or auto-install (all is done after # installation using dkms) override_dh_auto_configure: