fix: populate ldns submodule and add autotools to LDNS build stage

- Re-cloned zonemaster-ldns with --recurse-submodules so the bundled
  ldns C library source (including Changelog and configure.ac) is present
- Added autoconf, automake, libtool to Dockerfile.backend ldns-build stage
  so libtoolize + autoreconf can generate ldns/configure during make

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-21 08:33:38 +02:00
parent 8d4eaa1489
commit eaaa8f6a11
541 changed files with 138189 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
++_added.justazone.example. 3600 IN TXT "added"
~+a1.justazone.example. 3600 IN A 192.0.2.1
~-a1.justazone.example. 3600 IN A 192.0.2.2
~-a2.justazone.example. 3600 IN A 192.0.2.1
~+a2.justazone.example. 3600 IN A 192.0.2.2
~-a3.justazone.example. 3600 IN A 192.0.2.1
~+a3.justazone.example. 3600 IN A 192.0.2.2
~-a3.justazone.example. 3600 IN A 203.0.113.1
~+a3.justazone.example. 3600 IN A 203.0.113.2
~+delegation1.justazone.example. 3600 IN NS ns2.delegation1.justazone.example.
++delegation2.justazone.example. 3600 IN NS ns1.delegation2.justazone.example.
--delegation4.justazone.example. 3600 IN NS ns1.delegation3.justazone.example.
~+grow2to3.justazone.example. 3600 IN TXT "three"
~-shrink2to1.justazone.example. 3600 IN TXT "two"
~-shrink3to2.justazone.example. 3600 IN TXT "three"
--zz.justazone.example. 3600 IN TXT "top"
--zz.justazone.example. 3600 IN TXT "zZZZzzz"
+2 -2 ~7

View File

@@ -0,0 +1,15 @@
BaseName: 10-ldns-compare-zones
Version: 1.0
Description: Check ldns-compare-zone behaviour
CreationDate: Wed Oct 6 15:11:39 CEST 2021
Maintainer: Willem Toorop
Category:
Component:
Depends:
Help: 10-ldns-compare-zones.help
Pre:
Post:
Test: 10-ldns-compare-zones.test
AuxFiles: 10-ldns-compare-zones.zone1 10-ldns-compare-zones.zone2 10-ldns-compare-zones.diffs
Passed:
Failure:

View File

@@ -0,0 +1,4 @@
No arguments are used for this test.
The example tool ldns-compare-zone is used to compare two zone files with numerous differences.

View File

@@ -0,0 +1,19 @@
# #-- 05-nm.test --#
# source the master var file when it's there
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
# use .tpkg.var.test for in test variable passing
[ -f .tpkg.var.test ] && source .tpkg.var.test
# svnserve resets the path, you may need to adjust it, like this:
PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
LIB=../../lib/
export LD_LIBRARY_PATH=$LIB:$LD_LIBRARY_PATH
# get the libdns symbols
../../examples/ldns-compare-zones -as 10-ldns-compare-zones.zone1 10-ldns-compare-zones.zone2 > 10-ldns-compare-zones.out
diff 10-ldns-compare-zones.out 10-ldns-compare-zones.diffs
fail=$?
rm -f 10-ldns-compare-zones.out
exit $fail

View File

@@ -0,0 +1,31 @@
$ORIGIN justazone.example.
@ SOA @ hostmaster (
1
1800 ; refresh (30 minutes)
900 ; retry (15 minutes)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
; This delegation will grow to 2 records
; this change was undetected in ldns < 1.7.2
delegation1 NS ns1.delegation1
delegation3 NS ns1.delegation3
delegation4 NS ns1.delegation3
delegation5 NS ns1.delegation5
a1 A 192.0.2.2
a2 A 192.0.2.1
a3 A 192.0.2.1
A 198.51.100.1
A 203.0.113.1
shrink3to2 TXT one
TXT two
TXT three
shrink2to1 TXT one
TXT two
grow2to3 TXT one
TXT two
zz TXT top
TXT zZZZzzz

View File

@@ -0,0 +1,30 @@
$ORIGIN justazone.example.
@ SOA @ hostmaster (
1
1800 ; refresh (30 minutes)
900 ; retry (15 minutes)
604800 ; expire (1 week)
86400 ; minimum (1 day)
)
; This delegation will grow to 2 records
; this change was undetected in ldns < 1.7.2
delegation1 NS ns1.delegation1
NS ns2.delegation1
; delegation2 is not in zone1
delegation2 NS ns1.delegation2
delegation3 NS ns1.delegation3
delegation5 NS ns1.delegation5
a1 A 192.0.2.1
a2 A 192.0.2.2
a3 A 192.0.2.2
A 198.51.100.1
A 203.0.113.2
shrink3to2 TXT one
TXT two
shrink2to1 TXT one
grow2to3 TXT one
TXT two
TXT three
_added TXT added