app-emulation/slirp4netns: Respect AR variable (bug 722162)
authorZac Medico <zmedico@gentoo.org>
Sun, 10 May 2020 18:27:21 +0000 (11:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 May 2020 19:51:51 +0000 (12:51 -0700)
Reported-by: Agostino Sarubbo <ago@gentoo.org>
Closes: https://bugs.gentoo.org/722162
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Zac Medico <zmedico@gentoo.org>
app-emulation/slirp4netns/slirp4netns-1.0.1.ebuild

index 4aaf598fb7e5a7ce40cf1a8264c2d12465e23d88..2d9af4a06ab704eb8aa3063629445f14ac3a4a15 100644 (file)
@@ -25,6 +25,9 @@ DEPEND="${RDEPEND}
 RESTRICT="test"
 
 src_prepare() {
+       # Respect AR variable for bug 722162.
+       sed -e 's|^AC_PROG_CC$|AC_DEFUN([AC_PROG_AR], [AC_CHECK_TOOL(AR, ar, :)])\nAC_PROG_AR\n\0|' \
+               -i configure.ac || die
        eautoreconf
        default
 }