configure.ac has: ``` AC_ARG_WITH([jansson], [AS_HELP_STRING([--with-jansson], [Use jansson [default=check]])], [request_jansson=$withval], [request_jansson=check]) ``` but the ebuild currently only depends on it for USE=hpack-tools. I don't have that enabled but it's still linked against jansson for me: ``` $ emerge -pvO net-libs/nghttp2 These are the packages that would be merged, in order: [ebuild R ] net-libs/nghttp2-1.51.0:0/1.14::gentoo USE="xml -cxx -debug -hpack-tools -jemalloc -static-libs -test -utils*" ABI_X86="32 (64) (-x32)" 0 KiB Total: 1 package (1 reinstall), Size of downloads: 0 KiB $ lddtree /usr/bin/nghttp nghttp => /usr/bin/nghttp (interpreter => /lib64/ld-linux-x86-64.so.2) libnghttp2.so.14 => /usr/lib64/libnghttp2.so.14 libxml2.so.2 => /usr/lib64/libxml2.so.2 libicuuc.so.72 => /usr/lib64/libicuuc.so.72 libicudata.so.72 => /usr/lib64/libicudata.so.72 ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 libev.so.4 => /usr/lib64/libev.so.4 libssl.so.3 => /usr/lib64/libssl.so.3 libcrypto.so.3 => /usr/lib64/libcrypto.so.3 libjansson.so.4 => /usr/lib64/libjansson.so.4 libz.so.1 => /usr/lib64/libz.so.1 libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6 libm.so.6 => /usr/lib64/libm.so.6 libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/13/libgcc_s.so.1 libc.so.6 => /usr/lib64/libc.so.6 ``` /usr/bin/nghttpx is also linked against systemd for me.
tl;dr: automagic deps on jansson and systemd, maybe some others, spotted via iwdevtools
Interesting, I would have thought --disable-hpack-tools would imply --without-jansson (and probably --disable-app to --without-systemd, though I do not use systemd). Adding both - by the way I wonder a bit how you had binaries with USE=-utils until I spotted the '*' :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a31eceb1d95b0a7e5c80736e56511aa59cc78c2 commit 7a31eceb1d95b0a7e5c80736e56511aa59cc78c2 Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2023-03-03 22:35:22 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2023-03-03 22:38:34 +0000 net-libs/nghttp2: fix automagic deps and cross-compile failure Closes: https://bugs.gentoo.org/885485 Closes: https://bugs.gentoo.org/895496 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> net-libs/nghttp2/Manifest | 1 + net-libs/nghttp2/nghttp2-1.51.0-r1.ebuild | 79 +++++++++++++++++++++++++++++++ net-libs/nghttp2/nghttp2-9999.ebuild | 9 ++-- 3 files changed, 86 insertions(+), 3 deletions(-)