Bug 214424

Summary: net/zebra-server: overlinking yaz dependencies
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Dmitry Sivachenko <demon>
Status: New ---    
Severity: Affects Only Me CC: ben, w.schwarzenfeld
Priority: --- Keywords: needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (ben)
Hardware: Any   
OS: Any   

Description Jan Beich freebsd_committer 2016-11-11 15:56:27 UTC
ports r425890 added ICU to LIB_DEPENDS but it may not be required e.g. via LDFLAGS += -Wl,--as-needed.

$ poudriere testport -j 101i386 -o net/zebra-server 
[...]
  YAZ La Lib:                 -L/usr/local/lib -lyaz_icu -lyaz_server -lyaz -L/usr/local/lib -lxslt -lxml2 -lz -llzma -lm -lexecinfo -L/usr/lib -lpthread -L/usr/local/lib -licui18n -licuuc -licudata
  YAZ Lib:                    -L/usr/local/lib -lyaz_icu -lyaz_server -lyaz -L/usr/local/lib -lxslt -lxml2 -lz -llzma -lm -lexecinfo -L/usr/lib -lpthread -L/usr/local/lib -licui18n -licuuc -licudata
[...]
--- zebrasrv ---
/bin/sh ../libtool --tag=CC    --mode=link cc  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing   -fstack-protector -o zebrasrv zebrasrv.o libidzebra-2.0.la -L/usr/local/lib -lyaz_icu -lyaz_server -lyaz -L/usr/local/lib -lxslt -lxml2 -lz -llzma -lm -lexecinfo -L/usr/lib -lpthread -L/usr/local/lib -licui18n -licuuc -licudata -lm -lz -lbz2 -lcrypt  -L/usr/lib
[...]
===========================================================================
====>> Checking shared library dependencies
 0x00000001 (NEEDED)                     Shared library: [libbz2.so.4]
 0x00000001 (NEEDED)                     Shared library: [libc.so.7]
 0x00000001 (NEEDED)                     Shared library: [libcrypt.so.5]
 0x00000001 (NEEDED)                     Shared library: [libexecinfo.so.1]
 0x00000001 (NEEDED)                     Shared library: [libexpat.so.1]
 0x00000001 (NEEDED)                     Shared library: [libicudata.so.57]
 0x00000001 (NEEDED)                     Shared library: [libicui18n.so.57]
 0x00000001 (NEEDED)                     Shared library: [libicuuc.so.57]
 0x00000001 (NEEDED)                     Shared library: [libidzebra-2.0.so.0]
 0x00000001 (NEEDED)                     Shared library: [liblzma.so.5]
 0x00000001 (NEEDED)                     Shared library: [libm.so.5]
 0x00000001 (NEEDED)                     Shared library: [libtcl86.so.1]
 0x00000001 (NEEDED)                     Shared library: [libthr.so.3]
 0x00000001 (NEEDED)                     Shared library: [libxml2.so.2]
 0x00000001 (NEEDED)                     Shared library: [libxslt.so.1]
 0x00000001 (NEEDED)                     Shared library: [libyaz.so.5]
 0x00000001 (NEEDED)                     Shared library: [libyaz_icu.so.5]
 0x00000001 (NEEDED)                     Shared library: [libyaz_server.so.5]
 0x00000001 (NEEDED)                     Shared library: [libz.so.6]
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-12 14:41:45 UTC
Maintainer feedback?