Resolves: #1470004 - Fix perl issue with use NetSNMP::TrapReceiver (add link to libmysqlclient.so)

This commit is contained in:
Josef Ridky 2017-07-13 16:18:51 +02:00
parent d353462c74
commit a299db445d
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,28 @@
diff -urNp old/configure new/configure
--- old/configure 2017-07-11 15:24:33.579767286 +0200
+++ new/configure 2017-07-12 08:50:28.375913913 +0200
@@ -23743,8 +23743,8 @@ $as_echo "#define HAVE_BROKEN_LIBMYSQLCL
fi
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${_cppflags}"
- LIBS="${_libs}"
+# CPPFLAGS="${_cppflags}"
+# LIBS="${_libs}"
cat >> configure-summary << EOF
MYSQL Trap Logging: enabled
diff -urNp old/configure.d/config_os_libs2 new/configure.d/config_os_libs2
--- old/configure.d/config_os_libs2 2017-07-11 15:24:14.268853962 +0200
+++ new/configure.d/config_os_libs2 2017-07-12 08:47:11.270052282 +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: 13%{?dist}
Release: 14%{?dist}
Epoch: 1
License: BSD
@ -51,6 +51,8 @@ Patch14: net-snmp-5.7.3-Remove-U64-typedef.patch
Patch15: net-snmp-5.7.3-Fix-Makefile-PL.patch
# Use strtok_r for strtok to avoid a race condition
Patch16: net-snmp-5.7.3-strtok-r.patch
# Fix perl issue with use NetSNMP::TrapReceiver (add link to libmysqlclient.so)
Patch17: net-snmp-5.7.3-mysqllib.patch
Requires(post): chkconfig
Requires(preun): chkconfig
@ -224,6 +226,7 @@ cp %{SOURCE12} .
%patch14 -p1 -b .U64
%patch15 -p1 -b .make
%patch16 -p1 -b .strtok-r
%patch17 -p1 -b .mysqllib
%ifarch sparc64 s390 s390x
# disable failing test - see https://bugzilla.redhat.com/show_bug.cgi?id=680697
@ -531,6 +534,9 @@ rm -rf ${RPM_BUILD_ROOT}
%endif
%changelog
* Thu Jul 13 2017 Josef Ridky <jridky@redhat.com> - 1:5.7.3-14
- Fix perl issue with use NetSNMP::TrapReceiver (add link to libmysqlclient.so) (#1470004)
* Fri Aug 12 2016 Josef Ridky <jridky@redhat.com> - 1:5.7.3-13
- net-snmp.redhat.conf: update default configuration to conform to the best practices (#1359123)
- nmp_transport.c: use strtok_r for strtok to avoid a race condition (#1366282)