From c913853be7ac6baef5a31097f1257c91c8acbea8 Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Fri, 19 May 2023 14:21:11 +0200 Subject: [PATCH] d/rules: move copying config.guess and config.sub to config.status target 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 Signed-off-by: Thomas Lamprecht --- debian/rules | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/rules b/debian/rules index dd757b1..aff0bdd 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.39.2