public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] rawhide: Update to 9.20.1
@ 2026-12-01 10:08
0 siblings, 0 replies; only message in thread
From: @ 2026-12-01 10:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bind
Branch : rawhide
Commit : dfb582c8d6d70fa7034f54fc33b8a39f866f873b
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-11-30T12:35:20+01:00
Stats : +174/-252 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/bind/c/dfb582c8d6d70fa7034f54fc33b8a39f866f873b?branch=rawhide
Log:
Update to 9.20.1
https://downloads.isc.org/isc/bind9/9.20.1/doc/arm/html/notes.html
Synchronize with small differences to bind package. Remove DOCPDF
condition, PDF documentation is not supported anymore.
Used original bind9-next spec and modified few parts.
Restore from git snapshot, keep some comments for later reuse.
---
diff --git a/.gitignore b/.gitignore
index 994183e..2b1c266 100644
--- a/.gitignore
+++ b/.gitignore
@@ -240,3 +240,5 @@ bind-9.7.2b1.tar.gz
/bind-9.18.*.tar.xz.asc
/bind9-d0a87358dad598e830664c78349c31cd0eafacbc.tar.bz2
/bind9-973d86462600356a97487a6ba734144ee3014996.tar.bz2
+/bind-9.20.*.tar.xz
+/bind-9.20.*.tar.xz.asc
diff --git a/bind-9.18-d-systest-keyfromlabel-noengine.patch b/bind-9.18-d-systest-keyfromlabel-noengine.patch
deleted file mode 100644
index aa96580..0000000
--- a/bind-9.18-d-systest-keyfromlabel-noengine.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From fea633b14bee8c7730d2b800dd011f4e67e363c2 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
-Date: Fri, 9 Oct 2026 18:10:28 +0200
-Subject: [PATCH] Make usage of engine optional
-
-We backported support for labels also into our 9.18 version. It should
-work even without -E pkcs11. But it requires special openssl
-configuration to enable the provider. Skip the test unless OPENSSL_CONF
-environment is not called openssl-provider.cnf.
----
- bin/tests/system/conf.sh.in | 3 +++
- bin/tests/system/keyfromlabel/tests_keyfromlabel.py | 7 +++----
- 2 files changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
-index f0e2b33..285c8cc 100644
---- a/bin/tests/system/conf.sh.in
-+++ b/bin/tests/system/conf.sh.in
-@@ -76,6 +76,9 @@ export KRB5_KTNAME=dns.keytab
- # tests grepping ans.run may rely on debug-level lines.
- export ANS_LOG_LEVEL="${ANS_LOG_LEVEL:-debug}"
-
-+# make it possible to override engine usage
-+: ${ENGINE_ARG:=-E pkcs11}
-+
- #
- # Programs detected by configure
- # Variables will be empty if no program was found by configure
-diff --git a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
-index 1953703..a2f4572 100644
---- a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
-+++ b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
-@@ -21,6 +21,7 @@ import isctest.mark
- pytestmark = [
- isctest.mark.supported_openssl_version,
- isctest.mark.softhsm2_environment,
-+ isctest.mark.with_pkcs11_provider,
- pytest.mark.extra_artifacts(
- [
- "*.example.db",
-@@ -132,8 +133,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
-
- keyfrlab_command = [
- os.environ["KEYFRLAB"],
-- "-E",
-- "pkcs11",
-+ *os.environ.get("ENGINE_ARG", "").split(),
- "-a",
- alg_name,
- "-y",
-@@ -181,8 +181,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
-
- signer_command = [
- os.environ["SIGNER"],
-- "-E",
-- "pkcs11",
-+ *os.environ.get("ENGINE_ARG", "").split(),
- "-S",
- "-a",
- "-g",
---
-2.56.0
-
diff --git a/bind-9.18-unittest-netmgr-unstable.patch b/bind-9.18-unittest-netmgr-unstable.patch
deleted file mode 100644
index 992758d..0000000
--- a/bind-9.18-unittest-netmgr-unstable.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-From 0f3a398fe813189c5dd56b0367a72c7b3f19504b Mon Sep 17 00:00:00 2001
-From: Petr Mensik <pemensik@redhat.com>
-Date: Wed, 14 Sep 2022 13:06:24 +0200
-Subject: [PATCH] Disable some often failing tests
-
-Make those tests skipped in default build, when CI=true environment is
-set. It is not clear why they fail mostly on COPR, but they do fail
-often.
----
- tests/isc/netmgr_test.c | 9 +++++++--
- 1 file changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/tests/isc/netmgr_test.c b/tests/isc/netmgr_test.c
-index 94e4bf7..7f9629c 100644
---- a/tests/isc/netmgr_test.c
-+++ b/tests/isc/netmgr_test.c
-@@ -1567,13 +1567,13 @@ stream_half_recv_half_send(void **state __attribute__((unused))) {
- /* TCP */
- ISC_RUN_TEST_IMPL(tcp_noop) { stream_noop(state); }
-
--ISC_RUN_TEST_IMPL(tcp_noresponse) { stream_noresponse(state); }
-+ISC_RUN_TEST_IMPL(tcp_noresponse) { SKIP_IN_CI; stream_noresponse(state); }
-
- ISC_RUN_TEST_IMPL(tcp_timeout_recovery) { stream_timeout_recovery(state); }
-
- ISC_RUN_TEST_IMPL(tcp_recv_one) { stream_recv_one(state); }
-
--ISC_RUN_TEST_IMPL(tcp_recv_two) { stream_recv_two(state); }
-+ISC_RUN_TEST_IMPL(tcp_recv_two) { SKIP_IN_CI; stream_recv_two(state); }
-
- ISC_RUN_TEST_IMPL(tcp_recv_send) {
- SKIP_IN_CI;
-@@ -1623,6 +1623,7 @@ ISC_RUN_TEST_IMPL(tcp_recv_one_quota) {
- }
-
- ISC_RUN_TEST_IMPL(tcp_recv_two_quota) {
-+ SKIP_IN_CI;
- atomic_store(&check_listener_quota, true);
- stream_recv_two(state);
- }
-@@ -1836,6 +1837,7 @@ ISC_RUN_TEST_IMPL(tcpdns_recv_two) {
- isc_result_t result = ISC_R_SUCCESS;
- isc_nmsocket_t *listen_sock = NULL;
-
-+ SKIP_IN_CI;
- atomic_store(&nsends, 2);
-
- result = isc_nm_listentcpdns(listen_nm, &tcp_listen_addr,
-@@ -2095,6 +2097,7 @@ ISC_RUN_TEST_IMPL(tls_recv_one) {
- }
-
- ISC_RUN_TEST_IMPL(tls_recv_two) {
-+ SKIP_IN_CI;
- stream_use_TLS = true;
- stream_recv_two(state);
- }
-@@ -2160,6 +2163,7 @@ ISC_RUN_TEST_IMPL(tls_recv_one_quota) {
- }
-
- ISC_RUN_TEST_IMPL(tls_recv_two_quota) {
-+ SKIP_IN_CI;
- stream_use_TLS = true;
- atomic_store(&check_listener_quota, true);
- stream_recv_two(state);
-@@ -2395,6 +2399,7 @@ ISC_RUN_TEST_IMPL(tlsdns_recv_two) {
- isc_result_t result = ISC_R_SUCCESS;
- isc_nmsocket_t *listen_sock = NULL;
-
-+ SKIP_IN_CI;
- atomic_store(&nsends, 2);
-
- result = isc_nm_listentlsdns(listen_nm, &tcp_listen_addr,
---
-2.37.2
-
diff --git a/bind-9.20-openssl-no-engine.patch b/bind-9.20-openssl-no-engine.patch
new file mode 100644
index 0000000..bafb6f2
--- /dev/null
+++ b/bind-9.20-openssl-no-engine.patch
@@ -0,0 +1,40 @@
+From e803ce83a1aafb84ff2b173f02cbac2de82373d9 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Sat, 3 Aug 2024 01:28:36 +0200
+Subject: [PATCH] Do not include engine in openssl shim
+
+It might not be available in some version. Ensure all code that requires
+it will include that header explicitly, including check for
+OPENSSL_NO_ENGINE define.
+---
+ lib/isc/openssl_shim.c | 1 -
+ lib/isc/openssl_shim.h | 1 -
+ 2 files changed, 2 deletions(-)
+
+diff --git a/lib/isc/openssl_shim.c b/lib/isc/openssl_shim.c
+index c39ba8c..8ffa31f 100644
+--- a/lib/isc/openssl_shim.c
++++ b/lib/isc/openssl_shim.c
+@@ -16,7 +16,6 @@
+ #include <string.h>
+
+ #include <openssl/crypto.h>
+-#include <openssl/engine.h>
+ #include <openssl/evp.h>
+ #include <openssl/hmac.h>
+ #include <openssl/opensslv.h>
+diff --git a/lib/isc/openssl_shim.h b/lib/isc/openssl_shim.h
+index b2916e2..bfc44c1 100644
+--- a/lib/isc/openssl_shim.h
++++ b/lib/isc/openssl_shim.h
+@@ -14,7 +14,6 @@
+ #pragma once
+
+ #include <openssl/crypto.h>
+-#include <openssl/engine.h>
+ #include <openssl/evp.h>
+ #include <openssl/hmac.h>
+ #include <openssl/opensslv.h>
+--
+2.45.2
+
diff --git a/bind-9.5-PIE.patch b/bind-9.5-PIE.patch
deleted file mode 100644
index 9744f69..0000000
--- a/bind-9.5-PIE.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 13348a5fc64387bf53ef450688e181100d0ceddb Mon Sep 17 00:00:00 2001
-From: Petr Mensik <pemensik@redhat.com>
-Date: Thu, 12 Dec 2024 15:56:13 +0100
-Subject: [PATCH] Harden named service build flags
-
----
- bin/named/Makefile.am | 5 ++++-
- 1 file changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/bin/named/Makefile.am b/bin/named/Makefile.am
-index 57a023b..b832e9c 100644
---- a/bin/named/Makefile.am
-+++ b/bin/named/Makefile.am
-@@ -33,7 +33,10 @@ endif HAVE_LIBXML2
-
- AM_CPPFLAGS += \
- -DNAMED_LOCALSTATEDIR=\"${localstatedir}\" \
-- -DNAMED_SYSCONFDIR=\"${sysconfdir}\"
-+ -DNAMED_SYSCONFDIR=\"${sysconfdir}\" \
-+ -fpie
-+
-+AM_LDFLAGS += -pie -Wl,-z,relro,-z,now,-z,nodlopen,-z,noexecstack
-
- sbin_PROGRAMS = named
-
---
-2.47.1
-
diff --git a/bind.spec b/bind.spec
index 2c6866b..de355be 100644
--- a/bind.spec
+++ b/bind.spec
@@ -8,6 +8,8 @@
%bcond_with SYSTEMTEST
# enable RSA1 during SYSTEMTEST
%bcond_with CRYPTO_POLICY_RSA1
+# Allow net configuration using sudo when SYSTEMTEST is enabled
+%bcond_without SUDO
%bcond_without GSSTSIG
%bcond_without JSON
# New MaxMind GeoLite support
@@ -21,43 +23,39 @@
%bcond_without DNSTAP
%bcond_without LMDB
%bcond_without DOC
-# Because of issues with PDF rebuild, include only HTML pages
-# Current error: unable top find isc-logo.pdf
-%if 0%{?fedora}
-# RHEL and ELN do not have all required packages
+
# xindy fails on s390x now. Not sure why. rhbz#2332076
%bcond_with DOCPDF
-%endif
-%bcond_with TSAN
# Add experimental extra verbose logging of query processing
%bcond_with QUERYTRACE
%if 0%{?fedora} >= 41 && ! 0%{?rhel}
# Make this enabled on recent Fedora, but not in ELN or RHEL
%bcond_with OPENSSL_ENGINE
%endif
+%bcond_with TSAN
+%bcond_without DTRACE
+# Bug rhbz#2277997
+%bcond_with JEMALLOC
+
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
%global bind_dir /var/named
%global chroot_prefix %{bind_dir}/chroot
%global chroot_create_directories /dev /run/named %{_localstatedir}/{log,named,tmp} \\\
- %{_sysconfdir}/{crypto-policies/back-ends,pki/dnssec-keys,named} \\\
+ %{_sysconfdir}/{crypto-policies/back-ends,pki/dnssec-keys,pki/tls,named} \\\
%{_libdir}/bind %{_libdir}/named %{_datadir}/{GeoIP,named} /proc/sys/net/ipv4
%global upstream_sources 0 2
%global pgp_signature_sources 2
-%global git_commit 973d86462600356a97487a6ba734144ee3014996
-%global git_short %{sub %git_commit 1 8}
+#global git_commit d0a87358dad598e830664c78349c31cd0eafacbc
+%dnl global git_short %{sub %git_commit 1 8}
# git log --format=%ai -1 $COMMIT | tr -d - | cut -d' ' -f1
%global git_date 20261102
-## The order of libs is important. See lib/Makefile.in for details
-%define bind_export_libs isc dns isccfg irs
-%{!?_export_dir:%global _export_dir /bind9-export/}
# libisc-nosym requires to be linked with unresolved symbols
# When libisc-nosym linking is fixed, it can be defined to 1
# Visit https://bugzilla.redhat.com/show_bug.cgi?id=1540300
%undefine _strict_symbol_defs_build
-#
# BIND 9 does not work with fortify 3 level, make builds work on Fedora
%global _fortify_level 2
@@ -68,9 +66,8 @@
%global oldname bind
# Used on shared libraries, snapshot adds -dev suffix
-%global lib_version 9.18.51
+%global lib_version %{version}
-# Epoch is intentionally missing from Provides to be lower than bind package
%if "%{name}" != "%{upname}" && "%{name}" != "%{oldname}"
# alternative version usually has higher version, do not provide epoch on compat symbols.
# keeps the default bind package the preferred one on dnf install bind{,-utils}
@@ -114,15 +111,16 @@ License: MPL-2.0 AND ISC AND MIT AND BSD-3-Clause AND BSD-2-Clause
#
# Before rebasing bind, ensure bind-dyndb-ldap is ready to be rebuild and use side-tag with it.
# Updating just bind will cause freeipa-dns-server package to be uninstallable.
-Version: %{lib_version}^git%{git_date}.%{git_short}
+Version: 9.20.1
Release: %autorelease
Epoch: 32
Url: https://www.isc.org/downloads/bind/
+VCS: git:%{forgeurl0}
#
-%dnl Source0: https://downloads.isc.org/isc/bind9/%{version}/%{oldname}-%{version}.tar.xz
-Source0: https://gitlab.isc.org/isc-projects/bind9/-/archive/%{git_commit}/bind9-%{git_commit}.tar.bz2
+Source0: https://downloads.isc.org/isc/bind9/%{version}/%{oldname}-%{version}.tar.xz
+%dnl Source0: https://gitlab.isc.org/isc-projects/bind9/-/archive/%{git_commit}/bind9-%{git_commit}.tar.bz2
Source1: named.sysconfig
-%dnl Source2: https://downloads.isc.org/isc/bind9/%{version}/%{oldname}-%{version}.tar.xz.asc
+Source2: https://downloads.isc.org/isc/bind9/%{version}/%{oldname}-%{version}.tar.xz.asc
Source3: named.logrotate
Source4: https://www.isc.org/docs/isc-keyblock.asc
Source16: named.conf
@@ -149,11 +147,11 @@ Source50: named.sysusers
Source51: bind-chroot.tmpfiles.d
# Common patches
-# FIXME: Is this still required?
-Patch10: bind-9.5-PIE.patch
-Patch16: bind-9.16-redhat_doc.patch
-# https://bugzilla.redhat.com/show_bug.cgi?id=2122010
-Patch26: bind-9.18-unittest-netmgr-unstable.patch
+# Red Hat specific documentation is not relevant to upstream
+Patch1: bind-9.16-redhat_doc.patch
+# Correct support for building without openssl/engine.h header
+# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/9228
+Patch2: bind-9.20-openssl-no-engine.patch
# Downstream backport from 9.20
# https://issues.redhat.com/browse/FREEIPA-11706
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/6751
@@ -174,8 +172,6 @@ Patch33: bind-9.18-dig-idn-input-always.patch
Patch34: bind-9.18-dig-idn-input-always-test.patch
# Downstream only, required on very long build paths.
Patch37: bind-9.18-d-unittest-dnstap-relative.patch
-# Downstream only, do not use -E pkcs11 in keyfromlabel
-Patch38: bind-9.18-d-systest-keyfromlabel-noengine.patch
%{?systemd_ordering}
# https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers
@@ -206,6 +202,7 @@ BuildRequires: selinux-policy
BuildRequires: findutils
BuildRequires: sed
BuildRequires: pkgconfig(libnghttp2)
+BuildRequires: pkgconfig(liburcu)
%if %{with JEMALLOC} && 0%{?fedora}
BuildRequires: pkgconfig(jemalloc)
%endif
@@ -213,9 +210,20 @@ BuildRequires: pkgconfig(jemalloc)
BuildRequires: openpgpverify
%endif
BuildRequires: pkgconfig(libuv)
+%if %{with JEMALLOC}
+BuildRequires: jemalloc-devel
+%else
+# Used from LD_PRELOAD
+BuildRequires: jemalloc
+%endif
+%if 0%{?fedora} >= 41 && %{with OPENSSL_ENGINE}
+BuildRequires: openssl-devel-engine
+%endif
%if %{with UNITTEST}
# make unit dependencies
BuildRequires: pkgconfig(cmocka)
+# Ensure we have lscpu
+BuildRequires: util-linux
%endif
%if %{with UNITTEST} || %{with SYSTEMTEST}
BuildRequires: softhsm
@@ -226,8 +234,12 @@ BuildRequires: perl(Net::DNS) perl(Net::DNS::Nameserver) perl(Time::HiRes) perl
BuildRequires: perl(English)
BuildRequires: python3-dns
BuildRequires: python3-hypothesis
+BuildRequires: python3-pytest
# manual configuration requires this tool
BuildRequires: iproute
+%if %{with SUDO}
+BuildRequires: libcap sudo
+%endif
%endif
%if %{with GSSTSIG}
BuildRequires: pkgconfig(krb5)
@@ -251,13 +263,13 @@ BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme
BuildRequires: doxygen
%endif
-%if %{with DOCPDF}
-# Because remaining issues with COPR, allow turning off PDF (re)generation
-BuildRequires: python3-sphinx-latex latexmk texlive-xetex texlive-xindy
-%endif
%if %{with TSAN}
BuildRequires: libtsan
%endif
+%if %{with DTRACE}
+# https://gitlab.isc.org/isc-projects/bind9/-/issues/4041
+BuildRequires: systemtap-sdt-devel
+%endif
%description
BIND (Berkeley Internet Name Domain) is an implementation of the DNS
@@ -359,6 +371,17 @@ This package contains a tree of files which can be used as a
chroot(2) jail for the named(8) program from the BIND package.
Based on the code from Jan "Yenya" Kasprzak <kas@fi.muni.cz>
+%if %{without JEMALLOC}
+%package jemalloc
+Summary: Jemalloc extension to bind9
+Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description jemalloc
+This package contains addition to %{name} package, enabling
+jemalloc in named service.
+%endif
+
+
%if %{with DOC}
%package doc
Summary: BIND 9 Administrator Reference Manual
@@ -384,7 +407,7 @@ in HTML and PDF format.
# RHEL does not yet support this verification
%{openpgpverify} --keyring='%{SOURCE4}' --signature='%{SOURCE2}' --data='%{SOURCE0}'
%endif
-%autosetup -n bind9-%{git_commit} -p1
+%autosetup -n %{oldname}-%{version} -p1
# Sparc and s390 arches need to use -fPIE
%ifarch sparcv9 sparc64 s390 s390x
@@ -393,9 +416,10 @@ for i in bin/named/Makefile.am; do
done
%endif
-# allow running as root from mock or test machines
-sed -e 's, "enable-developer",& \&\& systemctl is-system-running \&>/dev/null \&\& ! [ -e /mnt/tests ],' \
- -i bin/tests/system/run.sh
+%ifarch %{ix86}
+# f40 FTBFS on quota_test, bug #2261010
+ sed -e '/^\s*quota_test/ d' -i tests/isc/Makefile.am
+%endif
:;
@@ -415,21 +439,23 @@ CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_ENGINE=1"
export CFLAGS CPPFLAGS
export STD_CDEFINES="$CPPFLAGS"
-
sed -i -e \
's/([bind_VERSION_EXTRA],\s*\([^)]*\))/([bind_VERSION_EXTRA], \1-RH)/' \
configure.ac
+%if 0%{?rhel} && 0%{?rhel} < 9
+# disable Sphinx warnings as errors, epel8 does not pass cleanly
+sed -e 's/-W\s//' -i Makefile.docs
+%endif
+
autoreconf --force --install
LIBDIR_SUFFIX=
export LIBDIR_SUFFIX
%configure \
- --localstatedir=%{_var} \
--with-pic \
--disable-static \
--includedir=%{_includedir}/bind9 \
- --with-tuning=large \
--with-libidn2 \
%if %{with GEOIP2}
--with-maxminddb \
@@ -451,26 +477,27 @@ export LIBDIR_SUFFIX
%if %{with UNITTEST}
--with-cmocka \
%endif
-%if %{without JEMALLOC}
+%if %{with JEMALLOC}
+ --with-jemalloc \
+%else
--without-jemalloc \
%endif
- --enable-fixed-rrset \
--enable-full-report \
CPPFLAGS="$CPPFLAGS" \
;
-%if %{with DOCPDF}
-# avoid using home for pdf latex files
-export TEXMFVAR="`pwd`"
-export TEXMFCONFIG="`pwd`"
-fmtutil-user --listcfg || :
-fmtutil-user --missing || :
-%endif
-
%make_build
%if %{with DOC}
- make doc
+ %make_build doc SPHINX_W=''
+%endif
+
+%if %{without JEMALLOC}
+ LIB_JEMALLOC=$(ls -1 %{_libdir}/libjemalloc.so.*)
+ cat > "jemalloc.conf" << EOF
+[Service]
+Environment=LD_PRELOAD=${LIB_JEMALLOC}
+EOF
%endif
%check
@@ -495,7 +522,7 @@ export TSAN_OPTIONS="log_exe_name=true log_path=ThreadSanitizer exitcode=0"
ulimit -n 8092 || : # Requires on some machines with many cores
fi
e=0
- make unit -j${THREADS} || e=$?
+ %make_build unit -j${THREADS} || e=$?
# Display details of failure
cat tests/*/test-suite.log
if [ "$e" -ne 0 ]; then
@@ -509,18 +536,28 @@ export TSAN_OPTIONS="log_exe_name=true log_path=ThreadSanitizer exitcode=0"
%if %{with SYSTEMTEST}
# Runs system test if ip addresses are already configured
# or it is able to configure them
-if perl bin/tests/system/testsock.pl
-then
- CONFIGURED=already
-else
- CONFIGURED=
- sh bin/tests/system/ifconfig.sh up
- perl bin/tests/system/testsock.pl && CONFIGURED=build
-fi
+ SUDO=
+ pushd bin/tests/system/
+ if perl ./testsock.pl
+ then
+ CONFIGURED=already
+ else
+ %if %{with SUDO}
+ if [ -x /usr/sbin/capsh ] && ! /usr/sbin/capsh --has-p=cap_net_admin; then
+ echo "Not running as privileged user, using sudo"
+ SUDO=sudo
+ fi
+ %endif
+
+ CONFIGURED=
+ $SUDO sh ./ifconfig.sh up
+ perl ./testsock.pl && CONFIGURED=build
+ fi
+
-if [ -n "$CONFIGURED" ]
-then
- set -e
+ if [ -n "$CONFIGURED" ]
+ then
+ set -e
%if %{with CRYPTO_POLICY_RSA1}
# Override crypto-policy to allow RSASHA1 key operations
OPENSSL_CONF="$(mktemp openssl-XXXXXX.cnf)"
@@ -532,27 +569,29 @@ EOF
export OPENSSL_CONF
%endif
pushd bin/tests
- chown -R ${USER} . # Can be unknown user
+ export CI_SYSTEM=yes # allow running tests as root
+ chown -R ${USER} . # Can be unknown user
%make_build test
- e=$?
- popd
- [ "$CONFIGURED" = build ] && sh bin/tests/system/ifconfig.sh down
+ e=$?
+ [ "$CONFIGURED" = build ] && $SUDO sh ./ifconfig.sh down
+ popd
%if %{with CRYPTO_POLICY_RSA1}
export -b OPENSSL_CONF
%endif
- if [ "$e" -ne 0 ]; then
- echo "ERROR: this build of BIND failed 'make test'. Aborting."
- exit $e;
- fi;
-else
- echo 'SKIPPED: tests require root, CAP_NET_ADMIN or already configured test addresses.'
-fi
+ if [ "$e" -ne 0 ]; then
+ echo "ERROR: this build of BIND failed 'make test'. Aborting."
+ exit $e;
+ fi;
+ else
+ echo 'SKIPPED: tests require root, CAP_NET_ADMIN or already configured test addresses.'
+ fi
%endif
:
%install
# Build directory hierarchy
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
+mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/{bind,named}
mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/named/{slaves,data,dynamic}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/{man1,man5,man8}
@@ -592,17 +631,19 @@ install -m 644 %{SOURCE50} ${RPM_BUILD_ROOT}%{_sysusersdir}/named.conf
mkdir -p ${RPM_BUILD_ROOT}%{_libexecdir}
install -m 755 %{SOURCE41} ${RPM_BUILD_ROOT}%{_libexecdir}/setup-named-chroot.sh
install -m 755 %{SOURCE42} ${RPM_BUILD_ROOT}%{_libexecdir}/generate-rndc-key.sh
-
install -m 755 %{SOURCE48} ${RPM_BUILD_ROOT}%{_libexecdir}/setup-named-softhsm.sh
-install -m 644 %SOURCE3 ${RPM_BUILD_ROOT}/etc/logrotate.d/named
-mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
-install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/named
-install -m 644 %{SOURCE49} ${RPM_BUILD_ROOT}%{_sysconfdir}/named-chroot.files
+install -pm 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/named
+install -pm 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/named
+install -pm 644 %{SOURCE49} ${RPM_BUILD_ROOT}%{_sysconfdir}/named-chroot.files
%if "%{_sbindir}" != "%{_bindir}"
-# Compatibility with previous major versions, only for selected binaries
-ln -s ../bin/{named-checkconf,named-checkzone,named-compilezone} %{buildroot}%{_sbindir}/
+ ln -s ../bin/{named-checkconf,named-checkzone,named-compilezone} %{buildroot}%{_sbindir}/
+%endif
+
+%if %{without JEMALLOC}
+ mkdir -p ${RPM_BUILD_ROOT}%{_unitdir}/named.service.d
+ install -m 0644 jemalloc.conf ${RPM_BUILD_ROOT}%{_unitdir}/named.service.d
%endif
# Remove libtool .la files:
@@ -639,6 +680,7 @@ do
ln -sr "${RPM_BUILD_ROOT}${DIR}" "$BINDTHEMEDIR"
fi
done
+cp -p doc/arm/_build/epub/Bv9ARM.epub ${RPM_BUILD_ROOT}%{_pkgdocdir}
%endif
%if %{with DOCPDF}
cp -p doc/arm/_build/latex/Bv9ARM.pdf ${RPM_BUILD_ROOT}%{_pkgdocdir}
@@ -868,15 +910,12 @@ fi;
%dir /run/named
%files libs
-%{_libdir}/libbind9-%{lib_version}*.so
+%license COPYRIGHT
%{_libdir}/libisccc-%{lib_version}*.so
%{_libdir}/libns-%{lib_version}*.so
%{_libdir}/libdns-%{lib_version}*.so
-%{_libdir}/libirs-%{lib_version}*.so
%{_libdir}/libisc-%{lib_version}*.so
%{_libdir}/libisccfg-%{lib_version}*.so
-%{!?_licensedir:%global license %%doc}
-%license COPYRIGHT
%files utils
%{_bindir}/dig
@@ -955,6 +994,7 @@ fi;
%dir %{chroot_prefix}%{_sysconfdir}/named
%dir %{chroot_prefix}%{_sysconfdir}/pki
%dir %{chroot_prefix}%{_sysconfdir}/pki/dnssec-keys
+%dir %{chroot_prefix}%{_sysconfdir}/pki/tls
%dir %{chroot_prefix}%{_sysconfdir}/crypto-policies
%dir %{chroot_prefix}%{_sysconfdir}/crypto-policies/back-ends
%dir %{chroot_prefix}%{_localstatedir}
@@ -964,6 +1004,7 @@ fi;
%dir %{chroot_prefix}/usr
%dir %{chroot_prefix}/%{_libdir}
%dir %{chroot_prefix}/%{_libdir}/bind
+%dir %{chroot_prefix}/%{_datadir}
%dir %{chroot_prefix}/%{_datadir}/GeoIP
%dir %{chroot_prefix}/%{_datadir}/named
%{chroot_prefix}/proc
@@ -975,6 +1016,11 @@ fi;
%defattr(-,named,named,-)
%dir %{chroot_prefix}/run/named
%{chroot_prefix}%{_localstatedir}/run
+%if %{without JEMALLOC}
+%files jemalloc
+%{_unitdir}/named.service.d
+%endif
+
%if %{with DOC}
%files doc
@@ -982,9 +1028,7 @@ fi;
%doc %{_pkgdocdir}/html
%doc %{_pkgdocdir}/Bv9ARM.html
%license COPYRIGHT
-%endif
-%if %{with DOCPDF}
-%doc %{_pkgdocdir}/Bv9ARM.pdf
+%doc %{_pkgdocdir}/Bv9ARM.epub
%endif
%changelog
diff --git a/named-chroot.files b/named-chroot.files
index 10f04b6..aaa6575 100644
--- a/named-chroot.files
+++ b/named-chroot.files
@@ -14,6 +14,7 @@
/etc/services
/etc/named.dnssec.keys
/etc/pki/dnssec-keys
+/etc/pki/tls/cert.pem
/etc/named
/usr/lib64/bind
/usr/lib/bind
diff --git a/sources b/sources
index cf8c6f2..9549688 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-SHA512 (bind9-973d86462600356a97487a6ba734144ee3014996.tar.bz2) = dab815f82fc42f7434697cb6431bd235b795ef085bb69e63faf74e20b9f49d89546527fd7003cc91cc4292f03028d115d05ae74c98a8196788de2aefbcacb246
+SHA512 (bind-9.20.1.tar.xz) = 4d410da58bd4e4b7c17961fd026014c330811e4a906e9d6db63419c7347815c6634ffc4ef97513a361add13419ee70ba814c97b583e85d2df89438b9d937d657
+SHA512 (bind-9.20.1.tar.xz.asc) = 342a09a4cc0452ff8bd7fbb0486b09ea5d41b2ca5b94fbf23d416b7be6ead7b87d307d529bf70f2730e72e42f2983799d263c8234941ec5be8a0d8992ff55a84
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-01 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 10:08 [rpms/bind] rawhide: Update to 9.20.1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox