From 8885518709c123d1937da9e269f111db9f62f884 Mon Sep 17 00:00:00 2001 From: Josef Ridky Date: Thu, 20 Jul 2017 09:34:00 +0200 Subject: [PATCH] Resolves: #1470004 - Fix issue with undefined symbol my_progname when try to load NetSNMP::TrapReceiver in perl script. --- net-snmp-5.7.3-perl.patch | 14 ++++++++++++++ net-snmp.spec | 10 ++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 net-snmp-5.7.3-perl.patch diff --git a/net-snmp-5.7.3-perl.patch b/net-snmp-5.7.3-perl.patch new file mode 100644 index 0000000..e27e6ea --- /dev/null +++ b/net-snmp-5.7.3-perl.patch @@ -0,0 +1,14 @@ +diff -urNp old/configure.d/config_os_libs2 new/configure.d/config_os_libs2 +--- old/configure.d/config_os_libs2 2017-07-18 09:44:00.600109376 +0200 ++++ new/configure.d/config_os_libs2 2017-07-19 12:51:43.268001205 +0200 +@@ -485,8 +485,8 @@ if test "x$with_mysql" = "xyes" ; then + [AC_MSG_RESULT(no) + AC_DEFINE([HAVE_BROKEN_LIBMYSQLCLIENT], 1, + [Define if using MY_INIT() causes a linker error])]) +- CPPFLAGS="${_cppflags}" +- LIBS="${_libs}" ++# CPPFLAGS="${_cppflags}" ++# LIBS="${_libs}" + AC_MSG_CACHE_ADD(MYSQL Trap Logging: enabled) + else + AC_MSG_CACHE_ADD(MYSQL Trap Logging: unavailable) diff --git a/net-snmp.spec b/net-snmp.spec index 564536b..47070da 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -11,7 +11,7 @@ Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.7.3 -Release: 18%{?dist} +Release: 19%{?dist} Epoch: 1 License: BSD @@ -56,6 +56,8 @@ Patch16: net-snmp-5.7.3-strtok-r.patch # Josef's patch from https://sourceforge.net/p/net-snmp/bugs/2782/#cbed # but with the config_os_libs2 portion removed Patch17: net-snmp-5.7.3-mariadb102.patch +# Fix issue with undefined symbol my_progname when try to load NetSNMP::TrapReceiver in perl script. (#1470004) +Patch18: net-snmp-5.7.3-perl.patch # This patch fix issue with new OpenSLL library in rawhide (f26+) # !!!WARNING!!! DO NOT USE IT FOR OLDER FEDORA RELEASES (>f26) @@ -233,7 +235,8 @@ cp %{SOURCE12} . %patch14 -p1 -b .U64 %patch15 -p1 -b .make %patch16 -p1 -b .strtok-r -%patch17 -p1 +%patch17 -p1 -b .mariadb102 +%patch18 -p1 -b .perlfix %patch100 -p1 -b .openssl %ifarch sparc64 s390 s390x @@ -542,6 +545,9 @@ rm -rf ${RPM_BUILD_ROOT} %endif %changelog +* Thu Jul 20 2017 Josef Ridky - 1:5.7.3-19 +- Fix issue with undefined symbol my_progname when try to load NetSNMP::TrapReceiver in perl script. (#1470004) + * Wed Jul 19 2017 Adam Williamson - 1:5.7.3-18 - Fix build with MariaDB 10.2