]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix el6 recursor build by disabling protobuf support 7130/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 1 Nov 2018 16:37:52 +0000 (17:37 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Thu, 1 Nov 2018 16:37:52 +0000 (17:37 +0100)
builder-support/specs/pdns-recursor.spec

index 08187b98bf1a0bad15f80d446a85341d46ab69b9..0be155fa340e737c3ea8bbfb45558d558892dabd 100644 (file)
@@ -31,10 +31,13 @@ BuildRequires: systemd-devel
 BuildRequires: libatomic
 %endif
 
-BuildRequires: openssl-devel
-BuildRequires: net-snmp-devel
+%if 0%{?rhel} >= 7
 BuildRequires: protobuf-compiler
 BuildRequires: protobuf-devel
+%endif
+
+BuildRequires: openssl-devel
+BuildRequires: net-snmp-devel
 BuildRequires: libsodium-devel
 
 Requires(pre): shadow-utils
@@ -62,16 +65,17 @@ package if you need a dns cache for your network.
 %configure \
     --sysconfdir=%{_sysconfdir}/%{name} \
     --enable-libsodium \
-    --with-protobuf \
     --with-netsnmp \
     --disable-silent-rules \
     --disable-static \
     --enable-unit-tests \
 %if 0%{?rhel} == 6
+    --without-protobuf \
     --with-boost=/usr/include/boost148 LIBRARY_PATH=/usr/lib64/boost148
 
 make %{?_smp_mflags} LIBRARY_PATH=/usr/lib64/boost148
 %else
+    --with-protobuf \
     --with-lua=%{lua_implementation} \
     --enable-systemd --with-systemd=%{_unitdir}