I am working on fixing update-alternatives mechanism for BLAS and LAPACK libraries. Libraries must be moved from %_libdir to %_libdir/blas and %_libdir/lapack to avoid conflict with ldconfig. %_libdir will contain only symlinks libblas.so.3 and liblapack.so.3, created by update-alternatives. [1] But main problem is migration between configurations. As I understand rpm use this sequence: 1. %pre (new version) 2. installing files 3. %post (new version) 4. %preun (old version) 5. delete difference in files 6. %postun (old version) Looks like step 5 deletes not only %_libdir/libblas.so.3.*, but %_libdir/libblas.so.3 too despite it is listed in new package.
%ghost %{_libdir}/libblas.so.3
Are there any ways to fix it? Without ugly hacks like this:
%post -n libblas3 if [ "$1" = 2 ] ; then if [ -f %{_libdir}/libblas.so.3.* ] ; then rm %{_libdir}/libblas.so.3.* "%_sbindir/update-alternatives" --auto libblas.so.3 fi fi
Current package - lapack New package - https://build.opensuse.org/package/show/home:Dmitry_R:branches:devel:librari... [1] https://bugzilla.novell.com/show_bug.cgi?id=861081 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org