From bd3e4d8ba482580f3db048d241aee4c4e65c5c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= Date: Sat, 24 Oct 2020 18:39:28 +0300 Subject: [PATCH] sci-electronics/fasthenry: Fix ar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/750128 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Andreas K. Hüttel --- .../fasthenry/fasthenry-3.0.20.07.17.ebuild | 3 ++- .../files/fasthenry-3.0.20.07.17-ar.patch | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch diff --git a/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild b/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild index b8691f8986a64..ee1cef974df8b 100644 --- a/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild +++ b/sci-electronics/fasthenry/fasthenry-3.0.20.07.17.ebuild @@ -23,10 +23,11 @@ S=${WORKDIR}/fasthenry-3.0wr PATCHES=( "${FILESDIR}/${P}-cflags.patch" "${FILESDIR}/${P}-ldflags.patch" + "${FILESDIR}/${P}-ar.patch" ) src_compile() { - tc-export CC + tc-export CC AR emake all } diff --git a/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch new file mode 100644 index 0000000000000..ea1e671b7df15 --- /dev/null +++ b/sci-electronics/fasthenry/files/fasthenry-3.0.20.07.17-ar.patch @@ -0,0 +1,18 @@ +diff -ruN fasthenry-3.0wr.orig/src/sparse/Makefile fasthenry-3.0wr/src/sparse/Makefile +--- fasthenry-3.0wr.orig/src/sparse/Makefile 2020-10-24 18:35:15.348900086 +0300 ++++ fasthenry-3.0wr/src/sparse/Makefile 2020-10-24 18:37:09.729921680 +0300 +@@ -25,12 +25,12 @@ + # $(CC) $(CFLAGS) -o $(DESTINATION) $(TESTO) $(LIBRARY) -lm + + $(LIBRARY) : $(OFILES) +- ar r $(LIBRARY) $? ++ $(AR) r $(LIBRARY) $? + ranlib $(LIBRARY) + + spice : $(LIBRARY) spSMP.o + cp $(LIBRARY) ../SMP.a +- ar r ../SMP.a spSMP.o ++ $(AR) r ../SMP.a spSMP.o + ranlib ../SMP.a + + lint :