lix not finding the pegtl dependency
Hi all, I am trying to package lix (https://lix.systems/). I managed to find almost all dependencies, I had to build some myself. Now I am stuck where I install the pegtl-devel package, but this dependency is not found during the "meson setup build".
[ 15s] + meson setup build --prefix=/home/abuild/rpmbuild/BUILD/lix-2.91.0/outputs/out [ 16s] The Meson build system [ 16s] Version: 1.5.1 [ 16s] Source dir: /home/abuild/rpmbuild/BUILD/lix-2.91.0 [ 16s] Build dir: /home/abuild/rpmbuild/BUILD/lix-2.91.0/build [ 16s] Build type: native build [ 16s] Project name: lix [ 16s] Project version: [ 16s] C++ compiler for the host machine: c++ (gcc 13.3.1 "c++ (SUSE Linux) 13.3.1 20240807 [revision 9d368828bd4d04ce507e02a581be850fca849fae]") [ 16s] C++ linker for the host machine: c++ ld.bfd 2.42.0.20240130-4 [ 16s] Host machine cpu family: x86_64 [ 16s] Host machine cpu: x86_64 [ 16s] Program doxygen found: YES (/usr/bin/doxygen) [ 16s] Program bash found: YES (/usr/bin/bash) [ 16s] Found pkg-config: YES (/usr/bin/pkg-config) 2.2.0 [ 16s] Run-time dependency rapidcheck found: YES [ 16s] Message: canonical Nix system name: x86_64-linux [ 16s] Found CMake: /usr/bin/cmake (3.30.2) [ 16s] Run-time dependency bdw-gc found: NO (tried pkgconfig and cmake) [ 16s] Run-time dependency Boost (found: container) found: YES 1.85.0 (/usr) [ 16s] Run-time dependency libcpuid found: YES 0.6.5 [ 16s] Run-time dependency libseccomp found: YES 2.5.5 [ 16s] Run-time dependency libarchive found: YES 3.7.4 [ 16s] Run-time dependency libbrotlicommon found: YES 1.1.0 [ 16s] Run-time dependency libbrotlidec found: YES 1.1.0 [ 16s] Run-time dependency libbrotlienc found: YES 1.1.0 [ 16s] Run-time dependency libcrypto found: YES 3.1.4 [ 16s] Run-time dependency aws-cpp-sdk-core found: YES 1.11.382 [ 16s] Run-time dependency aws-cpp-sdk-transfer found: YES 1.11.382 [ 16s] Run-time dependency aws-cpp-sdk-s3 found: YES 1.11.382 [ 16s] Run-time dependency sqlite3 found: YES 3.46.0 [ 16s] Run-time dependency libsodium found: YES 1.0.20 [ 16s] Run-time dependency libcurl found: YES 8.9.0 [ 16s] Run-time dependency libeditline found: YES 1.17.1 [ 16s] Run-time dependency lowdown found: YES 1.1.0 [ 16s] Dependency rapidcheck found: YES unknown (cached) [ 16s] Run-time dependency GTest found: YES 1.14.0 [ 16s] Run-time dependency gtest_main found: YES 1.14.0 [ 16s] Run-time dependency GMock found: YES 1.14.0 [ 16s] Run-time dependency gmock_main found: YES 1.14.0 [ 16s] Run-time dependency toml11 found: YES 3.7.1 [ 16s] Run-time dependency pegtl found: NO (tried cmake) [ 16s] [ 16s] meson.build:314:8: ERROR: Dependency "pegtl" not found, tried cmake [ 16s]
As the package originates in the Nix ecosystem, my guess it that it looks in the wrong place due to different packaging. Is there any way I can tell meson (or the underlying cmake) where it can find this dependency? The dependency is defined in line 314 and contains "taocpp::pegtl".
https://git.lix.systems/lix-project/lix/src/branch/main/meson.build
The package puts the files into "tao/pegtl" (without the "cpp"), not sure if that is the reason it is not found? Here is the link to my package:
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_dev...
(Currently unresolvable due to me trying to package aws-sdk-cpp as I missed that it is already available in Cloud:Tools...). Thanks in advance! Kind Regards, Johannes
Hi again, On 14.08.24 18:46 Johannes Kastl wrote:
[ 16s] Run-time dependency pegtl found: NO (tried cmake) [ 16s] [ 16s] meson.build:314:8: ERROR: Dependency "pegtl" not found, tried cmake
With some help from upstream I came up with this SR, which fixes the issue with lix. This means, with these changes lix finds the pegtl library during "meson setup build..." https://build.opensuse.org/request/show/1194439 Kind Regards, Johannes
participants (1)
-
Johannes Kastl