Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803497 - net-dns/getdns-1.7.0 depends on unbound
Summary: net-dns/getdns-1.7.0 depends on unbound
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-07-23 10:37 UTC by forrestfunk81
Modified: 2024-12-01 12:15 UTC (History)
3 users (show)

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


Attachments
emerge info (emerge.info,7.25 KB, application/x-info)
2021-07-23 10:39 UTC, forrestfunk81
Details
allow net-dns/unbound to be optional (getdns-1.7.0-r1.ebuild.unbound.patch,1.06 KB, patch)
2022-07-11 09:18 UTC, ayuayuayu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description forrestfunk81 2021-07-23 10:37:50 UTC
net-dns/getdns-1.7.0 depends on unbound even if the unbound use flag is disabled.

I only want to install the stubby DNS Privacy stub resolver and don't require a fully fledged DNS server like unbound. This worked with net-dns/getdns-1.5.2-r2 and previous versions. On other distros and OS's it seems also to be possible to install stubby standalone.

Why was unbound added as a hard dependency and why is it ignoring the use flag?

Reproducible: Always
Comment 1 forrestfunk81 2021-07-23 10:38:23 UTC
# USE="-unbound" emerge -vat getdns

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild     U  ] net-dns/getdns-1.7.0::gentoo [1.5.2-r2::gentoo] USE="filecaps getdns-query getdns-server-mon idn stubby -doc -examples% -gnutls -libev -libevent -libuv -static-libs -test% -unbound (-nettle%) (-threads%*)" 675 KiB
[ebuild  N     ]  net-dns/unbound-1.13.1-r1:0/8::gentoo  USE="ecdsa http2 -debug -dnscrypt -dnstap -ecs -gost -python -redis (-selinux) -static-libs -systemd -test -threads" PYTHON_SINGLE_TARGET="python3_9 -python3_8" 5.837 KiB
[ebuild  N     ]   net-dns/dnssec-root-20181220-r1::gentoo  18 KiB
[ebuild  N     ]    dev-perl/XML-XPath-1.420.0::gentoo  USE="-examples -test" 55 KiB
[ebuild  N     ]   acct-user/unbound-0-r1::gentoo  0 KiB
[ebuild  N     ]  acct-user/stubby-0-r1::gentoo  0 KiB
[nomerge       ] net-dns/unbound-1.13.1-r1:0/8::gentoo  USE="ecdsa http2 -debug -dnscrypt -dnstap -ecs -gost -python -redis (-selinux) -static-libs -systemd -test -threads" PYTHON_SINGLE_TARGET="python3_9 -python3_8" 
[ebuild  N     ]  acct-group/unbound-0-r1::gentoo  0 KiB
[nomerge       ] net-dns/getdns-1.7.0::gentoo [1.5.2-r2::gentoo] USE="filecaps getdns-query getdns-server-mon idn stubby -doc -examples% -gnutls -libev -libevent -libuv -static-libs -test% -unbound (-nettle%) (-threads%*)" 
[ebuild  N     ]  acct-group/stubby-0-r1::gentoo  0 KiB

Total: 8 packages (1 upgrade, 7 new), Size of downloads: 6.584 KiB

Would you like to merge these packages? [Yes/No]
Comment 2 forrestfunk81 2021-07-23 10:39:40 UTC
Created attachment 726007 [details]
emerge info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-07-23 19:16:54 UTC
Seems to be related to bug 704492. It was changed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b1c9bd8dbba6c44c08c50b20e7cc2111a5e1939.
Comment 4 Alix 2021-08-12 17:58:28 UTC
libunbound is a hard requirement for getdns 1.7.0, thus unbound package dependency.

https://github.com/getdnsapi/getdns#external-dependencies

I've tried building getdns/stubby without libunbound, it does not seem to be possible.
Comment 5 Alan Swanson 2021-09-09 19:12:39 UTC
To provide the libunbound library for use with stubby without the dependency bloat, unbound would need built with the "--with-libunbound-only" configure flag which would a need a fair bit of work on the net-dns/unbound ebuild for a libonly type flag. (Or a maybe a separate libunbound ebuild).
Comment 6 ayuayuayu 2022-07-11 09:18:25 UTC
Created attachment 790979 [details, diff]
allow net-dns/unbound to be optional

README.md mentions "stub resolution only mode":
https://github.com/getdnsapi/getdns/commit/276b4c6cd8cb420e127d946ac421f0530f4590b4

cmake ENABLE_STUB_ONLY default (for non-WIN32) changes from ON to OFF:
https://github.com/getdnsapi/getdns/commit/b455c3fecac82e0af50efba135bb07f8d405336b

i have not tested extensively, but stubby seems to work as expected.
Comment 7 Benny Pedersen 2022-11-30 18:04:03 UTC
if use flag idn it fails also, it cant find libidn2, when both libidn and libidn2 is installed

change idn to -idn then it compiles, but not solved the libidn2 problem

i did not create another ticket, but reported it here to hopefulle got it resolved
Comment 8 Larry the Git Cow gentoo-dev 2024-12-01 12:12:42 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df7eb9bcfa9ef003b6145b781a759cfad4739fcd

commit df7eb9bcfa9ef003b6145b781a759cfad4739fcd
Author:     Han Mertens <hanmertens@outlook.com>
AuthorDate: 2024-10-17 19:09:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-01 12:09:02 +0000

    net-dns/getdns: add 1.7.3
    
    Apart from the version bump, this
    - introduces the `minimal` USE flag to build in stub resolution mode
      only, removing the dependency on `net-dns/unbound` (bug 803497)
    - fixes installation paths of stubby (bugs 828724 and 857582)
    - fixes linking to `dev-libs/gmp` when linking to `net-libs/gnutls`; see
      https://github.com/gentoo/gentoo/pull/29459#pullrequestreview-1314483307
    
    Bug: https://bugs.gentoo.org/803497
    Closes: https://bugs.gentoo.org/828724
    Closes: https://bugs.gentoo.org/857582
    Signed-off-by: Han Mertens <hanmertens@outlook.com>
    Closes: https://github.com/gentoo/gentoo/pull/39022
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/getdns/Manifest                            |  1 +
 .../getdns/files/getdns-1.7.3-cmake-linking.patch  | 40 +++++++++
 .../getdns/files/stubby-0.4.3-install-dir.patch    | 28 +++++++
 net-dns/getdns/getdns-1.7.3.ebuild                 | 97 ++++++++++++++++++++++
 net-dns/getdns/metadata.xml                        |  1 +
 5 files changed, 167 insertions(+)