[unbound] fix build on aarch64

Peter Robinson pbrobinson at fedoraproject.org
Fri Nov 28 13:40:04 UTC 2014


commit fb8c9b5d1d354a976c7b3748cff868869ea533f5
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Fri Nov 28 13:39:55 2014 +0000

    fix build on aarch64

 unbound-aarch64.patch |   22 ++++++++++++++++++++++
 unbound.spec          |    7 ++++++-
 2 files changed, 28 insertions(+), 1 deletions(-)
---
diff --git a/unbound-aarch64.patch b/unbound-aarch64.patch
new file mode 100644
index 0000000..47f0b3f
--- /dev/null
+++ b/unbound-aarch64.patch
@@ -0,0 +1,22 @@
+Index: unbound-1.5.0/compat/getentropy_linux.c
+===================================================================
+--- unbound-1.5.0.orig/compat/getentropy_linux.c
++++ unbound-1.5.0/compat/getentropy_linux.c
+@@ -102,7 +102,7 @@ getentropy(void *buf, size_t len)
+ 	if (ret != -1)
+ 		return (ret);
+ 
+-#ifdef CTL_MAXNAME
++#ifdef SYS__sysctl
+ 	/*
+ 	 * Try to use sysctl CTL_KERN, KERN_RANDOM, RANDOM_UUID.
+ 	 * sysctl is a failsafe API, so it guarantees a result.  This
+@@ -235,7 +235,7 @@ nodevrandom:
+ 	return -1;
+ }
+ 
+-#ifdef CTL_MAXNAME
++#ifdef SYS__sysctl
+ static int
+ getentropy_sysctl(void *buf, size_t len)
+ {
diff --git a/unbound.spec b/unbound.spec
index 44c628e..f385933 100644
--- a/unbound.spec
+++ b/unbound.spec
@@ -19,7 +19,7 @@
 Summary: Validating, recursive, and caching DNS(SEC) resolver
 Name: unbound
 Version: 1.5.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: BSD
 Url: http://www.nlnetlabs.nl/unbound/
 Source: http://www.unbound.net/downloads/%{name}-%{version}.tar.gz
@@ -42,6 +42,7 @@ Source15: unbound.cron
 Source16: unbound-munin.README
 
 Patch0: unbound-1.5.0-arc4random-race-condition.patch
+Patch1: unbound-aarch64.patch
 
 Group: System Environment/Daemons
 BuildRequires: flex, openssl-devel
@@ -116,6 +117,7 @@ Python modules and extensions for unbound
 %prep
 %setup -q 
 %patch0 -p1 -b .arc4random_fix
+%patch1 -p1 -b .aarch64
 
 
 %build
@@ -294,6 +296,9 @@ exit 0
 /bin/systemctl try-restart unbound-keygen.service >/dev/null 2>&1 || :
 
 %changelog
+* Fri Nov 28 2014 Marcin Juszkiewicz <mjuszkiewicz at redhat.com> - 1.5.0-3
+- fix build on aarch64
+
 * Wed Nov 26 2014 Tomas Hozza <thozza at redhat.com> - 1.5.0-2
 - Fix race condition in arc4random (#1166878)
 


More information about the scm-commits mailing list