The package rpms/pdns-recursor.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/pdns-recursor.git/commit/?id=6424....
Change:
+%ifarch ppc64 ppc64le
Thanks.
Full change:
============
commit 64243947e6e757e4f5742f219f5fd5b02885cb18
Author: Sander Hoentjen <shoentjen(a)antagonist.nl>
Date: Thu Jun 15 11:13:48 2017 +0200
Fix building on ppc64* (patch is already upstream)
diff --git a/pdns-recursor-4.0.5-check_link_flag.patch
b/pdns-recursor-4.0.5-check_link_flag.patch
new file mode 100644
index 0000000..7626765
--- /dev/null
+++ b/pdns-recursor-4.0.5-check_link_flag.patch
@@ -0,0 +1,53 @@
+diff -urN pdns-recursor-4.0.5/configure
pdns-recursor-0.0.4.0.x5401.1575g8495b97/configure
+--- pdns-recursor-4.0.5/configure 2017-06-13 11:59:12.000000000 +0200
++++ pdns-recursor-0.0.4.0.x5401.1575g8495b97/configure 2017-06-15 09:41:01.000000000
+0200
+@@ -15885,17 +15885,14 @@
+
+ case "$host" in
+ mips* | powerpc* )
+- as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_cannot continue"
"$LINENO" 5
+- _-latomic" | $as_tr_sh`
+-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts
-latomic" >&5
++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts
-latomic" >&5
+ $as_echo_n "checking whether the linker accepts -latomic... " >&6; }
+-if eval \${$as_CACHEVAR+:} false; then :
++if ${ax_cv_check_ldflags___latomic+:} false; then :
+ $as_echo_n "(cached) " >&6
+ else
+
+ ax_check_save_flags=$LDFLAGS
+- LDFLAGS="$LDFLAGS cannot continue" "$LINENO" 5
+- -latomic"
++ LDFLAGS="$LDFLAGS -latomic"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -15908,21 +15905,21 @@
+ }
+ _ACEOF
+ if ac_fn_cxx_try_link "$LINENO"; then :
+- eval "$as_CACHEVAR=yes"
++ ax_cv_check_ldflags___latomic=yes
+ else
+- eval "$as_CACHEVAR=no"
++ ax_cv_check_ldflags___latomic=no
+ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$ax_check_save_flags
+ fi
+-eval ac_res=\$$as_CACHEVAR
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+-$as_echo "$ac_res" >&6; }
+-if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
++{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
$ax_cv_check_ldflags___latomic" >&5
++$as_echo "$ax_cv_check_ldflags___latomic" >&6; }
++if test "x$ax_cv_check_ldflags___latomic" = xyes; then :
+ :
+ else
+- as_fn_error $? "Unable to link against libatomic
++ as_fn_error $? "Unable to link against libatomic, cannot continue"
"$LINENO" 5
++
+ fi
+
+ LDFLAGS="-latomic $LDFLAGS"
diff --git a/pdns-recursor.spec b/pdns-recursor.spec
index f058064..8fb38d4 100644
--- a/pdns-recursor.spec
+++ b/pdns-recursor.spec
@@ -1,11 +1,12 @@
Name: pdns-recursor
Version: 4.0.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Modern, advanced and high performance recursing/non authoritative name server
Group: System Environment/Daemons
License: GPLv2
URL:
https://powerdns.com
Source0:
https://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
+Patch1: pdns-recursor-4.0.5-check_link_flag.patch
Provides: powerdns-recursor = %{version}-%{release}
BuildRequires: boost-devel
@@ -14,6 +15,9 @@ BuildRequires: luajit-devel
%else
BuildRequires: lua-devel
%endif
+%ifarch ppc64 ppc64le
+BuildRequires: libatomic
+%endif
BuildRequires: openssl-devel
BuildRequires: systemd
BuildRequires: systemd-devel
@@ -32,8 +36,7 @@ package if you need a dns cache for your network.
%prep
-%setup -q -n %{name}-%{version}
-
+%autosetup -p1
%build
%configure \
@@ -92,6 +95,9 @@ exit 0
%changelog
+* Thu Jun 15 2017 Sander Hoentjen <sander(a)hoentjen.eu> - 4.0.5-3
+- Fix building on ppc64* (patch is already upstream)
+
* Wed Jun 14 2017 Orion Poplawski <orion(a)cora.nwra.com> - 4.0.5-2
- Rebuild for protobuf 3.3.1