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,14 @@
BaseName: 01-compile
Version: 1.0
Description: compile ldns
CreationDate: Fri Oct 19 13:09:03 CEST 2005
Maintainer: Miek Gieben
Category:
Component:
Depends:
Pre:
Post:
Test: 01-compile.test
AuxFiles:
Passed:
Failure:

View File

@@ -0,0 +1,4 @@
Synopsis: tpkg -a ../../ exe 01-compile.tpkg
-a path: path is where the source lives
as the test is executed in it own subsdir it will
need ../../ is you use a relative path

View File

@@ -0,0 +1,61 @@
[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
export PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
# first arg is the build dir
TPKG_BUILD=$1
mkdir -p $TPKG_BUILD/python-site
cd $TPKG_BUILD
conf=`which autoreconf` ||\
conf=`which autoreconf-2.59` ||\
conf=`which autoreconf-2.61` ||\
conf=`which autoreconf259`
# mk=`which gmake` ||\ We are BSD compatible nowadays
mk=`which make`
loot=`which glibtoolize` ||\
loot=`which libtoolize`
echo "configure: $conf"
echo "toolize: $loot"
echo "make: $mk"
if [ ! $mk ] || [ ! $conf ] || [ ! $loot ] ; then
echo "Error, one or more build tools not found, aborting"
exit 1
fi;
if [ -e Makefile ]; then
$mk distclean
fi
( $loot -c --install \
|| $loot -c \
|| $loot \
) && $conf \
&& ( ( ( ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --enable-sha2 --enable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --disable-sha2 --enable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --enable-sha2 --disable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --disable-sha2 --disable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --disable-dane-ta-usage --enable-sha2 --enable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --disable-dane-ta-usage --disable-sha2 --enable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --disable-dane-ta-usage --enable-sha2 --disable-gost --with-drill --with-examples --with-pyldns \
|| ./configure PYTHON_SITE_PKG=$TPKG_BUILD/python-site --disable-dane-ta-usage --disable-sha2 --disable-gost --with-drill --with-examples --with-pyldns
) && $mk && $mk install-pyldns && make install-pyldnsx
) \
|| ( ( ./configure --enable-sha2 --enable-gost --with-drill --with-examples \
|| ./configure --disable-sha2 --enable-gost --with-drill --with-examples \
|| ./configure --enable-sha2 --disable-gost --with-drill --with-examples \
|| ./configure --disable-sha2 --disable-gost --with-drill --with-examples \
|| ./configure --enable-sha2 --enable-gost --with-drill --with-examples --disable-dane-ta-usage \
|| ./configure --disable-sha2 --enable-gost --with-drill --with-examples --disable-dane-ta-usage \
|| ./configure --enable-sha2 --disable-gost --with-drill --with-examples --disable-dane-ta-usage \
|| ./configure --disable-sha2 --disable-gost --with-drill --with-examples --disable-dane-ta-usage
) && $mk && (rmdir python-site || true)
)
)