diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2020-10-12 13:00:41 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-11-23 16:18:47 +0200 |
commit | 80818e4f902ba3cf85e4cfcd8a7a4c71c601f3cf (patch) | |
tree | ef4930c778030eb7f6374b007fc1680e03181025 /platform.in | |
parent | ee5dd3ccb9fe084251f4c0195907a04a4bdc77e7 (diff) | |
download | rpm-80818e4f902ba3cf85e4cfcd8a7a4c71c601f3cf.tar.gz |
Add a build root policy for removing executable bits from shared libraries
Rpm has traditionally used executable bit on files to determine whether
requires for that file should be generated, but the downside is that we
have systems full of executable files that cannot actually be executed.
When available, use eu-elfclassify to determine files that are pure,
non-executable shared objects and remove executable bits from them
as a buildroot policy. This preserves the traditional behavior wrt
dependency generation but gets rid of the unwanted executable bits.
Diffstat (limited to 'platform.in')
-rw-r--r-- | platform.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform.in b/platform.in index 604f0c346..b634b07aa 100644 --- a/platform.in +++ b/platform.in @@ -94,9 +94,11 @@ %__brp_strip_comment_note %{_rpmconfigdir}/brp-strip-comment-note %{__strip} %{__objdump} %__brp_strip_shared %{_rpmconfigdir}/brp-strip-shared %__brp_strip_static_archive %{_rpmconfigdir}/brp-strip-static-archive %{__strip} +%__brp_elfperms %{_rpmconfigdir}/brp-elfperms %__os_install_post \ %{?__brp_compress} \ + %{?__brp_elfperms} \ %{?__brp_strip} \ %{?__brp_strip_static_archive} \ %{?__brp_strip_comment_note} \ |