epunt_cxx(): only fail when C++ is required #73450
authorMike Frysinger <vapier@gentoo.org>
Wed, 8 Dec 2004 01:31:38 +0000 (01:31 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 8 Dec 2004 01:31:38 +0000 (01:31 +0000)
eclass/ELT-patches/nocxx/nocxx.patch [new file with mode: 0644]
eclass/eutils.eclass

diff --git a/eclass/ELT-patches/nocxx/nocxx.patch b/eclass/ELT-patches/nocxx/nocxx.patch
new file mode 100644 (file)
index 0000000..a898f9d
--- /dev/null
@@ -0,0 +1,15 @@
+--- configure.orig     2004-12-07 21:34:23.205172545 +0000
++++ configure  2004-12-07 21:37:17.726654782 +0000
+@@ -5148,10 +5148,8 @@
+   :
+ else
+   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
+-See \`config.log' for more details." >&5
+-echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
+-See \`config.log' for more details." >&2;}
+-   { (exit 1); exit 1; }; }
++See \`config.log' for more details." >&5;}
++   { echo "C++ sucks, ignoring ..." >&5; }; }
+ fi
+ 
+ ac_ext=cc
index 38f8755bf06a44b7a921f686f2662d01a92f72dd..653c39a1b49fc11e0d25d29f2215cf1371cff04f 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.125 2004/12/07 01:32:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.126 2004/12/08 01:31:38 vapier Exp $
 #
 # Author: Martin Schlemmer <azarah@gentoo.org>
 #
@@ -1535,3 +1535,10 @@ built_with_use() {
        done
        return 0
 }
+
+# Many configure scripts wrongly bail when a C++ compiler 
+# could not be detected. #73450
+epunt_cxx() {
+       EPATCH_SINGLE_MSG="Removing useless C++ checks ..." \
+               epatch "${PORTDIR}/eclass/ELT-patches/nocxx/nocxx.patch"
+}