Bug 202041 - databases/tdb: tdb.pc contains -Wl,-rpath,/usr/local/lib
Summary: databases/tdb: tdb.pc contains -Wl,-rpath,/usr/local/lib
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: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-02 16:05 UTC by Ting-Wei Lan
Modified: 2015-08-09 22:52 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments
Remove -Wl,-rpath in tdb.pc (455 bytes, patch)
2015-08-02 16:07 UTC, Ting-Wei Lan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ting-Wei Lan 2015-08-02 16:05:04 UTC
This causes every apps using tdb to have -Wl,-rpath,/usr/local/lib when linking. This can cause problems because ld searches rpath before LD_LIBRARY_PATH when locating shared libraries dependencies, so rhythmbox fail to link in jhbuild environment:
/home/lantw44/gnome/devinstall/lib/libgtk-3.so: undefined reference to `pango_fc_font_map_config_changed'

I have -L/home/lantw44/gnome/devinstall/lib -L/usr/local/lib in LDFLAGS, but ld still use /usr/local/lib/libpangoft2-1.0.so.0 instead of /home/lantw44/gnome/devinstall/lib/libpangoft2-1.0.so.0. Removing -Wl,-rpath,/usr/local/lib fixes the problem.
Comment 1 Ting-Wei Lan 2015-08-02 16:07:01 UTC
Created attachment 159461 [details]
Remove -Wl,-rpath in tdb.pc
Comment 2 Timur I. Bakeyev freebsd_committer freebsd_triage 2015-08-09 21:51:43 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer freebsd_triage 2015-08-09 22:52:25 UTC
A commit references this bug:

Author: timur
Date: Sun Aug  9 22:52:22 UTC 2015
New revision: 393833
URL: https://svnweb.freebsd.org/changeset/ports/393833

Log:
  Upgrade relevant ports to the latest releases.

  PR:		202041

Changes:
  head/databases/ldb/Makefile
  head/databases/ldb/distinfo
  head/databases/ldb/files/patch-buildtools__wafsamba__samba_install.py
  head/databases/ntdb/Makefile
  head/databases/tdb/Makefile
  head/databases/tdb/distinfo
  head/databases/tdb/files/patch-buildtools__wafsamba__samba_install.py
  head/devel/talloc/Makefile
  head/devel/talloc/distinfo
  head/devel/talloc/files/patch-buildtools__wafsamba__samba_install.py
  head/devel/tevent/Makefile
  head/devel/tevent/distinfo
  head/devel/tevent/files/patch-buildtools__wafsamba__samba_install.py
  head/devel/tevent/files/patch-wscript