summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2022-03-26 17:28:27 +0000
committerSam James <sam@gentoo.org>2022-03-27 00:24:07 +0000
commit0c75271342c1cc3e83f0c03dbb04b9e2096c7af5 (patch)
tree88b5fee87d0422cedebb1d79e71965114b79235a /net-dns
parentdev-util/build2: Move config.install.chroot="${D}" to src_install. (diff)
downloadgentoo-0c75271342c1cc3e83f0c03dbb04b9e2096c7af5.tar.gz
gentoo-0c75271342c1cc3e83f0c03dbb04b9e2096c7af5.tar.bz2
gentoo-0c75271342c1cc3e83f0c03dbb04b9e2096c7af5.zip
net-dns/unbound: specify dependency location from sysroot
configure needs to find the location of libevent and other build time and runtime dependencies from sysroot instead of build host to allow cross compilation. This can be replicated by having dev-libs/libevent not installed on the build host and cross compiling net-dns/unbound, leading to error like: .. ./configure .. --with-libevent=/usr ..--with-ssl=/usr --with-libexpat=/usr .. checking for libevent... configure: error: Cannot find the libevent library in /usr Bug: https://bugs.gentoo.org/836214 Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh> Package-Manager: Portage-3.0.30, Repoman-3.0.3 Closes: https://github.com/gentoo/gentoo/pull/24764 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/unbound/unbound-1.13.2-r1.ebuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/net-dns/unbound/unbound-1.13.2-r1.ebuild b/net-dns/unbound/unbound-1.13.2-r1.ebuild
index 8b892a13ee54..52208581e7b2 100644
--- a/net-dns/unbound/unbound-1.13.2-r1.ebuild
+++ b/net-dns/unbound/unbound-1.13.2-r1.ebuild
@@ -111,12 +111,12 @@ multilib_src_configure() {
--disable-rpath \
--enable-event-api \
--enable-ipsecmod \
- --with-libevent="${EPREFIX}"/usr \
- $(multilib_native_usex redis --with-libhiredis="${EPREFIX}/usr" --without-libhiredis) \
+ --with-libevent="${ESYSROOT}"/usr \
+ $(multilib_native_usex redis --with-libhiredis="${ESYSROOT}/usr" --without-libhiredis) \
--with-pidfile="${EPREFIX}"/run/unbound.pid \
--with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
- --with-ssl="${EPREFIX}"/usr \
- --with-libexpat="${EPREFIX}"/usr
+ --with-ssl="${ESYSROOT}"/usr \
+ --with-libexpat="${ESYSROOT}"/usr
# http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
# $(use_enable debug lock-checks) \