Fix MySQL issue

This commit is contained in:
Josef Ridky 2018-07-25 08:45:37 +02:00
parent 22cf4e9086
commit cc67225c40
2 changed files with 15 additions and 7 deletions

View File

@ -6,7 +6,7 @@ diff -urNp a/apps/Makefile.in b/apps/Makefile.in
libnetsnmptrapd.$(LIB_EXTENSION)$(LIB_VERSION): $(LLIBTRAPD_OBJS)
- $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LIB_LD_LIBS)
+ $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LIB_LD_LIBS) $(MYSQL_LIB)
+ $(LIB_LD_CMD) $@ ${LLIBTRAPD_OBJS} $(MIBLIB) $(USELIBS) $(PERLLDOPTS_FOR_LIBS) $(LIB_LD_LIBS) $(MYSQL_LIBS)
$(RANLIB) $@
snmpinforminstall:

View File

@ -4,10 +4,13 @@
# Arches on which we need to prevent arch conflicts on net-snmp-config.h
%global multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64 sparc sparcv9 sparc64 aarch64
# actual soname version
%global soname 35
Summary: A collection of SNMP protocol tools and libraries
Name: net-snmp
Version: 5.8
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 1
License: BSD
@ -368,6 +371,7 @@ cp -f libtool.orig libtool
chmod 755 local/passtest
LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
%endif
@ -456,7 +460,7 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
%files libs
%doc COPYING README ChangeLog.trimmed FAQ NEWS TODO
%doc IETF-MIB-LICENSE.txt
%{_libdir}/libnetsnmp.so.*
%{_libdir}/libnetsnmp.so.%{soname}
%dir %{_datadir}/snmp
%dir %{_datadir}/snmp/mibs
%{_datadir}/snmp/mibs/*
@ -465,12 +469,16 @@ LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make test
%dir %{_localstatedir}/lib/net-snmp/cert_indexes
%files agent-libs
%{_libdir}/libnetsnmpagent*.so.*
%{_libdir}/libnetsnmphelpers*.so.*
%{_libdir}/libnetsnmpmibs*.so.*
%{_libdir}/libnetsnmptrapd*.so.*
%{_libdir}/libnetsnmpagent*.so.%{soname}
%{_libdir}/libnetsnmphelpers*.so.%{soname}
%{_libdir}/libnetsnmpmibs*.so.%{soname}
%{_libdir}/libnetsnmptrapd*.so.%{soname}
%changelog
* Mon Jul 23 2018 Josef Ridky <jridky@redhat.com> - 1:5.8-2
- fix unresoved error with mysql functions
- implement changes to announce soname changes
* Wed Jul 18 2018 Josef Ridky <jridky@redhat.com> - 1:5.8-1
- New upstream release 5.8
- remove APSL downstream patch due this copyright is already