Resolves: #1470004 - fix missing linking to libmysqlclient library
This commit is contained in:
parent
c6e5996490
commit
48804d810d
28
net-snmp-5.7.3-mysqllib.patch
Normal file
28
net-snmp-5.7.3-mysqllib.patch
Normal 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)
|
@ -11,7 +11,7 @@
|
|||||||
Summary: A collection of SNMP protocol tools and libraries
|
Summary: A collection of SNMP protocol tools and libraries
|
||||||
Name: net-snmp
|
Name: net-snmp
|
||||||
Version: 5.7.3
|
Version: 5.7.3
|
||||||
Release: 16%{?dist}
|
Release: 17%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
License: BSD
|
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
|
Patch15: net-snmp-5.7.3-Fix-Makefile-PL.patch
|
||||||
# Use strtok_r for strtok to avoid a race condition
|
# Use strtok_r for strtok to avoid a race condition
|
||||||
Patch16: net-snmp-5.7.3-strtok-r.patch
|
Patch16: net-snmp-5.7.3-strtok-r.patch
|
||||||
|
# Fix missing linking to libmysqlclient library
|
||||||
|
Patch17: net-snmp-5.7.3-mysqllib.patch
|
||||||
|
|
||||||
# This patch fix issue with new OpenSLL library in rawhide (f26+)
|
# This patch fix issue with new OpenSLL library in rawhide (f26+)
|
||||||
# !!!WARNING!!! DO NOT USE IT FOR OLDER FEDORA RELEASES (>f26)
|
# !!!WARNING!!! DO NOT USE IT FOR OLDER FEDORA RELEASES (>f26)
|
||||||
@ -72,7 +74,7 @@ Requires(post): systemd-sysv
|
|||||||
BuildRequires: openssl-devel, bzip2-devel, elfutils-devel
|
BuildRequires: openssl-devel, bzip2-devel, elfutils-devel
|
||||||
BuildRequires: libselinux-devel, elfutils-libelf-devel, rpm-devel
|
BuildRequires: libselinux-devel, elfutils-libelf-devel, rpm-devel
|
||||||
BuildRequires: perl-devel, perl(ExtUtils::Embed), procps
|
BuildRequires: perl-devel, perl(ExtUtils::Embed), procps
|
||||||
BuildRequires: python-devel, python-setuptools
|
BuildRequires: python2-devel, python2-setuptools
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: mysql-devel
|
BuildRequires: mysql-devel
|
||||||
# for netstat, needed by 'make test'
|
# for netstat, needed by 'make test'
|
||||||
@ -228,6 +230,7 @@ cp %{SOURCE12} .
|
|||||||
%patch14 -p1 -b .U64
|
%patch14 -p1 -b .U64
|
||||||
%patch15 -p1 -b .make
|
%patch15 -p1 -b .make
|
||||||
%patch16 -p1 -b .strtok-r
|
%patch16 -p1 -b .strtok-r
|
||||||
|
%patch17 -p1 -b .mysqllib
|
||||||
%patch100 -p1 -b .openssl
|
%patch100 -p1 -b .openssl
|
||||||
|
|
||||||
%ifarch sparc64 s390 s390x
|
%ifarch sparc64 s390 s390x
|
||||||
@ -536,6 +539,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 12 2017 Josef Ridky <jridky@redhat.com> - 1:5.7.3-17
|
||||||
|
- Fix missing linking to libmysqlclient library (#1470004)
|
||||||
|
|
||||||
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.7.3-16
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:5.7.3-16
|
||||||
- Perl 5.26 rebuild
|
- Perl 5.26 rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user