Bug#577610: patch to correct ATLAS shlibs information
Aaron M. Ucko
ucko at debian.org
Fri Jul 9 01:46:07 UTC 2010
This issue has been bothering me as well, albeit primarily because the
archive has wound up with several packages that specifically insist on
libatlas3gf-base when another variant (or, in many cases, the reference
BLAS and LAPACK implementations) would serve just as well.
As such, I've put together a patch reviving the fixshlibs script from
the old packaging (with a couple of minor tweaks) and arranging for
debian/rules to invoke it between the calls to dh_makeshlibs and
dh_shlibsdeps:
Index: fixshlibs
===================================================================
--- fixshlibs (revision 0)
+++ fixshlibs (revision 0)
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e -x
+
+for i in debian/*/DEBIAN/shlibs; do
+ echo Fixing shlib deps in $i
+ awk '{a = $1 " " $2 " libatlas3gf-base | libatlas.so.3gf"}
+ /libblas/ {a=$1 " " $2 " libatlas3gf-base | libblas3gf | libblas.so.3gf"}
+ /liblapack / {a=$1 " " $2 " libatlas3gf-base | liblapack3gf | liblapack.so.3gf"}
+ {print a}' $i >tmp
+ chmod 644 tmp
+ diff -u $i tmp || true
+ mv tmp $i
+done
+
Property changes on: fixshlibs
___________________________________________________________________
Added: svn:executable
+ *
Index: rules
===================================================================
--- rules (revision 36729)
+++ rules (working copy)
@@ -248,6 +248,12 @@
cp $(CURDIR)/debian/control.in $(CURDIR)/debian/control; \
fi
+common-binary-fixup-arch:: fixshlibs
+
+fixshlibs: $(patsubst %,binary-fixup/%,$(DEB_ARCH_PACKAGES))
+ chmod +x debian/fixshlibs
+ debian/fixshlibs
+
binary-indep: build install
dh_testdir -i
dh_testroot -i
Could you please apply it?
Thanks!
--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger amu at monk.mit.edu (NOT a valid e-mail address) for more info.
More information about the debian-science-maintainers
mailing list