public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] f43: Make dnstap unittest passing on long directories
@ 2026-10-15 17:14
0 siblings, 0 replies; only message in thread
From: @ 2026-10-15 17:14 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/bind
Branch : f43
Commit : eeca975d205f2f753f6939f43a8cfbdef80eba32
Author : Petr Menšík <pemensik@redhat.com>
Date : 2026-10-15T19:13:39+02:00
Stats : +31/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/bind/c/eeca975d205f2f753f6939f43a8cfbdef80eba32?branch=f43
Log:
Make dnstap unittest passing on long directories
---
diff --git a/bind-9.18-d-unittest-dnstap-relative.patch b/bind-9.18-d-unittest-dnstap-relative.patch
new file mode 100644
index 0000000..70d49e1
--- /dev/null
+++ b/bind-9.18-d-unittest-dnstap-relative.patch
@@ -0,0 +1,29 @@
+From d336eae0a45dc789627495c2e2e66dfd4d4f150a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Thu, 8 Oct 2026 20:22:02 +0200
+Subject: [PATCH] Use relative paths in dnstap socket name
+
+Sockets in sun_path are limited to shorter path. If the used path is too
+long, test will always fail. Use relative path only, do not depend on
+length of the parent directory.
+---
+ tests/dns/dnstap_test.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/tests/dns/dnstap_test.c b/tests/dns/dnstap_test.c
+index b153ba7..c01bea7 100644
+--- a/tests/dns/dnstap_test.c
++++ b/tests/dns/dnstap_test.c
+@@ -39,7 +39,8 @@
+ #include <tests/dns.h>
+
+ #define TAPFILE TESTS_DIR "/testdata/dnstap/dnstap.file"
+-#define TAPSOCK TESTS_DIR "/testdata/dnstap/dnstap.sock"
++/* Use relative path to work in long directory builds */
++#define TAPSOCK "testdata/dnstap/dnstap.sock"
+
+ #define TAPSAVED TESTS_DIR "/testdata/dnstap/dnstap.saved"
+ #define TAPTEXT TESTS_DIR "/testdata/dnstap/dnstap.text"
+--
+2.56.0
+
diff --git a/bind.spec b/bind.spec
index 2041041..b6bd842 100644
--- a/bind.spec
+++ b/bind.spec
@@ -154,6 +154,8 @@ Patch32: bind-9.18-partial-additional-records.patch
Patch33: bind-9.18-dig-idn-input-always.patch
# downstream only too
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
%{?systemd_ordering}
# https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-15 17:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 17:14 [rpms/bind] f43: Make dnstap unittest passing on long directories
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox