Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828109 - net-dns/ldns-utils - consolidate with net-libs/ldns (was: drill: error while loading shared libraries: libldns.so.2)
Summary: net-dns/ldns-utils - consolidate with net-libs/ldns (was: drill: error while ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Marc Schiffbauer
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-12-03 21:49 UTC by Mike Gilbert
Modified: 2023-04-26 18:31 UTC (History)
3 users (show)

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 Mike Gilbert gentoo-dev 2021-12-03 21:49:51 UTC
After upgrading to net-libs/ldns-1.8.0 and rebuilding net-dns/ldns-utils, drill fails to load.

drill: error while loading shared libraries: libldns.so.2: cannot open shared object file: No such file or directory

I also see this warning:

 * QA Notice: Unresolved soname dependencies:
 * 
 *      /usr/bin/drill: libldns.so.2

It appears that net-libs/ldns installs libldns.so.3.

Given that ldns and ldns-utils are built from the same source code, I would suggest consolidating them into a single package. This will avoid any possible issues with mismatched library versions.
Comment 1 Larry the Git Cow gentoo-dev 2021-12-04 15:58:39 UTC
The bug has been referenced in the following commit(s):

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

commit 2347bb98e3dc254b6af0a7601bfe2e93ffa241c9
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-03 22:53:25 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-04 15:58:14 +0000

    net-libs/ldns: install 'drill' command
    
    Bug: https://bugs.gentoo.org/828109
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-libs/ldns/ldns-1.8.0-r3.ebuild | 114 +++++++++++++++++++++++++++++++++++++
 1 file changed, 114 insertions(+)
Comment 2 matoro archtester 2021-12-04 17:30:34 UTC
Sorry, this is confusing for somebody who just wants access to the drill command.  Why does net-dns/ldns-utils still exist?  It's blocking upgrades across all my machines now because it pulls in net-libs/ldns but net-libs/ldns explicitly blocks net-dns/ldns-utils.
Comment 3 Mike Gilbert gentoo-dev 2021-12-04 21:12:04 UTC
net-dns/ldns-utils will be removed once a suitable version of net-libs/ldns has been marked stable.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-04 21:27:39 UTC
(In reply to matoro from comment #2)
> Sorry, this is confusing for somebody who just wants access to the drill
> command.  Why does net-dns/ldns-utils still exist?  It's blocking upgrades
> across all my machines now because it pulls in net-libs/ldns but
> net-libs/ldns explicitly blocks net-dns/ldns-utils.

It would help to see the output.

You're probably using an ~arch version of ldns-utils but.. not ldns?
Comment 5 matoro archtester 2021-12-04 21:33:41 UTC
(In reply to Sam James from comment #4)
> (In reply to matoro from comment #2)
> > Sorry, this is confusing for somebody who just wants access to the drill
> > command.  Why does net-dns/ldns-utils still exist?  It's blocking upgrades
> > across all my machines now because it pulls in net-libs/ldns but
> > net-libs/ldns explicitly blocks net-dns/ldns-utils.
> 
> It would help to see the output.
> 
> You're probably using an ~arch version of ldns-utils but.. not ldns?

No, with a global ~arch setting, this blocks upgrades.  Here's what the output looks like:

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

Calculating dependencies... done!
[ebuild     U  ] net-libs/ldns-1.8.0-r3:0/3::gentoo [1.8.0-r1:0/3::gentoo] USE="dane ecdsa vim-syntax -doc -ed448 -ed25519 -examples% -gost -python -static-libs" ABI_X86="(64) -32 (-x32)" PYTHON_SINGLE_TARGET="python3_9 -python3_8 -python3_10" 0 KiB
[ebuild     U  ] net-dns/ldns-utils-1.8.0-r1::gentoo [1.8.0::gentoo] USE="dane ssl -ecdsa -ed448 -ed25519 -examples -gost" 0 KiB
[blocks B      ] net-dns/ldns-utils ("net-dns/ldns-utils" is soft blocking net-libs/ldns-1.8.0-r3)

Total: 2 packages (2 upgrades), Size of downloads: 0 KiB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (net-dns/ldns-utils-1.8.0-r1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    net-dns/ldns-utils required by @selected 
    net-dns/ldns-utils

  (net-libs/ldns-1.8.0-r3:0/3::gentoo, ebuild scheduled for merge) pulled in by
    net-libs/ldns
    >=net-libs/ldns-1.8.0[dane?,ecdsa?,ed25519?,ed448?,gost?] (>=net-libs/ldns-1.8.0[dane]) required by (net-dns/ldns-utils-1.8.0-r1:0/0::gentoo, ebuild scheduled for merge) USE="dane ssl -ecdsa -ed25519 -ed448 -examples -gost" ABI_X86="(64)"


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages



This prevents @world upgrades.  Manually upgrading net-dns/ldns-utils does not fix it.  I'm going through and deselecting net-dns/ldns-utils and adding net-libs/ldns to world files now, which does resolve it.
Comment 6 Mike Gilbert gentoo-dev 2021-12-04 21:47:52 UTC
You will need to remove net-dns/ldns-utils from your world file.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-04 21:49:23 UTC
(In reply to Mike Gilbert from comment #6)
> You will need to remove net-dns/ldns-utils from your world file.

And if that doesn't work, share the new world upgrade output. But your error is specifically caused by it being in world, yep.
Comment 8 Mike Gilbert gentoo-dev 2021-12-04 21:54:52 UTC
To be clear, my intention is to force people to remove net-dns/ldns-utils.

When >=net-dns/ldns-1.8.0-r3 is marked stable, we should add an entry to package.mask explaining this.
Comment 9 Larry the Git Cow gentoo-dev 2021-12-04 22:09:46 UTC
The bug has been referenced in the following commit(s):

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

commit 13ca5ab7120da45cf867746a532b507e7f2d7d02
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-04 22:03:18 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-04 22:09:43 +0000

    net-libs/ldns: adjust blocker on net-dns/ldns-utils
    
    Bug: https://bugs.gentoo.org/828109
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-libs/ldns/{ldns-1.8.0-r3.ebuild => ldns-1.8.0-r4.ebuild} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

commit e7b21251455080016990aa8b9f19a2375c63e492
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-04 22:01:52 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-04 22:09:43 +0000

    net-dns/ldns-utils: add a stub version to facilitate upgrades
    
    It is likely that people have ldns-utils in @selected, so let's provide
    a stub version that depends on a the "consolidated" ldns package until
    we can last rites ldns-utils.
    
    Bug: https://bugs.gentoo.org/828109
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-dns/ldns-utils/ldns-utils-1.8.0-r2.ebuild | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
Comment 10 Mike Gilbert gentoo-dev 2021-12-04 22:10:32 UTC
That last round of changes should make ~arch upgrades smoother for the time being.
Comment 11 Matt Whitlock 2021-12-19 21:32:02 UTC
After net-libs/ldns-1.8.0-r4 was stabilized, now the stub is causing a blocker on a (stable) arm system.


# emerge -pqt1 net-libs/ldns net-dns/ldns-utils
[ebuild     U ] net-libs/ldns-1.8.0-r4 [1.8.0-r1]
[ebuild   R   ] net-dns/ldns-utils-1.7.1 
[blocks B     ] <net-dns/ldns-utils-1.8.0-r2 ("<net-dns/ldns-utils-1.8.0-r2" is soft blocking net-libs/ldns-1.8.0-r4)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (net-dns/ldns-utils-1.7.1:0/0::gentoo, ebuild scheduled for merge) pulled in by
    net-dns/ldns-utils
    net-dns/ldns-utils required by @selected 

  (net-libs/ldns-1.8.0-r4:0/3::gentoo, ebuild scheduled for merge) pulled in by
    net-libs/ldns
    >=net-libs/ldns-1.7.1[dane?,ecdsa?,ed25519?,ed448?,gost?] (>=net-libs/ldns-1.7.1[dane]) required by (net-dns/ldns-utils-1.7.1:0/0::gentoo, ebuild scheduled for merge) USE="dane ssl -ecdsa -ed25519 -ed448 -examples -gost"


Suggested remedy: The net-dns/ldns-utils-1.8.0-r2 stub package should have its KEYWORDS synchronized with those of the net-libs/ldns-1.8.0-r* packages.

Presumed workaround: Deselect net-dns/ldns-utils.
Comment 12 Larry the Git Cow gentoo-dev 2021-12-19 23:03:56 UTC
The bug has been closed via the following commit(s):

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

commit c70632e4e2ac22a21cfdfc544509ba29a2d460c9
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-19 23:02:23 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-19 23:03:52 +0000

    net-dns/ldns-utils: stabilize 1.8.0-r2
    
    Closes: https://bugs.gentoo.org/828109
    Bug: https://bugs.gentoo.org/828109
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-dns/ldns-utils/ldns-utils-1.8.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

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

commit c70632e4e2ac22a21cfdfc544509ba29a2d460c9
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2021-12-19 23:02:23 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2021-12-19 23:03:52 +0000

    net-dns/ldns-utils: stabilize 1.8.0-r2
    
    Closes: https://bugs.gentoo.org/828109
    Bug: https://bugs.gentoo.org/828109
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 net-dns/ldns-utils/ldns-utils-1.8.0-r2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 13 Mike Gilbert gentoo-dev 2021-12-19 23:05:18 UTC
Re-opening until ldns-utils is masked/removed.
Comment 14 Jernej Jakob 2023-04-26 10:23:10 UTC
net-dns/ldns-utils is still present and not masked.
I found it doesn't install any file, just pulls in ldns, so it's useless.
Even then I had to set USE "example" on net-libs/ldns in order for it to install all the utilities it has in examples.
Comment 15 Larry the Git Cow gentoo-dev 2023-04-26 18:31:03 UTC
The bug has been closed via the following commit(s):

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

commit 9c78295f66e7897331f464cb2060c52c384f9755
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-04-26 18:30:06 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-04-26 18:30:06 +0000

    profiles: mask net-dns/ldns-utils for removal
    
    Closes: https://bugs.gentoo.org/828109
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 profiles/package.mask | 5 +++++
 1 file changed, 5 insertions(+)