From 81c4dc62f71d34c95d76362dc80d3d02e4cb3119 Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Sun, 23 Apr 2023 15:14:24 +0200 Subject: [PATCH] prevent automatic stripping of ELF binaries after installation Stripping of ELF binaries after installation might invalidate signatures that are generated during the installation. Prevent this by stripping binaries during the build and before the installation. --- bloom/generators/debian/templates/meson/rules.em | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bloom/generators/debian/templates/meson/rules.em b/bloom/generators/debian/templates/meson/rules.em index f19cc754..97870968 100755 --- a/bloom/generators/debian/templates/meson/rules.em +++ b/bloom/generators/debian/templates/meson/rules.em @@ -32,7 +32,8 @@ override_dh_auto_configure: --prefix="@(InstallationPrefix)" \ --cmake-prefix-path="@(InstallationPrefix)" \ --libdir=lib \ - --libexecdir=lib + --libexecdir=lib \ + --strip override_dh_auto_build: if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \ @@ -50,3 +51,7 @@ override_dh_shlibdeps: override_dh_auto_install: if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \ dh_auto_install + +# do not strip ELF binaries +override_dh_strip: + true