]> git.proxmox.com Git - pve-qemu.git/commitdiff
d/rules: move copying config.guess and config.sub to config.status target
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 19 May 2023 12:21:11 +0000 (14:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 21 May 2023 13:51:16 +0000 (15:51 +0200)
It causes problems when done as part of the clean target when building
the dsc with the following error due to the additional files:
dpkg-source: error: aborting due to unexpected upstream changes

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/rules

index dd757b11dd99087b56b27089e17d68e25915b426..aff0bdd073a0b0c882b4c7536c0c10167e0a7bac 100755 (executable)
@@ -47,6 +47,13 @@ ${BUILDDIR}/config.status: configure
        dh_testdir
        # Add here commands to configure the package.
 
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+       cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+       cp -f /usr/share/misc/config.guess config.guess
+endif
+
        # guest-agent is only required for guest systems
        ./configure \
        --with-git-submodules=ignore \
@@ -109,13 +116,6 @@ clean:
 
        # Add here commands to clean up after the build process.
        -$(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-       cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-       cp -f /usr/share/misc/config.guess config.guess
-endif
-
 
        dh_clean