From a607422134c790ca7f35c688d2e8f1878a2c0015 Mon Sep 17 00:00:00 2001 From: Jonathan Billings Date: Thu, 11 Aug 2011 13:48:48 +0100 Subject: [PATCH] rpm: Set executable bits on installed libraries Set the executable bits on the libraries installed in libdir. This change is important because it causes 'rpmbuild' to generate Provide tag metadata for the libraries in the package, which is necessary now that some binaries in other packages have generated Requires tags for libraries packaged in the base package. 'rpmbuild' will not generate the Provides tag if the libraries lack executable permission. This change is part of 3f7d8ec219e1aa04b6c0417ecf5e730d40b4f149 on master (the rest of that change isn't applicable to the 1.6 branch) Change-Id: Ie95d0d5e16745cfbf0d2a733a9421f94a89216ff Reviewed-on: http://gerrit.openafs.org/5204 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- src/packaging/RedHat/openafs.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index b4a6f1395..2472fdced 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -993,6 +993,10 @@ tar cf - -C ${sysname}/dest/etc . | tar xf - -C $RPM_BUILD_ROOT%{_sbindir} tar cf - -C ${sysname}/dest/root.server%{_prefix}/afs bin | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/afs tar cf - -C ${sysname}/dest/root.client%{_prefix}/vice/etc afsd C | tar xf - -C $RPM_BUILD_ROOT%{_prefix}/vice/etc +# Set the executable bit on libraries in libdir, so rpmbuild knows to +# create "Provides" entries in the package metadata for the libraries +chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so* + # Fix the location of restorevol, since it should be available for # any user in /usr/bin mv $RPM_BUILD_ROOT%{_prefix}/afs/bin/restorevol $RPM_BUILD_ROOT%{_bindir}/restorevol -- 2.39.5