]> granicus.if.org Git - pdns/commitdiff
auth 4.1 build: Switch to devtoolset 7 for el6
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 31 Oct 2018 13:51:50 +0000 (14:51 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 31 Oct 2018 14:35:08 +0000 (15:35 +0100)
Fixed on master by #7040

build-scripts/build-auth-rpm

index f9c934e6c4bc0bdaa3903e0add65b909a94f4146..649e84d0f5d46ee989aabd1649ac9b119b8dbfc3 100755 (executable)
@@ -31,7 +31,7 @@ fi
 
 case "$OS" in
   CentOS\ *\ 6*)
-    RPMBUILD_COMMAND="scl enable devtoolset-3 -- ${RPMBUILD_COMMAND}"
+    RPMBUILD_COMMAND="scl enable devtoolset-7 -- ${RPMBUILD_COMMAND}"
     cat > $HOME/rpmbuild/SOURCES/pdns.init <<EOF
 #!/bin/sh
 # chkconfig: - 80 75
@@ -263,7 +263,8 @@ Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/service, /sbin/chkconfig
 Requires(postun): /sbin/service
 
-BuildRequires: boost-devel
+BuildRequires: boost148-devel
+BuildRequires: boost148-program-options
 BuildRequires: lua-devel
 BuildRequires: libsodium-devel
 BuildRequires: bison
@@ -378,7 +379,9 @@ export CPPFLAGS="-DLDAP_DEPRECATED"
        --enable-libsodium \
        --without-protobuf \
        --enable-remotebackend-http \
-       --enable-unit-tests
+       --enable-unit-tests \
+       --with-boost=/usr/include/boost148/ LDFLAGS=-L/usr/lib64/boost148 \
+       CXXFLAGS=-std=gnu++11
 
 make %{?_smp_mflags}
 
@@ -440,32 +443,37 @@ fi
 
 %files tools
 %{_bindir}/calidns
+%{_bindir}/dnsbulktest
 %{_bindir}/dnsgram
 %{_bindir}/dnsreplay
 %{_bindir}/dnsscan
 %{_bindir}/dnsscope
+%{_bindir}/dnstcpbench
 %{_bindir}/dnswasher
 %{_bindir}/dumresp
 %{_bindir}/ixplore
-%{_bindir}/pdns_notify
 %{_bindir}/nproxy
 %{_bindir}/nsec3dig
+%{_bindir}/pdns_notify
 %{_bindir}/saxfr
 %{_bindir}/sdig
 %{_mandir}/man1/calidns.1.gz
+%{_mandir}/man1/dnsbulktest.1.gz
 %{_mandir}/man1/dnsgram.1.gz
 %{_mandir}/man1/dnsreplay.1.gz
 %{_mandir}/man1/dnsscan.1.gz
 %{_mandir}/man1/dnsscope.1.gz
+%{_mandir}/man1/dnstcpbench.1.gz
 %{_mandir}/man1/dnswasher.1.gz
 %{_mandir}/man1/dumresp.1.gz
 %{_mandir}/man1/ixplore.1.gz
-%{_mandir}/man1/pdns_notify.1.gz
 %{_mandir}/man1/nproxy.1.gz
 %{_mandir}/man1/nsec3dig.1.gz
+%{_mandir}/man1/pdns_notify.1.gz
 %{_mandir}/man1/saxfr.1.gz
 %{_mandir}/man1/sdig.1.gz
 
+
 %files backend-mysql
 %doc %{_defaultdocdir}/%{name}/schema.mysql.sql
 %doc %{_defaultdocdir}/%{name}/nodnssec-3.x_to_3.4.0_schema.mysql.sql