net-dialup/freeradius-client: Try #2 to fix AR

Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2020-07-08 19:33:04 +02:00
parent b51ad84621
commit eb76f5d1ec
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
2 changed files with 15 additions and 10 deletions

View file

@ -0,0 +1,10 @@
--- a/configure.in 2020-07-08 19:20:38.180447370 +0200
+++ b/configure.in 2020-07-08 19:21:00.840479965 +0200
@@ -33,6 +33,7 @@
dnl Needed for normal compile
AC_PATH_PROG(AR, ar)
+AS_IF([test "${AR}" = ""], [AC_PATH_PROG(AR, x86_64-pc-linux-gnu-ar)])
AM_PROG_LIBTOOL
dnl HAVE_SHADOW_PASSWORDS

View file

@ -3,7 +3,7 @@
EAPI=7 EAPI=7
inherit autotools toolchain-funcs inherit autotools
DESCRIPTION="FreeRADIUS Client framework" DESCRIPTION="FreeRADIUS Client framework"
HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient" HOMEPAGE="https://wiki.freeradius.org/project/Radiusclient"
@ -23,21 +23,16 @@ DOCS=(
README.{radexample,rst} README.{radexample,rst}
) )
PATCHES=(
"${FILESDIR}/${P}-ar-configure.in.patch"
)
src_prepare() { src_prepare() {
default default
mv configure.in configure.ac || die \ mv configure.in configure.ac || die \
"Renaming configure.in to configure.ac failed" "Renaming configure.in to configure.ac failed"
echo "AM_PROG_AR = ${AR}" >> Makefile.am
eautoreconf eautoreconf
tc-export AR
for MAKEFILE in $(find -name Makefile.in); do
sed -i "s|@AR@|${AR}|" "${MAKEFILE}" || \
die "Patching ${MAKEFILE} for ${AR} failed"
done
} }
src_configure() { src_configure() {