Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836214 - net-dns/unbound-1.13.2-r1 - configure: error: Cannot find the libevent library in /usr
Summary: net-dns/unbound-1.13.2-r1 - configure: error: Cannot find the libevent librar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-03-26 19:10 UTC by Bertrand Jacquin
Modified: 2022-03-27 09:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info.log,2.81 KB, text/x-log)
2022-03-26 19:12 UTC, Bertrand Jacquin
Details
build.log (build.log,18.11 KB, text/x-log)
2022-03-26 19:12 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2022-03-26 19:10:03 UTC
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
Comment 1 Bertrand Jacquin 2022-03-26 19:12:22 UTC
Created attachment 767911 [details]
emerge --info
Comment 2 Bertrand Jacquin 2022-03-26 19:12:32 UTC
Created attachment 767912 [details]
build.log
Comment 3 Larry the Git Cow gentoo-dev 2022-03-27 00:24:21 UTC
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(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-27 00:38:05 UTC
Thanks!
Comment 5 Larry the Git Cow gentoo-dev 2022-03-27 09:43:44 UTC
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(-)