public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/bind] f43: Make dnstap unittest passing on long directories
Date: Thu, 15 Oct 2026 17:14:10 GMT	[thread overview]
Message-ID: <179208445029.1.16116123087748933853.rpms-bind-eeca975d205f@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-15 17:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179208445029.1.16116123087748933853.rpms-bind-eeca975d205f@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox