commit:     254c16078eddcf4c41abe1d807218494ac831b15
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 23 09:01:17 2020 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jun 23 10:46:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=254c1607

app-editors/jasspa-microemacs: Do not try to detect cc or gcc.

Closes: https://bugs.gentoo.org/729258
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 .../files/20091011-cc-detect.patch                 | 32 ++++++++++++++++++++++
 .../jasspa-microemacs-20091011-r3.ebuild           |  3 +-
 2 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/app-editors/jasspa-microemacs/files/20091011-cc-detect.patch 
b/app-editors/jasspa-microemacs/files/20091011-cc-detect.patch
new file mode 100644
index 00000000000..123d78c895f
--- /dev/null
+++ b/app-editors/jasspa-microemacs/files/20091011-cc-detect.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/729258
+
+--- me091011-orig/src/build
++++ me091011/src/build
+@@ -158,12 +158,8 @@
+         exit 1
+     fi
+ 
+-    # use cc by default if available
+     if [ -r $MAKEBAS.mak ] ; then
+-        # try to detect cc, if found use it in preference
+-        if [ "`type cc | cut -b 1-5`" = "cc is" ] ; then
+-            MAKEFILE=$MAKEBAS.mak
+-        fi
++        MAKEFILE=$MAKEBAS.mak
+         # Special rules for sun, if cc is /usr/ucb then this is a dummy.
+         if [ $PLATFORM = "SunOS" ] ; then 
+             WHATCC=`/usr/bin/which cc`
+@@ -173,12 +169,8 @@
+         fi                      
+     fi
+     if [ -z "$MAKEFILE" ] ; then
+-        # failed to find cc, try gcc
+         if [ -r $MAKEBAS.gmk ] ; then
+-            # try to detect gcc, if found use it in preference
+-            if [ "`type gcc | cut -b 1-6`" = "gcc is" ] ; then
+-                MAKEFILE=$MAKEBAS.gmk
+-            fi
++            MAKEFILE=$MAKEBAS.gmk
+         fi
+     fi
+     if [ -z "$MAKEFILE" ] ; then

diff --git a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild 
b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild
index 27f5e8a4303..e41568ee365 100644
--- a/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild
+++ b/app-editors/jasspa-microemacs/jasspa-microemacs-20091011-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -37,6 +37,7 @@ S="${WORKDIR}/me${PV:2}"
 PATCHES=(
        "${FILESDIR}"/${PV}-ncurses.patch
        "${FILESDIR}"/${PV}-linux3.patch
+       "${FILESDIR}"/${PV}-cc-detect.patch
 )
 
 src_unpack() {

Reply via email to