commit:     dd6ff2f5c2f7887079934c95554adf61efb62506
Author:     Anna Vyalkova <cyber <AT> sysrq <DOT> in>
AuthorDate: Sun May 16 13:43:18 2021 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sun May 16 14:05:02 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd6ff2f5

sci-libs/meschach: fix CC

Closes: https://bugs.gentoo.org/785196
Signed-off-by: Anna Vyalkova <cyber <AT> sysrq.in>

 sci-libs/meschach/files/configure.patch | 29 +++++++++++++++++++++++++++++
 sci-libs/meschach/meschach-1.2b.ebuild  |  3 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/sci-libs/meschach/files/configure.patch 
b/sci-libs/meschach/files/configure.patch
new file mode 100644
index 000000000..858196846
--- /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 2f534ad10..b1f5b41bd 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
 }
 

Reply via email to