Bug 208472

Summary: math/openblas: bad shared library
Product: Ports & Packages Reporter: Baptiste Daroussin <bapt>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: phd_kimberlite
Priority: --- Flags: phd_kimberlite: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch for HEAD phd_kimberlite: maintainer-approval+

Description Baptiste Daroussin freebsd_committer freebsd_triage 2016-04-02 20:29:29 UTC
libopenblas provides a libopenblas.so, which is a badly formated one (aka no SONAME)

readelf -d /usr/local/lib/libopenblas.so.0

Dynamic section at offset 0x18b4690 contains 29 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgfortran.so.3]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libquadmath.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/local/lib/gcc48]
 0x000000000000000c (INIT)               0x104a38
 0x000000000000000d (FINI)               0x180b548
 0x0000000000000019 (INIT_ARRAY)         0x1ab01f8
 0x000000000000001b (INIT_ARRAYSZ)       8 (bytes)
 0x000000000000001a (FINI_ARRAY)         0x1ab0200
 0x000000000000001c (FINI_ARRAYSZ)       8 (bytes)
....

There should be a SONAME section which should be libopenblas.so.0 otherwise binaries linking to it sill endup being linked to libopenblas.so instead of libopenblas.so.0
Comment 1 Eijiro Shibusawa 2016-04-03 05:23:59 UTC
Created attachment 168915 [details]
patch for HEAD
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2016-04-04 20:46:49 UTC
Thanks for the quick fix!
Comment 3 commit-hook freebsd_committer freebsd_triage 2016-04-04 20:47:20 UTC
A commit references this bug:

Author: bapt
Date: Mon Apr  4 20:46:23 UTC 2016
New revision: 412529
URL: https://svnweb.freebsd.org/changeset/ports/412529

Log:
  Create a proper library with a SONAME

  PR:		208472
  Submitted by:	phd_kimberlite@yahoo.co.jp (maintainer)
  MFH:		2016Q2

Changes:
  head/math/openblas/Makefile
  head/math/openblas/files/patch-Makefile.system
  head/math/openblas/files/patch-exports+Makefile