From 12b6184ba9075cb777ec8329a7541f4682509074 Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Sun, 17 May 2020 18:00:24 +0200 Subject: [PATCH] dev-ml/zarith: using AR Closes: https://bugs.gentoo.org/723144 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Alfredo Tupone --- dev-ml/zarith/files/zarith-1.9.1-ar.patch | 11 +++++++++++ dev-ml/zarith/zarith-1.9.1.ebuild | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 dev-ml/zarith/files/zarith-1.9.1-ar.patch diff --git a/dev-ml/zarith/files/zarith-1.9.1-ar.patch b/dev-ml/zarith/files/zarith-1.9.1-ar.patch new file mode 100644 index 000000000000..122cf0797dbe --- /dev/null +++ b/dev-ml/zarith/files/zarith-1.9.1-ar.patch @@ -0,0 +1,11 @@ +--- a/configure 2020-05-17 17:46:29.826822055 +0200 ++++ b/configure 2020-05-17 17:47:37.699808615 +0200 +@@ -22,7 +22,7 @@ + gmp='auto' + perf='no' + +-ar='ar' ++ar="${AR}" + ocaml='ocaml' + ocamlc='ocamlc' + ocamlopt='ocamlopt' diff --git a/dev-ml/zarith/zarith-1.9.1.ebuild b/dev-ml/zarith/zarith-1.9.1.ebuild index 85651e3b4951..6f6085a8c092 100644 --- a/dev-ml/zarith/zarith-1.9.1.ebuild +++ b/dev-ml/zarith/zarith-1.9.1.ebuild @@ -22,10 +22,14 @@ RDEPEND=" DEPEND="${RDEPEND} dev-lang/perl" DOCS=( README.md Changes ) +PATCHES=( + "${FILESDIR}"/${P}-ar.patch +) + S="${WORKDIR}/Zarith-release-${PV}" src_configure() { - tc-export CC + tc-export CC AR ./configure -host "${CHOST}" \ -ocamllibdir /usr/$(get_libdir)/ocaml \ -installdir "${ED}"/usr/$(get_libdir)/ocaml \ -- 2.26.2