]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: put lib.rs into tarball 15938/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 28 Jul 2025 14:47:00 +0000 (16:47 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 29 Jul 2025 08:36:01 +0000 (10:36 +0200)
Plus some rearrangement is more like the dnsdist one

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/meson-dist-script.sh
pdns/recursordist/rec-rust-lib/meson.build

index da37fd59225bc3fac6679735abbdc5cec180bedf..890dfe732c0e915f9efc4c1f69490891b1d38eb2 100755 (executable)
@@ -22,14 +22,9 @@ tar -C "$MESON_SOURCE_ROOT" -hcf - $symlinks | tar -xf - -C "$MESON_PROJECT_DIST
 echo Running autoreconf -vi so distfile is still usable for autotools building
 # Run autoconf for people using autotools to build, this creates a configure sc
 autoreconf -vi
-
-# Generate man pages
-cd "$MESON_PROJECT_BUILD_ROOT"
-ninja pdns_recursor.1
-cp -vp *.1 "$MESON_PROJECT_DIST_ROOT"
-
 rm -rf "$MESON_PROJECT_DIST_ROOT"/autom4te.cache
 
+cd "$MESON_PROJECT_BUILD_ROOT"
 
 # Generate  a few files to reduce build dependencies
 echo 'If the below command generates an error, remove dnslabeltext.cc from source dir (remains of an autotools build?) and start again with a clean meson setup'
@@ -39,3 +34,10 @@ echo 'If the below command generates an error, remove effective_tld_names.dat an
 ninja pubsuffix.cc
 cp -vp pubsuffix.cc "$MESON_PROJECT_DIST_ROOT"
 
+# Generate the sources for our Rust-based library, lib.rs is needed by a pre-configure step on some build systems
+meson compile rec-rust-sources
+cp -vp "$MESON_SOURCE_ROOT"/rec-rust-lib/rust/src/lib.rs "$MESON_PROJECT_DIST_ROOT"/rec-rust-lib/rust/src/
+
+# Generate man pages
+meson compile man-pages
+cp -vp *.1 "$MESON_PROJECT_DIST_ROOT"
index a38f87c5eb0e79632191425ae9055cb4f2b081e0..98d812dbc0fe0a2a2ebf47b1ae33975255fbd9aa 100644 (file)
@@ -14,6 +14,7 @@ generated = [
 python = find_program('python3')
 
 recrust = custom_target(
+  'rec-rust-sources',
   command: [python, '@INPUT0@', '@SOURCE_ROOT@/rec-rust-lib', '@BUILD_ROOT@/rec-rust-lib'],
   input: sources,
   output: generated,