Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/unbound/
Date: Sun, 27 Mar 2022 00:24:25
Message-Id: 1648340647.0c75271342c1cc3e83f0c03dbb04b9e2096c7af5.sam@gentoo
1 commit: 0c75271342c1cc3e83f0c03dbb04b9e2096c7af5
2 Author: Bertrand Jacquin <bertrand <AT> jacquin <DOT> bzh>
3 AuthorDate: Sat Mar 26 17:28:27 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 27 00:24:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c752713
7
8 net-dns/unbound: specify dependency location from sysroot
9
10 configure needs to find the location of libevent and other build time
11 and runtime dependencies from sysroot instead of build host to allow
12 cross compilation.
13
14 This can be replicated by having dev-libs/libevent not installed on the
15 build host and cross compiling net-dns/unbound, leading to error like:
16
17 ..
18 ./configure .. --with-libevent=/usr ..--with-ssl=/usr --with-libexpat=/usr
19 ..
20 checking for libevent... configure: error: Cannot find the libevent library in /usr
21
22 Bug: https://bugs.gentoo.org/836214
23 Signed-off-by: Bertrand Jacquin <bertrand <AT> jacquin.bzh>
24 Package-Manager: Portage-3.0.30, Repoman-3.0.3
25 Closes: https://github.com/gentoo/gentoo/pull/24764
26 Signed-off-by: Sam James <sam <AT> gentoo.org>
27
28 net-dns/unbound/unbound-1.13.2-r1.ebuild | 8 ++++----
29 1 file changed, 4 insertions(+), 4 deletions(-)
30
31 diff --git a/net-dns/unbound/unbound-1.13.2-r1.ebuild b/net-dns/unbound/unbound-1.13.2-r1.ebuild
32 index 8b892a13ee54..52208581e7b2 100644
33 --- a/net-dns/unbound/unbound-1.13.2-r1.ebuild
34 +++ b/net-dns/unbound/unbound-1.13.2-r1.ebuild
35 @@ -111,12 +111,12 @@ multilib_src_configure() {
36 --disable-rpath \
37 --enable-event-api \
38 --enable-ipsecmod \
39 - --with-libevent="${EPREFIX}"/usr \
40 - $(multilib_native_usex redis --with-libhiredis="${EPREFIX}/usr" --without-libhiredis) \
41 + --with-libevent="${ESYSROOT}"/usr \
42 + $(multilib_native_usex redis --with-libhiredis="${ESYSROOT}/usr" --without-libhiredis) \
43 --with-pidfile="${EPREFIX}"/run/unbound.pid \
44 --with-rootkey-file="${EPREFIX}"/etc/dnssec/root-anchors.txt \
45 - --with-ssl="${EPREFIX}"/usr \
46 - --with-libexpat="${EPREFIX}"/usr
47 + --with-ssl="${ESYSROOT}"/usr \
48 + --with-libexpat="${ESYSROOT}"/usr
49
50 # http://unbound.nlnetlabs.nl/pipermail/unbound-users/2011-April/001801.html
51 # $(use_enable debug lock-checks) \