mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 00:01:52 -04:00
First no ports should ever be depending on pkg directly because it prevents building with WITH_PKG=devel, they should depend on ${PKG_ORIGIN}. Second, netsnmp do not expose the pkg API but only consume it, so program linking to netsnmp should not end up being directly linked to libpkg! Patch the configure script to stop asking net-snmp-config for extra libs which will faultly bring in linking against -lpkg and -lelf, and remove entirely libpkg as a dependency on the package
12 lines
563 B
Text
12 lines
563 B
Text
--- configure.orig 2011-01-28 12:10:11 UTC
|
|
+++ configure
|
|
@@ -5354,8 +5354,7 @@ $as_echo_n "checking for snmp-type... " >&6; }
|
|
if test "x$snmp_prefix" != "x" ; then
|
|
if test -x "$snmp_prefix/bin/net-snmp-config" ; then
|
|
SNMP_NET_LIBS=`$snmp_prefix/bin/net-snmp-config --netsnmp-libs`
|
|
- SNMP_EXT_LIBS=`$snmp_prefix/bin/net-snmp-config --external-libs`
|
|
- SNMP_LIBS="$SNMP_NET_LIBS $SNMP_EXT_LIBS"
|
|
+ SNMP_LIBS="$SNMP_NET_LIBS"
|
|
SNMP_CFLAGS="$SNMP_CFLAGS -DHAVE_NETSNMP"
|
|
else
|
|
guess_type="ucd"
|