Bug 220998

Summary: devel/readline: Linked with ncurses from base, even ncurses from ports installed
Product: Ports & Packages Reporter: Oleh Hushchenkov <o.hushchenkov>
Component: Individual Port(s)Assignee: Sunpoet Po-Chuan Hsieh <sunpoet>
Status: New ---    
Severity: Affects Some People CC: w.schwarzenfeld
Priority: --- Flags: bugzilla: maintainer-feedback? (sunpoet)
Version: Latest   
Hardware: Any   
OS: Any   

Description Oleh Hushchenkov 2017-07-25 09:21:27 UTC
This cause a trouble, if port dependent on readline require ncurses and ncurses from ports installed. Ports dependent on readline, linked with both base and ports ncurses.

# ldd /usr/local/lib/libreadline.so.7
/usr/local/lib/libreadline.so.7:
        libncursesw.so.8 => /lib/libncursesw.so.8 (0x801251000)
        libc.so.7 => /lib/libc.so.7 (0x800824000)

Example devel/tig:
# ldd /usr/local/bin/tig
/usr/local/bin/tig:
        libreadline.so.7 => /usr/local/lib/libreadline.so.7 (0x800861000)
    >   libncursesw.so.6 => /usr/local/lib/libncursesw.so.6 (0x800ab2000)
        libtinfow.so.6 => /usr/local/lib/libtinfow.so.6 (0x800ce4000)
        libc.so.7 => /lib/libc.so.7 (0x800f1d000)
    >   libncursesw.so.8 => /lib/libncursesw.so.8 (0x8012d5000)

See ^ this.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-02-06 20:36:50 UTC
ping!