commit:     9b7844d3644f110e48232114171c36a4bc311d71
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 22 17:49:12 2020 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Apr 22 17:49:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b7844d3

net-dns/rbldnsd: fix CC detection at configure time.

The build system for rbldnsd is hand-written. While we were already
passing CC to the "emake" command, it turns out that the ./configure
script checks for it as well. Thus it was possible for src_configure()
to fail if the ./configure script couldn't guess which compiler
wouldn't be used anyway. Whee. Fixed by passing the same CC that emake
will use to ./configure, too.

Closes: https://bugs.gentoo.org/718888
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 net-dns/rbldnsd/rbldnsd-0.998b-r2.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/net-dns/rbldnsd/rbldnsd-0.998b-r2.ebuild 
b/net-dns/rbldnsd/rbldnsd-0.998b-r2.ebuild
index a95bcde36f7..fb38ede3d4c 100644
--- a/net-dns/rbldnsd/rbldnsd-0.998b-r2.ebuild
+++ b/net-dns/rbldnsd/rbldnsd-0.998b-r2.ebuild
@@ -28,8 +28,10 @@ RESTRICT=test
 src_configure() {
        # The ./configure file is handwritten and doesn't support a `make
        # install` target, so there are no --prefix options. The econf
-       # function appends those automatically, so we can't use it.
-       ./configure \
+       # function appends those automatically, so we can't use it. We
+       # Have to set $CC here, too (and not just in the call to emake),
+       # because the ./configure script checks for it.
+       CC="$(tc-getCC)" ./configure \
                $(use_enable ipv6) \
                $(use_enable zlib) \
                || die "./configure failed"

Reply via email to