From 6f04d4e0c145457bce23673420f8b1073d6b5b6c Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 6 May 2013 09:59:00 +0200 Subject: [PATCH] added aarch64 to multilib architectures. Resolves: #959775 --- net-snmp-config | 4 ++++ net-snmp-config.h | 2 ++ net-snmp.spec | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/net-snmp-config b/net-snmp-config index a719c28..7607ea7 100755 --- a/net-snmp-config +++ b/net-snmp-config @@ -55,4 +55,8 @@ if [ "$arch" = "sparc64" ] ; then net-snmp-config-sparc64 $* exit 0 fi +if [ "$arch" = "aarch64" ] ; then + net-snmp-config-aarch64 $* + exit 0 +fi echo "Cannot determine architecture" diff --git a/net-snmp-config.h b/net-snmp-config.h index 81aaf5b..1e87f66 100644 --- a/net-snmp-config.h +++ b/net-snmp-config.h @@ -29,6 +29,8 @@ #include "net-snmp-config-sparc64.h" #elif defined(__sparc__) #include "net-snmp-config-sparc.h" +#elif defined(__aarch64__) +#include "net-snmp-config-aarch64.h" #else #error "net-snmp-devel package does not work on your architecture" #endif diff --git a/net-snmp.spec b/net-snmp.spec index 8a28d86..e41b774 100644 --- a/net-snmp.spec +++ b/net-snmp.spec @@ -6,12 +6,12 @@ # allow compilation on Fedora 11 and older %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} # 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 +%global multilib_arches %{ix86} ia64 ppc ppc64 s390 s390x x86_64 sparc sparcv9 sparc64 aarch64 Summary: A collection of SNMP protocol tools and libraries Name: net-snmp Version: 5.7.2 -Release: 10%{?dist} +Release: 11%{?dist} Epoch: 1 License: BSD @@ -504,6 +504,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_initrddir}/snmptrapd %changelog +* Mon May 6 2013 Jan Safranek - 1:5.7.2-11 +- added aarch64 to multilib architectures. + * Mon Apr 22 2013 Jan Safranek - 1:5.7.2-10 - moved agentxtrap utility to net-snmp subpackage, it needs libraries provided by net-snmp-agent-libs.