From fd8339ac78b7ae3eb40ae38e173e0a3c159f54ed Mon Sep 17 00:00:00 2001 From: Antonio Russo Date: Sun, 1 Jul 2018 08:52:41 -0400 Subject: [PATCH] Modify META before autoreconf Signed-off-by: Antonio Russo --- debian/rules | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 3fc29516..a699b052 100755 --- a/debian/rules +++ b/debian/rules @@ -34,15 +34,18 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: dh $@ --with autoreconf,dkms,python3,systemd --parallel +override_dh_autoreconf: + @# Embed the downstream version in the module. + @sed -e 's/^Version:.*/Version: $(DEB_VERSION_UPSTREAM)/' -i.orig META + + dh_autoreconf + override_dh_auto_configure: sed "s/@LINUX_COMPAT@/linux-libc-dev \(<< $(LINUX_NEXT)~\)/" debian/control.in > debian/control ifeq ($(BUILD_UDEB), true) cat debian/control.udeb.in >> debian/control endif - @# Embed the downstream version in the module. - @sed -e 's/^Version:.*/Version: $(DEB_VERSION_UPSTREAM)/' -i.orig META - @# Build the userland, but don't build the kernel modules. dh_auto_configure -- \ --bindir=/usr/bin \ -- 2.39.2