[Bug 274012] warnings about unused LIB_DEPENDS entries warn about libraries that are actually used

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Sep 2023 00:56:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274012

            Bug ID: 274012
           Summary: warnings about unused LIB_DEPENDS entries warn about
                    libraries that are actually used
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ports-bugs@FreeBSD.org

The commit f3790c0170d85995b0fa58c6c50cef03088bf5ec on Sep 12 08:21:03 2023
introduced these warnings.

However, when the shared library names contain versions it issues warnings
saying that these libraries aren't needed when they are actually needed.

Testcase: security/tor

security/tor depends on libevent.so which is a symlink:
> $ ls -l /usr/local/lib/libevent.so
> lrwxr-xr-x  1 root  wheel  21 Aug  5 18:07 /usr/local/lib/libevent.so -> libevent-2.1.so.7.0.1

The port has LIB_DEPENDS=libevent.so:devel/libevent, which is correct.
The toolchain links binaries with libevent-2.1.so.7.0.1 which is also correct.
But then 'make stage-qa' prints "Warning: you might not need LIB_DEPENDS on
libevent.so" which is wrong.

-- 
You are receiving this mail because:
You are on the CC list for the bug.