From df04e5d126bd90137564224cfeaa156b575babac Mon Sep 17 00:00:00 2001 From: Fede Tux Date: Wed, 24 Jan 2024 08:27:55 -0300 Subject: [PATCH] Skip unneeded dh_fixperms stage in debian/rules --- distribution/packages/src/deb/debian/rules | 9 +++++++++ scripts/assemble.sh | 3 +++ 2 files changed, 12 insertions(+) diff --git a/distribution/packages/src/deb/debian/rules b/distribution/packages/src/deb/debian/rules index 1e13c8d707b1d..7c0d55900543c 100644 --- a/distribution/packages/src/deb/debian/rules +++ b/distribution/packages/src/deb/debian/rules @@ -13,9 +13,18 @@ #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +SHELL != sh -c "command -v /bin/bash" +.ONESHELL: + %: dh $@ +override_dh_strip_nondeterminism: + echo "Skipping dh_strip_nondeterminism" + +override_dh_fixperms: + echo "Skipping dh_fixperms" + override_dh_builddeb: dh_builddeb -- -Zgzip diff --git a/scripts/assemble.sh b/scripts/assemble.sh index acadc71f2a5bf..d3dc2a29f1e99 100755 --- a/scripts/assemble.sh +++ b/scripts/assemble.sh @@ -349,6 +349,9 @@ function assemble_deb() { remove_unneeded_files add_wazuh_tools "${version}" + # Configure debmake to only generate binaries + echo 'DEBUILD_DPKG_BUILDPACKAGE_OPTS="-us -uc -ui -b"' > ~/.devscripts + # Generate final package debmake \ --fullname "Wazuh Team" \