[Debian-med-packaging] Bug#943828: please don't build against atlas

Mo Zhou lumin at debian.org
Wed Oct 30 13:08:31 GMT 2019


Package: altree
Version: 1.3.1-7+b2
Severity: important
Tags: patch

See the recent MBF announcement and #943712

If you think the reference BLAS sucks in terms of performance, it's
recommended to add this for the binary package:

  Recommends: libopenblas-base | libatlas3-base | libmkl-rt | libblas.so.3 ...

--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Build-Depends: bash-completion,
                texlive-fonts-recommended,
                libmath-tamuanova-perl,
                libgsl-dev,
-               libatlas-base-dev,
+               libblas-dev,
                libtest-deep-perl,
                fig2dev
 Standards-Version: 4.1.4
diff --git a/debian/patches/blas.patch b/debian/patches/blas.patch
new file mode 100644
index 0000000..a770b3d
--- /dev/null
+++ b/debian/patches/blas.patch
@@ -0,0 +1,13 @@
+diff --git a/CUtils/Makefile.PL b/CUtils/Makefile.PL
+index 69a6c5b..795242c 100644
+--- a/CUtils/Makefile.PL
++++ b/CUtils/Makefile.PL
+@@ -9,7 +9,7 @@ WriteMakefile(
+     ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
+       (ABSTRACT_FROM  => 'lib/ALTree/CUtils.pm', # retrieve abstract from module
+        AUTHOR         => 'Claire Bardel <Claire.Bardel at univ-lyon1.fr>') : ()),
+-    LIBS              => ['-lm -lpthread -lgsl -lcblas'], # e.g., '-lm'
++    LIBS              => ['-lm -lpthread -lgsl -lblas'], # e.g., '-lm'
+     DEFINE            => '', # e.g., '-DHAVE_SOMETHING'
+     INC               => '-ggdb3 -I. -Ic_sources', # e.g., '-I. -I/usr/include/other'
+   # Un-comment this if you add C files to link with later:
diff --git a/debian/patches/series b/debian/patches/series
index ddb8d43..6ee37fe 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 from-upstream-no-nested-functions.patch
 no-quicksort.patch
+blas.patch



More information about the Debian-med-packaging mailing list