Bug 192666 - devel/libmba: wrong DT_SONAME embedded
Summary: devel/libmba: wrong DT_SONAME embedded
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: John Marino
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-14 23:43 UTC by Jan Beich
Modified: 2014-08-15 06:56 UTC (History)
1 user (show)

See Also:


Attachments
fix (2.53 KB, patch)
2014-08-14 23:43 UTC, Jan Beich
no flags Details | Diff
poudriere testport log (9.3R i386) (14.73 KB, text/plain)
2014-08-14 23:46 UTC, Jan Beich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2014-08-14 23:43:23 UTC
Created attachment 145795 [details]
fix

$ echo 'int main() {}' | cc -xc -o test - -L/usr/local/lib -lmba
$ ./test
Shared object "libmba.so.0.9" not found, required by "test"
zsh: exit 1

$ readelf -d /usr/local/lib/libmba.so | fgrep -i soname
 0x000000000000000e (SONAME)             Library soname: [libmba.so.0.9]

An actual example of the issue is broken textproc/rtfx:

$ rtfx
Shared object "libmba.so.0.9" not found, required by "rtfx"
zsh: exit 1

The fix contains:
- use single digit for soversion (ignore a.out and openbsd)
- add dragonfly to the ifdef
- drop unnecessary sed(1) lines by adjusting MAKE_ARGS
- bump PORTREVISION to force rebuild of the port and any port that depends on it
Comment 1 Jan Beich freebsd_committer freebsd_triage 2014-08-14 23:46:51 UTC
Created attachment 145796 [details]
poudriere testport log (9.3R i386)
Comment 2 John Marino freebsd_committer freebsd_triage 2014-08-15 00:01:19 UTC
No maintainer so moving directly to patch-ready
Comment 3 commit-hook freebsd_committer freebsd_triage 2014-08-15 06:55:33 UTC
A commit references this bug:

Author: marino
Date: Fri Aug 15 06:55:12 UTC 2014
New revision: 364938
URL: http://svnweb.freebsd.org/changeset/ports/364938

Log:
  devel/libmba: Fix wrong embedded DT_SONAME

   * Use single digit for soversion
   * Support DragonFly
   * Drop unnecessary sed lines by adjusting MAKE_ARGS
   * Bump dependent ports

  PR:		192666
  Submitted by:	Jan Beich
  Approved by:	portmgr (implicit, dependent port unstaged)

Changes:
  head/devel/libmba/Makefile
  head/devel/libmba/files/
  head/devel/libmba/files/patch-mktool.c
  head/textproc/domc/Makefile
  head/textproc/rtfx/Makefile
Comment 4 John Marino freebsd_committer freebsd_triage 2014-08-15 06:56:24 UTC
Thanks for supporting DF!