The Makefile of net/vde2 includes this line: LIB_DEPENDS= libpcap.so:net/libpcap Since libpcap.so exists in base, it does not pull in any dependency: ===> vde2-2.3.2_4 depends on shared library: libpcap.so - found (/usr/lib/libpcap.so) However, vde2 seems to prefer libpcap from ports to the one in base. If libpcap from ports is present in the build environment, vde2 links to it but the dependency isn't registered into pkg. Therefore, it is possible for users to type 'pkg autoremove' to remove libpcap and cause 'pkg check' to show: vde2 is missing a required shared library: libpcap.so.1
Any proposed patch? Perhaps specify rpath?
Should be fixed by explicitly specifying required shlib version, e.g. LIB_DEPENDS= libpcap.so.1:net/libpcap grep libpcap.so in build.log before the change: ===> vde2-2.3.2_5 depends on shared library: libpcap.so - found (/usr/lib/libpcap.so) ===> vde2-2.3.2_5 depends on shared library: libpcap.so - found (/usr/lib/libpcap.so) actual-package-depends: dependency on /usr/lib/libpcap.so not registered (normal if it belongs to base) actual-package-depends: dependency on /usr/lib/libpcap.so not registered (normal if it belongs to base) 0x0000000000000001 NEEDED Shared library: [libpcap.so.8] After the change: ===> vde2-2.3.2_5 depends on shared library: libpcap.so.1 - not found ===> vde2-2.3.2_5 depends on shared library: libpcap.so.1 - found (/usr/local/lib/libpcap.so.1) ===> vde2-2.3.2_5 depends on shared library: libpcap.so.1 - found (/usr/local/lib/libpcap.so.1) 0x0000000000000001 NEEDED Shared library: [libpcap.so.1]
A commit references this bug: Author: amdmi3 Date: Fri Feb 19 22:53:07 UTC 2021 New revision: 566105 URL: https://svnweb.freebsd.org/changeset/ports/566105 Log: - Fix dependency on ports libpcap by explicitly specifying shlib version PR: 242332 Reported by: lantw44@gmail.com Changes: head/net/vde2/Makefile
A commit references this bug: Author: amdmi3 Date: Fri Feb 19 23:00:19 UTC 2021 New revision: 566106 URL: https://svnweb.freebsd.org/changeset/ports/566106 Log: MFH: r566105 - Fix dependency on ports libpcap by explicitly specifying shlib version PR: 242332 Reported by: lantw44@gmail.com Changes: _U branches/2021Q1/ branches/2021Q1/net/vde2/Makefile