Bug 202041

Summary: databases/tdb: tdb.pc contains -Wl,-rpath,/usr/local/lib
Product: Ports & Packages Reporter: Ting-Wei Lan <lantw44>
Component: Individual Port(s)Assignee: Timur I. Bakeyev <timur>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (timur)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Remove -Wl,-rpath in tdb.pc none

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 2015-08-09 21:51:43 UTC
Committed, thanks!
Comment 3 commit-hook freebsd_committer 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