commit:     8135845b8bc6721e7537e46f7033537cf9ac30f6
Author:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  8 12:45:34 2020 +0000
Commit:     Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
CommitDate: Tue Dec  8 12:49:03 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8135845b

net-proxy/squidguard: fix building with clang

Also correct build-time dependencies

Reported-by: Agostino Sarubbo <ago <AT> gentoo.org>
Closes: https://bugs.gentoo.org/731680
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org>

 net-proxy/squidguard/squidguard-1.6.0.ebuild | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/net-proxy/squidguard/squidguard-1.6.0.ebuild 
b/net-proxy/squidguard/squidguard-1.6.0.ebuild
index c4bce1009a7..a811dda736c 100644
--- a/net-proxy/squidguard/squidguard-1.6.0.ebuild
+++ b/net-proxy/squidguard/squidguard-1.6.0.ebuild
@@ -24,9 +24,12 @@ RDEPEND="
        )
        ldap? ( net-nds/openldap:0 )"
 
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+
+BDEPEND="
        sys-devel/bison:0
-       sys-devel/flex:0"
+       sys-devel/flex:0
+"
 
 suitable_db_version() {
        local tested_slots="5.3 4.8"
@@ -45,8 +48,12 @@ src_prepare() {
                "${FILESDIR}/${P}-gcc-10.patch"
 
        # Link only with specific BerkDB versions
+       # Do not inject default paths for library searching
        db_version="$(suitable_db_version)"
-       sed -i -e "/\$LIBS -ldb/s/-ldb/-l$(db_libname ${db_version})/" 
configure.ac || die
+       sed -i \
+               -e "/\$LIBS -ldb/s/-ldb/-l$(db_libname ${db_version})/" \
+               -e '/$LDFLAGS $db_lib $ldap_lib/d' \
+               configure.ac || die
 
        eapply_user
        eautoreconf

Reply via email to