commit:     6c35e0080c2fcd69c99bee94e7d96c82d555558a
Author:     Alarig Le Lay <alarig <AT> swordarmor <DOT> fr>
AuthorDate: Tue Jun 16 10:31:20 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Jul  1 06:38:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c35e008

net-dialup/freeradius-client: Avoid calling ar directly

Closes: https://bugs.gentoo.org/728332
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alarig Le Lay <alarig <AT> swordarmor.fr>
Closes: https://github.com/gentoo/gentoo/pull/16269
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild 
b/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild
index f9ac8661b09..0b182155d46 100644
--- a/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild
+++ b/net-dialup/freeradius-client/freeradius-client-1.1.7-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit autotools
+inherit autotools toolchain-funcs
 
 DESCRIPTION="FreeRADIUS Client framework"
 HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient";
@@ -31,12 +31,19 @@ src_prepare() {
 }
 
 src_configure() {
+       tc-export AR
+
        local myeconfargs=(
                $(use_enable scp)
                $(use_enable shadow)
                --with-secure-path
        )
        econf "${myeconfargs[@]}"
+
+       for MAKEFILE in $(find -name Makefile) libtool; do
+               sed -i "s|/usr/bin/ar|${AR}|" "${MAKEFILE}" || \
+                       die "Patching ${MAKEFILE} for ${AR} failed"
+       done
 }
 
 src_install() {

Reply via email to