diff options
author | Oto Šťáva <oto.stava@nic.cz> | 2024-05-02 13:05:27 +0200 |
---|---|---|
committer | Oto Šťáva <oto.stava@nic.cz> | 2024-05-02 13:05:27 +0200 |
commit | 9fccba0f06a891fd5e0c6f77110f48ea46c526de (patch) | |
tree | a110247503ce422d501f616323e71d90f6b58646 | |
parent | Merge !1536: distro/pkg/arch: fix after they renamed a dependency (diff) | |
parent | Merge branch 'macos-fix' into 'master' (diff) | |
download | knot-resolver-9fccba0f06a891fd5e0c6f77110f48ea46c526de.tar.xz knot-resolver-9fccba0f06a891fd5e0c6f77110f48ea46c526de.zip |
Merge remote-tracking branch 'origin/master' into 6.0
-rw-r--r-- | .github/workflows/macOS.yaml | 7 | ||||
-rw-r--r-- | modules/bogus_log/meson.build | 2 | ||||
-rw-r--r-- | modules/dnstap/meson.build | 3 | ||||
-rw-r--r-- | modules/edns_keepalive/meson.build | 2 | ||||
-rw-r--r-- | modules/extended_error/meson.build | 4 | ||||
-rw-r--r-- | modules/hints/meson.build | 5 | ||||
-rw-r--r-- | modules/http/meson.build | 2 | ||||
-rw-r--r-- | modules/meson.build | 7 | ||||
-rw-r--r-- | modules/nsid/meson.build | 5 | ||||
-rw-r--r-- | modules/refuse_nord/meson.build | 2 | ||||
-rw-r--r-- | modules/stats/meson.build | 4 | ||||
-rw-r--r-- | tests/unit/meson.build | 7 | ||||
-rw-r--r-- | utils/cache_gc/meson.build | 2 |
13 files changed, 27 insertions, 25 deletions
diff --git a/.github/workflows/macOS.yaml b/.github/workflows/macOS.yaml index c9970645..f7fe0907 100644 --- a/.github/workflows/macOS.yaml +++ b/.github/workflows/macOS.yaml @@ -27,12 +27,13 @@ jobs: git clone -b ${KNOT_DNS_VERSION} https://gitlab.nic.cz/knot/knot-dns.git cd knot-dns autoreconf -fi - ./configure --disable-static --disable-fastparser --disable-documentation --disable-daemon --disable-utilities --with-lmdb=no + ./configure --prefix=${HOME}/.local/usr --disable-static --disable-fastparser --disable-documentation --disable-daemon --disable-utilities --with-lmdb=no make -j2 install cd .. - name: Build resolver run: | + export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:${HOME}/.local/usr/lib/pkgconfig" meson build_darwin --default-library=static --buildtype=debugoptimized --prefix=${HOME}/.local/usr -Dc_args='-fno-omit-frame-pointer' ninja -C build_darwin -v install @@ -46,4 +47,6 @@ jobs: env: MALLOC_CHECK_: 3 MALLOC_PERTURB_: 223 - run: echo "quit()" | ${HOME}/.local/usr/sbin/kresd -a 127.0.0.1@53535 . + run: | + export DYLD_FALLBACK_LIBRARY_PATH="${DYLD_FALLBACK_LIBRARY_PATH}:${HOME}/.local/usr/lib/" + echo "quit()" | ${HOME}/.local/usr/sbin/kresd -a 127.0.0.1@53535 . diff --git a/modules/bogus_log/meson.build b/modules/bogus_log/meson.build index e2faed58..3fa8d3cf 100644 --- a/modules/bogus_log/meson.build +++ b/modules/bogus_log/meson.build @@ -9,7 +9,7 @@ c_src_lint += bogus_log_src bogus_log_mod = shared_module( 'bogus_log', bogus_log_src, - dependencies: libknot, + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/modules/dnstap/meson.build b/modules/dnstap/meson.build index e8a94bf1..038bf3e3 100644 --- a/modules/dnstap/meson.build +++ b/modules/dnstap/meson.build @@ -43,11 +43,10 @@ if build_dnstap dnstap_mod = shared_module( 'dnstap', dnstap_src, - dependencies: [ + dependencies: mod_deps + [ declare_dependency(sources: dnstap_pb), libfstrm, libprotobuf_c, - libknot, ], include_directories: mod_inc_dir, name_prefix: '', diff --git a/modules/edns_keepalive/meson.build b/modules/edns_keepalive/meson.build index d125ec45..8370cdb1 100644 --- a/modules/edns_keepalive/meson.build +++ b/modules/edns_keepalive/meson.build @@ -9,7 +9,7 @@ c_src_lint += edns_keepalive_src edns_keepalive_mod = shared_module( 'edns_keepalive', edns_keepalive_src, - dependencies: libknot, + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/modules/extended_error/meson.build b/modules/extended_error/meson.build index 15a1772f..9de514af 100644 --- a/modules/extended_error/meson.build +++ b/modules/extended_error/meson.build @@ -9,9 +9,7 @@ c_src_lint += extended_error_src extended_error_mod = shared_module( 'extended_error', extended_error_src, - dependencies: [ - libknot, - ], + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/modules/hints/meson.build b/modules/hints/meson.build index b8379181..d5046cb4 100644 --- a/modules/hints/meson.build +++ b/modules/hints/meson.build @@ -9,10 +9,7 @@ c_src_lint += hints_src hints_mod = shared_module( 'hints', hints_src, - dependencies: [ - libknot, - luajit, - ], + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/modules/http/meson.build b/modules/http/meson.build index a36e9ebd..9d20c929 100644 --- a/modules/http/meson.build +++ b/modules/http/meson.build @@ -45,7 +45,7 @@ install_subdir( ) # auxiliary debug library for HTTP module - doesn't compile on Cygwin -if openssl.found() and host_machine.system() != 'cygwin' +if openssl.found() and host_machine.system() not in [ 'cygwin', 'darwin' ] debug_opensslkeylog_mod = shared_module( 'debug_opensslkeylog', ['debug_opensslkeylog.c'], diff --git a/modules/meson.build b/modules/meson.build index 73444e99..5ffe95f8 100644 --- a/modules/meson.build +++ b/modules/meson.build @@ -36,6 +36,13 @@ integr_tests += [ mod_inc_dir = include_directories('..', '../contrib', luajit.get_pkgconfig_variable('includedir')) +mod_deps = [ + contrib_dep, + libknot, + libuv, + luajit, +] + # handle more complex C/LUA modules separately subdir('bogus_log') # cookies module is not currently used diff --git a/modules/nsid/meson.build b/modules/nsid/meson.build index 354e70b9..3c418bc9 100644 --- a/modules/nsid/meson.build +++ b/modules/nsid/meson.build @@ -9,10 +9,7 @@ c_src_lint += nsid_src nsid_mod = shared_module( 'nsid', nsid_src, - dependencies: [ - libknot, - luajit, - ], + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/modules/refuse_nord/meson.build b/modules/refuse_nord/meson.build index 5142ded6..7dc8b888 100644 --- a/modules/refuse_nord/meson.build +++ b/modules/refuse_nord/meson.build @@ -13,7 +13,7 @@ c_src_lint += refuse_nord_src refuse_nord_mod = shared_module( 'refuse_nord', refuse_nord_src, - dependencies: libknot, + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/modules/stats/meson.build b/modules/stats/meson.build index cb4ccd68..e1f4a49c 100644 --- a/modules/stats/meson.build +++ b/modules/stats/meson.build @@ -14,9 +14,7 @@ integr_tests += [ stats_mod = shared_module( 'stats', stats_src, - dependencies: [ - libknot, - ], + dependencies: mod_deps, include_directories: mod_inc_dir, name_prefix: '', install: true, diff --git a/tests/unit/meson.build b/tests/unit/meson.build index b10789cc..747f1d3b 100644 --- a/tests/unit/meson.build +++ b/tests/unit/meson.build @@ -10,7 +10,7 @@ mock_cmodule_mod = shared_module( 'mock_cmodule', mock_cmodule_src, name_prefix: '', - dependencies: libknot, + dependencies: mod_deps, include_directories: mod_inc_dir, ) @@ -20,10 +20,11 @@ foreach unit_test : unit_tests unit_test[0], unit_test[1], dependencies: [ + cmocka, contrib_dep, - libkres_dep, libknot, - cmocka, + libkres_dep, + libuv, lmdb, ], ) diff --git a/utils/cache_gc/meson.build b/utils/cache_gc/meson.build index 4c82b8da..6ed86afe 100644 --- a/utils/cache_gc/meson.build +++ b/utils/cache_gc/meson.build @@ -18,6 +18,8 @@ if build_utils contrib_dep, libkres_dep, libknot, + libuv, + lmdb, ], install: true, install_dir: get_option('sbindir'), |