Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895496 - net-libs/nghttp2: automagic dep on dev-libs/jansson, sys-apps/systemd
Summary: net-libs/nghttp2: automagic dep on dev-libs/jansson, sys-apps/systemd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-20 05:42 UTC by Sam James
Modified: 2023-03-03 22:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-20 05:42:24 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-20 05:42:39 UTC
tl;dr: automagic deps on jansson and systemd, maybe some others, spotted via iwdevtools
Comment 2 Bernard Cafarelli gentoo-dev 2023-03-03 21:49:12 UTC
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 '*' :)
Comment 3 Larry the Git Cow gentoo-dev 2023-03-03 22:38:38 UTC
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(-)