Bug 242332 - net/vde2: missing shared library if net/libpcap is installed during build but removed afterwards
Summary: net/vde2: missing shared library if net/libpcap is installed during build but...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-01 04:01 UTC by Ting-Wei Lan
Modified: 2019-12-01 04:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ting-Wei Lan 2019-12-01 04:01:29 UTC
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