From: Chris Hofstaedtler Date: Mon, 2 Jun 2025 10:54:27 +0000 (+0200) Subject: dnsdist: debian: use luajit when possible X-Git-Tag: dnsdist-2.0.0-beta1~58^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2e13a21ad5282af1d1521e852fb511e7635fde9;p=thirdparty%2Fpdns.git dnsdist: debian: use luajit when possible Use luajit on arm64 amd64, otherwise keep lua5.3. luajit in Ubuntu jammy and Debian bookworm should be new enough to not need version constraints anymore. Signed-off-by: Chris Hofstaedtler --- diff --git a/builder-support/debian/dnsdist/debian-bookworm/control b/builder-support/debian/dnsdist/debian-bookworm/control index 3521b218b9..c3b781180f 100644 --- a/builder-support/debian/dnsdist/debian-bookworm/control +++ b/builder-support/debian/dnsdist/debian-bookworm/control @@ -13,8 +13,7 @@ Build-Depends: debhelper (>= 10), libfstrm-dev, libgnutls28-dev, liblmdb-dev, - libluajit-5.1-dev [!arm64 !s390x], - liblua5.3-dev [arm64 s390x], + libluajit-5.1-dev [amd64 arm64] | liblua5.3-dev, libnghttp2-dev, libre2-dev, libsnmp-dev, diff --git a/builder-support/debian/dnsdist/debian-bookworm/rules b/builder-support/debian/dnsdist/debian-bookworm/rules index 5238445ca4..fa256fc615 100755 --- a/builder-support/debian/dnsdist/debian-bookworm/rules +++ b/builder-support/debian/dnsdist/debian-bookworm/rules @@ -23,8 +23,8 @@ else MESON_ARGS += -Dxsk=disabled endif -# Only disable luajit on arm64 -ifneq ($(DEB_HOST_ARCH),arm64) +# Build with luajit if it is installable +ifneq (,$(wildcard /usr/lib/*/pkgconfig/luajit.pc)) MESON_ARGS += -Dlua=luajit else MESON_ARGS += -Dlua=lua