Skip to content

Commit

Permalink
prevent automatic stripping of ELF binaries after installation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
christianrauch committed Dec 22, 2023
1 parent d3d21ae commit bc50981
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bloom/generators/debian/templates/ament_cmake/rules.em
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ override_dh_auto_configure:
-DCMAKE_INSTALL_PREFIX="@(InstallationPrefix)" \
-DAMENT_PREFIX_PATH="@(InstallationPrefix)" \
-DCMAKE_PREFIX_PATH="@(InstallationPrefix)" \
-DCMAKE_INSTALL_DO_STRIP=ON \
$(BUILD_TESTING_ARG)

override_dh_auto_build:
Expand Down Expand Up @@ -65,3 +66,6 @@ override_dh_auto_install:
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_install

override_dh_strip:
true
4 changes: 4 additions & 0 deletions bloom/generators/debian/templates/cmake/rules.em
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_INSTALL_PREFIX="@(InstallationPrefix)" \
-DCMAKE_PREFIX_PATH="@(InstallationPrefix)" \
-DCMAKE_INSTALL_DO_STRIP=ON \
$(BUILD_TESTING_ARG)

override_dh_auto_build:
Expand Down Expand Up @@ -67,3 +68,6 @@ override_dh_auto_install:
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "@(InstallationPrefix)/setup.sh" ]; then . "@(InstallationPrefix)/setup.sh"; fi && \
dh_auto_install

override_dh_strip:
true

0 comments on commit bc50981

Please sign in to comment.