From dd6ff2f5c2f7887079934c95554adf61efb62506 Mon Sep 17 00:00:00 2001 From: Anna Vyalkova Date: Sun, 16 May 2021 18:43:18 +0500 Subject: [PATCH] sci-libs/meschach: fix CC Closes: https://bugs.gentoo.org/785196 Signed-off-by: Anna Vyalkova --- sci-libs/meschach/files/configure.patch | 29 +++++++++++++++++++++++++ sci-libs/meschach/meschach-1.2b.ebuild | 3 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 sci-libs/meschach/files/configure.patch diff --git a/sci-libs/meschach/files/configure.patch b/sci-libs/meschach/files/configure.patch new file mode 100644 index 0000000000..858196846c --- /dev/null +++ b/sci-libs/meschach/files/configure.patch @@ -0,0 +1,29 @@ +Bug: https://bugs.gentoo.org/785196 + +--- a/configure.in ++++ b/configure.in +@@ -9,16 +9,6 @@ + [extern int test (int i, double x);], + AC_DEFINE(HAVE_PROTOTYPES))])dnl + dnl +-dnl Brook Milligan's compiler check +-dnl Check for the sun ansi c compiler, acc +-define(LOCAL_PROG_ACC, +-[AC_BEFORE([$0], [AC_PROG_CPP])AC_PROVIDE([$0])dnl +-AC_PROGRAM_CHECK(CC, acc, acc, "")])dnl +-dnl David Stewart's modified compiler check +-define(LOCAL_PROG_CC, +-[AC_BEFORE([$0], [AC_PROG_CPP])AC_PROVIDE([$0])dnl +-AC_PROGRAM_CHECK(CC, acc, acc, cc)])dnl +-dnl + dnl + dnl + dnl ---------------------------------------------------------------------- +@@ -29,7 +19,6 @@ + PROGS="" + AC_SUBST(PROGS)dnl + LOCAL_PROG_ACC +-AC_PROGRAM_CHECK(CC, cc, cc, gcc) + dnl AC_PROG_CC + AC_PROG_CPP + AC_AIX diff --git a/sci-libs/meschach/meschach-1.2b.ebuild b/sci-libs/meschach/meschach-1.2b.ebuild index 2f534ad10f..b1f5b41bde 100644 --- a/sci-libs/meschach/meschach-1.2b.ebuild +++ b/sci-libs/meschach/meschach-1.2b.ebuild @@ -27,13 +27,14 @@ PATCHES=( "${WORKDIR}/debian/patches/${PN}_${PV}-13.diff" "${WORKDIR}/debian/patches/${PN}_${PV}-13.configure.diff" "${FILESDIR}/makefile.patch" + "${FILESDIR}/configure.patch" ) src_prepare() { default use old && sed -i -- 's/all: shared static/all: oldpart shared static/g' makefile.in mv configure.in configure.ac || die - export AR="$(tc-getAR)" + tc-export AR CC eautoreconf }