[speech-dispatcher] safer rpath handling (#654585)

Rex Dieter rdieter at fedoraproject.org
Tue Mar 15 13:23:26 UTC 2011


commit 7968fd4325cafd90cbaa8743279358893e7b131a
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Mar 15 08:23:25 2011 -0500

    safer rpath handling (#654585)

 speech-dispatcher.spec |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/speech-dispatcher.spec b/speech-dispatcher.spec
index 764a2c8..c12c5ec 100644
--- a/speech-dispatcher.spec
+++ b/speech-dispatcher.spec
@@ -3,7 +3,7 @@
 
 Name:          speech-dispatcher
 Version:       0.7.1
-Release:       4%{?dist}
+Release:       5%{?dist}
 Summary:       To provide a high-level device independent layer for speech synthesis
 Group:         System Environment/Libraries
 
@@ -83,13 +83,16 @@ speechd python module
 %prep
 %setup -q
 
+## nuke unwanted rpaths, see also 
+## https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
+sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
+# or (though this is more invasive, and BuildRequires: automake libtool
+#autoreconf -i -f
+
+
 %build
 %configure --disable-static --with-alsa --with-pulse --without-nas --with-flite --sysconfdir=%{_sysconfdir}
 
-# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-
 make %{?_smp_mflags}
 
 %install
@@ -200,6 +203,9 @@ fi
 %{python_sitearch}/speechd*
 
 %changelog
+* Tue Mar 15 2011 Rex Dieter <rdieter at fedoraproject.org> 0.7.1-5
+- safer rpath handling (#654585)
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7.1-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list