Bug 28191

Summary: Weird package name for openblas library flavours
Product: Mageia Reporter: Giuseppe Ghibò <ghibomgx>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: openblas-0.3.12-4.mga8.src.rpm CVE:
Status comment:
Attachments: patch1 for openblas names
patch2 for openblas names

Description Giuseppe Ghibò 2021-01-21 21:59:24 CET
Current openblas library comes with 4 flavours (plain, openmp, threads, serial), however for the extra flavours there were used package names not containing the "openblas" string, e.g.:

lib64threads0
lib64openmp0
lib64serial0

for libopenblasp.so, libopenblaso.so and so on. These are pretty generic names and can be confused with other libraries that have a similar name but do different stuff (thread, openmp, serial). I suggest to rename to something like:

lib64openblasthreads0
lib64openblasopenmp0
lib64openblasserial0

or alternatively

lib64openblasp0
lib64openblaso0
lib64openblass0

I attach the two alternative diff for the .spec file.
Comment 1 Giuseppe Ghibò 2021-01-21 22:00:22 CET
Created attachment 12241 [details]
patch1 for openblas names
Comment 2 Giuseppe Ghibò 2021-01-21 22:00:43 CET
Created attachment 12242 [details]
patch2 for openblas names
Comment 3 Lewis Smith 2021-01-24 21:21:02 CET
This seems a sensible request, thank you for it.
Openblas is new for Mageia 8. Searching for it in rpmdrake just shows:
 lib64openblas-devel
 lib64openblas-static-devel
 openblas
 openblas-srpm-macros
Even searching for just 'blas' does not show the three libs in question; so how one would discoverthe others is puzzling.

Name        : openblas
Summary     : An optimized BLAS library based on GotoBLAS2
Even more curiously, this obvious package 'openblas' contains just /usr/share/doc/* and /usr/share/licenses/*, NO visible library. Is the 'plain' variant: "4 flavours (plain, openmp, threads, serial)" disguised under yet another lib64... package name?

Name        : lib64threads0
Summary     : An optimized BLAS library based on GotoBLAS2, pthreads version
/usr/lib64/libopenblasp-r0.3.12.so
/usr/lib64/libopenblasp.so.0

Name        : lib64openmp0
Summary     : An optimized BLAS library based on GotoBLAS2, OpenMP version
/usr/lib64/libopenblaso-r0.3.12.so
/usr/lib64/libopenblaso.so.0

Name        : lib64serial0
Summary     : An optimized BLAS library based on GotoBLAS2, serial version
/usr/lib64/libopenblas-r0.3.12.so
/usr/lib64/libopenblas.so.0

In fact there are very many libraries (excluding devel ones) shown by
 $ urpmf libopenblas | grep -v devel
Yet I cannot identify therein the 'plain' variant, if it exists.
-----------------------------------------------------------------
Assigning this to Thierry as the SRPM maintainer.

Severity: enhancement => normal
Summary: Weird package name for library flavours => Weird package name for openblas library flavours
Assignee: bugsquad => thierry.vignaud