]> granicus.if.org Git - pdns/commitdiff
Add CentOS 8 as builder target
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 10 Oct 2019 12:03:21 +0000 (14:03 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 17 Oct 2019 09:33:07 +0000 (11:33 +0200)
(cherry picked from commit 19293f266cf7bb719bd6975b3e06994f49e0e583)

builder-support/dockerfiles/Dockerfile.target.centos-8 [new file with mode: 0644]
builder-support/specs/dnsdist.spec
builder-support/specs/pdns-recursor.spec
builder-support/specs/pdns.spec

diff --git a/builder-support/dockerfiles/Dockerfile.target.centos-8 b/builder-support/dockerfiles/Dockerfile.target.centos-8
new file mode 100644 (file)
index 0000000..0a123c5
--- /dev/null
@@ -0,0 +1,17 @@
+# First do the source builds
+@INCLUDE Dockerfile.target.sdist
+
+# This defines the dstribution base layer
+# Put only the bare minimum of common commands here, without dev tools
+FROM centos:8 as dist-base
+ARG BUILDER_CACHE_BUSTER=
+RUN yum install -y epel-release && \
+    dnf install -y 'dnf-command(config-manager)' && \
+    dnf config-manager --set-enabled PowerTools
+
+# Do the actual rpm build
+@INCLUDE Dockerfile.rpmbuild
+
+# Do a test install and verify
+# Can be skipped with skiptests=1 in the environment
+# @EXEC [ "$skiptests" = "" ] && include Dockerfile.rpmtest
index b62ac12ba5f67c2ca691a5defe67f20c2f449a4d..c735fd0bec57216176d5263df0f23d5fb7edb8f5 100644 (file)
@@ -54,7 +54,10 @@ Requires(pre): shadow
 %endif
 %if 0%{?rhel} >= 7
 Requires(pre): shadow-utils
+%if 0%{?rhel} == 7
+# No fstrm in EPEL 8 (yet) https://bugzilla.redhat.com/show_bug.cgi?id=1760298
 BuildRequires: fstrm-devel
+%endif
 %systemd_requires
 %endif
 
@@ -96,8 +99,10 @@ sed -i '/^ExecStart/ s/dnsdist/dnsdist -u dnsdist -g dnsdist/' dnsdist.service.i
   --without-protobuf \
   --without-net-snmp
 %endif
-%if 0%{?rhel} >= 7
+%if 0%{?rhel} == 7
   --enable-dnstap \
+%endif
+%if 0%{?rhel} >= 7
   --with-gnutls \
   --with-protobuf \
   --with-lua=%{lua_implementation} \
index 40a0df0e1e80684545364209ca2a868a5e1f289e..7f354b8590846a9da6e22863c71f7894f05eb884 100644 (file)
@@ -35,6 +35,11 @@ BuildRequires: libatomic
 %if 0%{?rhel} >= 7
 BuildRequires: protobuf-compiler
 BuildRequires: protobuf-devel
+
+%if 0%{?rhel} == 7
+# No fstrm in EPEL 8 yet
+BuildRequires: fstrm-devel
+%endif
 %endif
 
 BuildRequires: openssl-devel
index d8d760034577ab7350643833c75cbc1374045fea..90096b323a990c3a667a4f245cf243e092da52ef 100644 (file)
@@ -166,7 +166,9 @@ Summary: Geo backend for %{name}
 Group: System Environment/Daemons
 Requires: %{name}%{?_isa} = %{version}-%{release}
 BuildRequires: yaml-cpp-devel
+%if 0%{?rhel} <= 7
 BuildRequires: geoip-devel
+%endif
 BuildRequires: libmaxminddb-devel
 %global backends %{backends} geoip