Meson expert needed for Kea packaging...

Philip Prindeville philipp_subx at redfish-solutions.com
Sun Oct 19 15:09:21 PDT 2025



> On Oct 19, 2025, at 1:49 PM, Christian Marangi (Ansuel) <ansuelsmth at gmail.com> wrote:
> 
> Il giorno dom 19 ott 2025 alle ore 21:37 Philip Prindeville via
> openwrt-devel <openwrt-devel at lists.openwrt.org> ha scritto:
>> 
>> The sender domain has a DMARC Reject/Quarantine policy which disallows
>> sending mailing list messages using the original "From" header.
>> 
>> To mitigate this problem, the original message has been wrapped
>> automatically by the mailing list software.
>> 
>> 
>> ---------- Forwarded message ----------
>> From: Philip Prindeville <philipp_subx at redfish-solutions.com>
>> To: openwrt-devel <openwrt-devel at lists.openwrt.org>
>> Cc:
>> Bcc:
>> Date: Sun, 19 Oct 2025 13:35:29 -0600
>> Subject: Meson expert needed for Kea packaging...
>> Hi all,
>> 
>> The latest versions of Kea fail to build for OpenWRT because, even though it’s explicitly flagged as a cross-build, it attempts to run the test suite anyway.
>> 
>> Anyone able to look at this and maybe come up with a patch for upstream to fix it?
>> 
> 
> Hi,
> I recently applied some patch for Meson... Is this a regression or you
> are trying to update it
> and with the new version there is this compilation error?
> 
> If it's something for the new version, meson provide an API to
> understand if it's possible
> to run the test suite on the machine... Can you link an issue on
> github for this?


In 2.6.4 (where we are now) it used Makefiles and we patched the Makefiles to not run the tests.

3.x moves to Meson, so the patch is no longer useful.  But we need an analogous patch to fix this:

Run-time dependency GTest found: NO (tried pkgconfig and system)
Looking for a fallback subproject for the dependency gtest
Downloading gtest source from https://github.com/google/googletest/archive/refs/tags/v1.15.2.tar.gz
Download size: 872667
Downloading: ..........
Downloading gtest patch from https://wrapdb.mesonbuild.com/v2/gtest_1.15.2-4/get_patch
Download size: 2817
Downloading: ..........

Executing subproject gtest  
gtest| Project name: gtest
gtest| Project version: 1.15.2
gtest| C++ compiler for the host machine: x86_64-openwrt-linux-musl-g++ (gcc 14.3.0 "x86_64-openwrt-linux-musl-g++ (OpenWrt GCC 14.3.0 r30067-69dce4f298) 14.3.0")
gtest| C++ linker for the host machine: x86_64-openwrt-linux-musl-g++ ld.bfd 2.42
gtest| C++ compiler for the build machine: /home/philipp/lede/staging_dir/host/bin/g++ (gcc 13.3.0 "g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0")
gtest| C++ linker for the build machine: /home/philipp/lede/staging_dir/host/bin/g++ ld.bfd 2.42
gtest| Dependency threads found: YES unknown (cached)
gtest| Build targets in project: 8
gtest| Subproject gtest finished.

Dependency gtest from subproject subprojects/googletest-1.15.2 found: YES 1.15.2
Has header "boost/asio/ssl.hpp" with dependency boost: YES  Message: Using OpenSSL.
Program python3 found: YES (/home/philipp/lede/staging_dir/host/bin/python3)

../../../../build_dir/target-x86_64_musl/kea-3.1.2/meson.build:371:13: ERROR: Can not run test applications in this cross environment.

A full log can be found at /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/openwrt-build/meson-logs/meson-log.txt
make[2]: *** [Makefile:294: /home/philipp/lede/build_dir/target-x86_64_musl/kea-3.1.2/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 1
make[2]: Leaving directory '/home/philipp/lede/feeds/packages/net/kea'
time: package/feeds/packages/kea/compile#3.18#0.64#5.50
    ERROR: package/feeds/packages/kea failed to build.
make[1]: *** [package/Makefile:183: package/feeds/packages/kea/compile] Error 1
make[1]: Leaving directory '/home/philipp/lede'
make: *** [/home/philipp/lede/include/toplevel.mk:233: package/kea/compile] Error 2
make: Leaving directory '/home/philipp/lede’


Looking at the files:

https://github.com/isc-projects/kea/blob/master/meson.build#L105

https://github.com/isc-projects/kea/blob/master/meson.build#L304-L309

https://github.com/isc-projects/kea/blob/master/meson.build#L371-L379

https://github.com/isc-projects/kea/blob/master/meson.build#L919-L923

https://github.com/isc-projects/kea/blob/master/src/lib/config_backend/tests/meson.build#L1-L3

it’s not clear to me why it’s trying to run the tests.






More information about the openwrt-devel mailing list