File 0379-Remove-remains-of-named.patch of Package erlang
From 1e24c78df960c3ab0dda392c1a68887f4369c02a Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Tue, 31 May 2022 12:06:11 +0200
Subject: [PATCH 2/2] Remove remains of 'named'
---
lib/kernel/test/inet_res_SUITE_data/run-ns | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/lib/kernel/test/inet_res_SUITE_data/run-ns b/lib/kernel/test/inet_res_SUITE_data/run-ns
index b1a92e9984..2ed7e50f85 100755
--- a/lib/kernel/test/inet_res_SUITE_data/run-ns
+++ b/lib/kernel/test/inet_res_SUITE_data/run-ns
@@ -26,8 +26,7 @@
## $0 IPAddress PortNum SubDir
##
## Helper script to run a very local name server for this test suite,
-## on a given port number, with a configuration
-## customized for the test suite.
+## on a given port number, with a test specific configuration.
##
## * Create a work directory ./SubDir, create a $CONF_FILE there
## that includes $INC_FILE that refers to the zone files.
@@ -35,7 +34,7 @@
## * Zopy zone files and $INC_FILE from `dirname $0`/SubDir to ./SubDir.
## * Start name server in ./SubDir with logging to $LOG_FILE there.
## * Wait for "quit" on stdin.
-## * Terminate named and wait for it.
+## * Terminate name server and wait for it.
##
## Prints status lines starting with tag and colon (think mail header):
## Error: have given up, no name server started
@@ -77,10 +76,8 @@ test -d "$SRCDIR" || \
test -f "$SRCDIR/$INC_FILE" || \
error "Missing file: $SRCDIR/$INC_FILE !"
-# Locate named and check version.
-# The bind-named name is used for tricking Apparmor and such
-# by copying/hardlinking the real named to that name.
-NS=named
+# Locate nsd and check version.
+NS=nsd
for n in /usr/sbin/nsd /usr/bin/nsd /usr/local/sbin/nsd /usr/local/bin/nsd
do
test -x "$n" && NS="$n" && break
--
2.35.3