From: Peter van Dijk Date: Thu, 1 Nov 2018 16:37:52 +0000 (+0100) Subject: fix el6 recursor build by disabling protobuf support X-Git-Tag: dnsdist-1.3.3~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7130%2Fhead;p=thirdparty%2Fpdns.git fix el6 recursor build by disabling protobuf support --- 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}