diff options
author | Matthew Smith <mgsmith@netgate.com> | 2019-03-05 09:28:48 -0600 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-06 11:36:34 +0000 |
commit | 4ed003958f2db1c9c662f3976e725a43af9c7667 (patch) | |
tree | 1b8a1954804490174789ca995d08fdb7f29e4bac | |
parent | 99ae31d5acadfe33a0855786bf88a4ff2fe6d0f2 (diff) |
rpm: set exec bits on plugins
Install plugin shared libraries with permissions set to 0755
instead of 0644 during RPM builds.
When building with rpmbuild, if a compiled file is not executable,
it's source files and symbols are not included in the vpp-debuginfo RPM.
This makes debugging problems with DPDK (and other plugins probably)
difficult unless you are running on the machine where the build
was generated.
Change-Id: I9cc92af855a66366ec3b81a87b82bfd9994bc180
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
-rw-r--r-- | extras/rpm/vpp.spec | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec index db775a1e7bd..b7417dc6cb0 100644 --- a/extras/rpm/vpp.spec +++ b/extras/rpm/vpp.spec @@ -267,19 +267,19 @@ mkdir -p -m755 %{buildroot}/usr/lib/vpp_plugins mkdir -p -m755 %{buildroot}/usr/lib/vpp_api_test_plugins for file in $(cd %{_mu_build_dir}/%{_vpp_install_dir}/vpp/lib/vpp_plugins && find -type f -print) do - install -p -m 644 %{_mu_build_dir}/%{_vpp_install_dir}/vpp/lib/vpp_plugins/$file \ + install -p -m 755 %{_mu_build_dir}/%{_vpp_install_dir}/vpp/lib/vpp_plugins/$file \ %{buildroot}/usr/lib/vpp_plugins/$file done for file in $(cd %{_mu_build_dir}/%{_vpp_install_dir}/vpp/lib/vpp_api_test_plugins && find -type f -print) do - install -p -m 644 %{_mu_build_dir}/%{_vpp_install_dir}/vpp/lib/vpp_api_test_plugins/$file \ + install -p -m 755 %{_mu_build_dir}/%{_vpp_install_dir}/vpp/lib/vpp_api_test_plugins/$file \ %{buildroot}/usr/lib/vpp_api_test_plugins/$file done for file in $(find %{_mu_build_dir}/%{_vpp_install_dir}/vpp/share/vpp/api/plugins -type f -name '*.api.json' -print ) do - install -p -m 644 $file %{buildroot}/usr/share/vpp/api + install -p -m 755 $file %{buildroot}/usr/share/vpp/api done # |