From 6b83880a9d3b564d66d9fa4b14b336ea3f343f50 Mon Sep 17 00:00:00 2001 From: Mark Feit Date: Tue, 13 Feb 2024 15:36:49 +0000 Subject: [PATCH] Remove packaging info from Debian "orig" tarballs. #40 --- unibuild-package/unibuild-package/unibuild-deb.make | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unibuild-package/unibuild-package/unibuild-deb.make b/unibuild-package/unibuild-package/unibuild-deb.make index a12cf11..ffcd157 100644 --- a/unibuild-package/unibuild-package/unibuild-deb.make +++ b/unibuild-package/unibuild-package/unibuild-deb.make @@ -127,7 +127,10 @@ ifneq ($(SOURCE_TARBALL),) else # Build from the unpacked sources since there wasn't one (cd '$@' && tar cf - .) | (cd $(BUILD_ORIG_PACKAGE_DIR) && tar xpf -) - ls -alh $(BUILD_ORIG_PACKAGE_DIR)/.. + # Debian packaging guidelines dictate that the "orig" tarball + # must not change if the software doesn't, so remove any + # packaging information before creating it. + find '$(BUILD_ORIG_PACKAGE_DIR)' -name 'unibuild-packaging' -type d | xargs rm -rf (cd $(BUILD_ORIG_DIR) && tar cf - $(SOURCE_VERSION) | gzip -n ) > $(PRODUCTS_DIR)/$(ORIG_TARBALL) endif cp $(PRODUCTS_DIR)/$(ORIG_TARBALL) $(BUILD_UNPACK_DIR)/..