Skip to content

Commit 81c4dc6

Browse files
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.
1 parent 8605d8f commit 81c4dc6

File tree

1 file changed

+6
-1
lines changed
  • bloom/generators/debian/templates/meson

1 file changed

+6
-1
lines changed

bloom/generators/debian/templates/meson/rules.em

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ override_dh_auto_configure:
3232
--prefix="@(InstallationPrefix)" \
3333
--cmake-prefix-path="@(InstallationPrefix)" \
3434
--libdir=lib \
35-
--libexecdir=lib
35+
--libexecdir=lib \
36+
--strip
3637

3738
override_dh_auto_build:
3839
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
@@ -50,3 +51,7 @@ override_dh_shlibdeps:
5051
override_dh_auto_install:
5152
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
5253
dh_auto_install
54+
55+
# do not strip ELF binaries
56+
override_dh_strip:
57+
true

0 commit comments

Comments
 (0)