From f3e4955324103b08706ec085b35e0fdbc48033b2 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 1 Nov 2018 17:37:52 +0100 Subject: [PATCH] fix el6 recursor build by disabling protobuf support --- builder-support/specs/pdns-recursor.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/builder-support/specs/pdns-recursor.spec b/builder-support/specs/pdns-recursor.spec index 08187b98bf..0be155fa34 100644 --- a/builder-support/specs/pdns-recursor.spec +++ b/builder-support/specs/pdns-recursor.spec @@ -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} -- 2.47.2