已合并
do not remove rpath for shared objects #67
Funda Wang创建于 2025年7月28日
do not remove rpath for shared objects #67
已合并
共 12 个文件变更+15-19
| @@ -0,0 +1,2 @@ | |||
| 1 | +*.gz filter=lfs diff=lfs merge=lfs -text | ||
| 2 | +*.zip filter=lfs diff=lfs merge=lfs -text | ||
| @@ -1,7 +1,11 @@ | |||
| 1 | %global debug_package %{nil} | 1 | %global debug_package %{nil} |
| 2 | + | ||
| 3 | +# The code is not safe to build with LTO | ||
| 4 | +%global _lto_cflags %{nil} | ||
| 5 | + | ||
| 2 | Name: scipy | 6 | Name: scipy |
| 3 | Version: 1.15.3 | 7 | Version: 1.15.3 |
| 4 | -Release: 1 | 8 | +Release: 2 |
| 5 | Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering | 9 | Summary: A Python-based ecosystem of open-source software for mathematics, science, and engineering |
| 6 | License: Qhull and Apache-2.0 | 10 | License: Qhull and Apache-2.0 |
| 7 | URL: https://www.scipy.org | 11 | URL: https://www.scipy.org |
| @@ -93,7 +97,7 @@ env FFLAGS="$RPM_OPT_FLAGS -fPIC -w -fallow-argument-mismatch -O2"\ | |||
| 93 | popd | 97 | popd |
| 94 | 98 | ||
| 95 | %install | 99 | %install |
| 96 | -export CFLAGS="$RPM_OPT_FLAGS -lm" | 100 | +export CFLAGS="$RPM_OPT_FLAGS" |
| 97 | 101 | ||
| 98 | pushd %{py3dir} | 102 | pushd %{py3dir} |
| 99 | env FFLAGS="$RPM_OPT_FLAGS -fPIC" \ | 103 | env FFLAGS="$RPM_OPT_FLAGS -fPIC" \ |
| @@ -102,29 +106,17 @@ popd | |||
| 102 | 106 | ||
| 103 | find %{buildroot} -type f -name '*.so' -exec strip '{}' ';' | 107 | find %{buildroot} -type f -name '*.so' -exec strip '{}' ';' |
| 104 | 108 | ||
| 105 | -cd $RPM_BUILD_ROOT/usr | ||
| 106 | -file `find -type f`| grep -w ELF | awk -F":" '{print $1}' | for i in `xargs` | ||
| 107 | -do | ||
| 108 | - chrpath -d $i | ||
| 109 | -done | ||
| 110 | -cd - | ||
| 111 | -mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d | ||
| 112 | -echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf | ||
| 113 | -echo "%{_libdir}/%{name}" >> $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf | ||
| 114 | - | ||
| 115 | -%post | ||
| 116 | -/sbin/ldconfig | ||
| 117 | - | ||
| 118 | -%postun | ||
| 119 | -/sbin/ldconfig | ||
| 120 | - | ||
| 121 | %files -n python3-scipy | 109 | %files -n python3-scipy |
| 122 | %license LICENSE.txt | 110 | %license LICENSE.txt |
| 123 | %{python3_sitearch}/scipy | 111 | %{python3_sitearch}/scipy |
| 124 | %{python3_sitearch}/*.dist-info | 112 | %{python3_sitearch}/*.dist-info |
| 125 | -%config(noreplace) /etc/ld.so.conf.d/* | ||
| 126 | 113 | ||
| 127 | %changelog | 114 | %changelog |
| 115 | +* Mon Jul 28 2025 Funda Wang <fundawang@yeah.net> - 1.15.3-2 | ||
| 116 | +- do not remove rpath for shared objects, as the package itself is using | ||
| 117 | + special tweaked rpath for shared libraries to work | ||
| 118 | +- do not build with lto, it may cause crash | ||
| 119 | + | ||
| 128 | * Thu Jul 03 2025 Liu Chao <liuchao173@huawei.com> - 1.15.3-1 | 120 | * Thu Jul 03 2025 Liu Chao <liuchao173@huawei.com> - 1.15.3-1 |
| 129 | - Upgrade to 1.15.3 because numpy upgrades to 2.3.0 | 121 | - Upgrade to 1.15.3 because numpy upgrades to 2.3.0 |
| 130 | 122 | ||