cf5f9d
Clarify chrpath comment
@@ -1022,10 +1022,14 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libcacard.pc
|
|
1022
1022
|
rm -rf $RPM_BUILD_ROOT%{_includedir}/cacard
|
1023
1023
|
%endif
|
1024
1024
|
|
1025
|
-
# When building using 'rpmbuild' or 'fedpkg local', RPATHs
|
1025
|
+
# When building using 'rpmbuild' or 'fedpkg local', RPATHs can be left in
|
1026
1026
|
# the binaries and libraries (although this doesn't occur when
|
1027
|
-
# building in Koji, for some unknown reason).
|
1028
|
-
#
|
1027
|
+
# building in Koji, for some unknown reason). Some discussion here:
|
1028
|
+
#
|
1029
|
+
# https://lists.fedoraproject.org/pipermail/devel/2013-November/192553.html
|
1030
|
+
#
|
1031
|
+
# In any case it should always be safe to remove RPATHs from
|
1032
|
+
# the final binaries:
|
1029
1033
|
for f in $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_libdir}/* \
|
1030
1034
|
$RPM_BUILD_ROOT%{_libexecdir}/*; do
|
1031
1035
|
if file $f | grep -q ELF; then chrpath --delete $f; fi
|