Bug#764491: About pkg-config for BLAS/LAPACK

Alastair McKinstry mckinstry at debian.org
Tue Oct 14 09:36:17 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Sebastian
On 10/10/2014 20:18, Sébastien Villemot wrote:
> Hi Alastair,
>
> I saw your reports about adding pkg-config support for BLAS and LAPACK
> implementations (#764372 and #764491).
>
> I am basically in agreement with this change, but I don't have the time
> to take care of it before the jessie freeze.
>
> So, if you want to have this change in Jessie, feel free to do a Team
> Upload (or a DELAY/0 NMU if you're not in the Debian Science Team).
> However, if you do that, please also make similar changes at the same
> time to atlas (adding both a blas-atlas.pc and lapack-atlas.pc) and to
> lapack (adding a lapack-netlib.pc).
Thanks, I will do so when I've added a lapack patch.
>
> Also, I don't think that cblas.pc is the right name for the blas package
> pkg-config file (cblas is a C interface to the Fortran 77 BLAS
> routines). I would rather call that file blas-netlib.pc.
I agree, blas-netlib.pc is better and more consistent.
>
> For the openblas case, I don't think it makes much sense to set libdir
> to /usr/lib/openblas (though it does not harm), since actually the
> symlink /usr/lib/libblas.a will point to the right place.
It is possible that openblas is installed and the symlink is manually
set for netlib, for example. In this case using pkg-config blas-openblas
would give the wrong results.
>
> Finally, I don't understand why you say that your .pc file for OpenBLAS
> enables linking to OpenBLAS both generically and explicitly. Actually,
> it only enables generic linking to a BLAS alternative. The specific
> linking to OpenBLAS is provided by /usr/lib/libopenblas.so.0 (which has
> a different SONAME).
>
Ah, I didn't realise that /usr/lib/openblas/libblas.so provided the
libblas.so
SONAME.  Thanks, I withdraw that statement.

regards
Alastair


- -- 
Alastair McKinstry, <alastair at sceal.ie>, <mckinstry at debian.org>,
https://diaspora.sceal.ie/u/amckinstry
A decent provision for the poor is the true test of civilization.
~Samuel Johnson, Boswell: Life of Johnson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUPO6QAAoJEN9LdrZRJ3QsB5IP/1mxviBqjwUl2b407dCuZBQP
3ebFZ8YeFxLiBdEHdoY0P48wpXPbFccxnsWlBSoJg/61FAPDFaVtUeU8l5paZW4V
/RowpQ2BMLCgW/yZaVpPDhwC60rgvR1tbYkgIauUcYDPrhLQvDEeuMEgf+rC81hI
QIrI0jq8JScbjNXLJMaoDa29uJO61M564j0rWaoyeuuGXEQ76vXKaKi5tiYdIaij
3KCmL4lHLuXSeshdWyUQQeth9ahz/PERNn4JkI3Q9YaaP1hTdDoR19vn4GxckDTl
EmmVrM1EzJaFjWgmU/0CuAR36kqqFVsGYjOZzvEPplnLWn87zl3gywIMGW7nWPU1
svIGFBAwNZpBJk7dhv5slADhmLRBXnQQvzqxkPiGfW/um2XcrGU7XxKn4nGPPJiG
KPWtTv9zdZpEtHsqsYKnogia2ljXzkHdcBKfS0HfYxCbiDsn2nzNcg+G4KZ4g573
l4PTzMK0a9TPjwwUqQ0mFwmljzXLs71mMvdKoHvQchENNr4sRbrMSEiW4mYeVR2K
aBnkS4iD+dONJX56T/kwcxJbEPqDEJgVv+MnJZxIv4JBu82GcCC/QUpPzrRAWIiP
uwkJuvhZFzjqLOKrKW/+NKB6wwRLxIuZa9reAGlZPJFpkRkCGpBdRSOiO8r5nS3x
9EwRHueW99+qUjpKXwNj
=6BgK
-----END PGP SIGNATURE-----



More information about the debian-science-maintainers mailing list