Resolves: #1470004 - Fix issue with undefined symbol my_progname when try to load NetSNMP::TrapReceiver in perl script.

This commit is contained in:
Josef Ridky 2017-07-20 09:34:00 +02:00
parent cd6759e4f3
commit 8885518709
2 changed files with 22 additions and 2 deletions

14
net-snmp-5.7.3-perl.patch Normal file
View File

@ -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)

View File

@ -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 <jridky@redhat.com> - 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 <awilliam@redhat.com> - 1:5.7.3-18
- Fix build with MariaDB 10.2