git: 6a1637bb1068 - main - net/frr8: Fix libsnmp linking
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Jul 2025 01:34:48 UTC
The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/ports/commit/?id=6a1637bb10687de44a3352c7d8dc24e8bba0723d commit 6a1637bb10687de44a3352c7d8dc24e8bba0723d Author: Olivier Cochard <olivier@FreeBSD.org> AuthorDate: 2025-07-28 01:34:00 +0000 Commit: Olivier Cochard <olivier@FreeBSD.org> CommitDate: 2025-07-28 01:34:00 +0000 net/frr8: Fix libsnmp linking Fix the snmp library link when enabling the SNMP option. PR: 275252 --- net/frr8/files/patch-configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/net/frr8/files/patch-configure.ac b/net/frr8/files/patch-configure.ac new file mode 100644 index 000000000000..a8a56bdb4ed3 --- /dev/null +++ b/net/frr8/files/patch-configure.ac @@ -0,0 +1,11 @@ +--- configure.ac.orig 2024-12-27 21:06:42 UTC ++++ configure.ac +@@ -1921,7 +1921,7 @@ if test "$enable_snmp" != "" -a "$enable_snmp" != "no" + # net-snmp lists all of its own dependencies. we absolutely do not want that + # among other things we avoid a GPL vs. OpenSSL license conflict here + for removelib in crypto ssl sensors pci wrap; do +- SNMP_LIBS="`echo $SNMP_LIBS | sed -e 's/\(^\|\s\)-l'$removelib'\b/ /g' -e 's/\(^\|\s\)\([^\s]*\/\)\?lib'$removelib'\.[^\s]\+\b/ /g'`" ++ SNMP_LIBS="`echo $SNMP_LIBS | sed -e 's/-l'$removelib'/ /g'`" + done + AC_MSG_CHECKING([whether we can link to Net-SNMP]) + AC_LINK_IFELSE_FLAGS([$SNMP_CFLAGS], [$SNMP_LIBS], [AC_LANG_PROGRAM([