bind-tools/bind-tools[readline] really don't want strict readline, but try libedit first, readline next. This reflected in configure.in|configure.ac: "for readline in -ledit -lreadline" So, if libedit was installed, nslookup & nsupdate (at least) will be linked to libedit automagically (and not readline). So, on maintainer's select, need to select: 1) remove " -ledit" from configure.in (configure.ac) (simpliest); 2) add "libedit" useflag and dependences, exclusive to readline; 3) something else. Fastest solution - prepare: sed -i -e 's: -ledit : :' "${S}"/configure.* Reproducible: Always Steps to Reproduce: 1. emerge libedit && USE=readline emerge bind-tools 2. ldd /usr/bin/nslookup|grep libedit 3.
Created attachment 483314 [details, diff] patch to add libedit USE flag and explicitly specify readline library Attached is a patch implementing OP's alternative #2. This adds a "libedit" USE flag, which is preferred over the existing "readline" USE flag, and explicitly specifies the selected readline implementation in the --with-readline= configure option. For brevity, the attached patch modifies only the latest version of net-dns/bind-tools, but a similar/identical change should be applied to the ebuilds for the older versions as well.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99515b1d62992e0739cc43f7138ff0ba450e80a7 commit 99515b1d62992e0739cc43f7138ff0ba450e80a7 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2018-03-01 23:30:57 +0000 Commit: Christian Ruppert <idl0r@gentoo.org> CommitDate: 2018-04-19 11:11:01 +0000 net-dns/bind-tools: 9.12.1 version bump Closes: https://bugs.gentoo.org/649294 Closes: https://bugs.gentoo.org/607400 Closes: https://bugs.gentoo.org/633534 Bug: https://bugs.gentoo.org/649326 Bug: https://bugs.gentoo.org/592560 Package-Manager: Portage-2.3.24, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7330 net-dns/bind-tools/Manifest | 1 + net-dns/bind-tools/bind-tools-9.12.1.ebuild | 143 ++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+)