Hi, net-dns/unbound-1.13.2-r1 fails to cross compile to x86_64-linux-musl with the following error when libevent is installed in the destination root but not in the build host root: checking for libevent... configure: error: Cannot find the libevent library in /usr You can restart ./configure --with-libevent=no to use a builtin alternative. Please note that this alternative is not as capable as libevent when using large outgoing port ranges. !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-dns/unbound-1.13.2-r1/work/unbound-1.13.2-.default/config.log * ERROR: net-dns/unbound-1.13.2-r1::gentoo failed (configure phase): * econf failed This is related to the fact EPREFIX is used to specify the location of libevent on the build host root instead of ESYSROOT to specify the location of libevent on sysroot. emerge --info and build.log are attached. Reproducible: Always
Created attachment 767911 [details] emerge --info
Created attachment 767912 [details] build.log
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c75271342c1cc3e83f0c03dbb04b9e2096c7af5 commit 0c75271342c1cc3e83f0c03dbb04b9e2096c7af5 Author: Bertrand Jacquin <bertrand@jacquin.bzh> AuthorDate: 2022-03-26 17:28:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-03-27 00:24:07 +0000 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> net-dns/unbound/unbound-1.13.2-r1.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Thanks!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b600f444ebc8a6cdb9ea4162c88f0543cf2175bb commit b600f444ebc8a6cdb9ea4162c88f0543cf2175bb Author: Marc Schiffbauer <mschiff@gentoo.org> AuthorDate: 2022-03-27 09:39:52 +0000 Commit: Marc Schiffbauer <mschiff@gentoo.org> CommitDate: 2022-03-27 09:43:12 +0000 net-dns/unbound: fix #836214 for 1.14.0 and 1.15.0 Bug: https://bugs.gentoo.org/836214 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org> .../unbound/{unbound-1.14.0.ebuild => unbound-1.14.0-r1.ebuild} | 8 ++++---- net-dns/unbound/unbound-1.15.0.ebuild | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-)