]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Modify META before autoreconf
authorAntonio Russo <antonio.e.russo@gmail.com>
Sun, 1 Jul 2018 12:52:41 +0000 (08:52 -0400)
committerMo Zhou <cdluminate@gmail.com>
Fri, 26 Oct 2018 12:28:51 +0000 (12:28 +0000)
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
debian/rules

index 3fc29516238ae1ca0feee50b8e938faace1ff7f0..a699b0521da4bcca2f0307e0f15cab2019a17978 100755 (executable)
@@ -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 \