From: Mike Frysinger Date: Wed, 8 Dec 2004 01:31:38 +0000 (+0000) Subject: epunt_cxx(): only fail when C++ is required #73450 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9afaaa3e5d0adbd98c1ea18f83e4fdfdb60e787e;p=gentoo.git epunt_cxx(): only fail when C++ is required #73450 --- diff --git a/eclass/ELT-patches/nocxx/nocxx.patch b/eclass/ELT-patches/nocxx/nocxx.patch new file mode 100644 index 000000000000..a898f9d01a8d --- /dev/null +++ b/eclass/ELT-patches/nocxx/nocxx.patch @@ -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 diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 38f8755bf06a..653c39a1b49f 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -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 # @@ -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" +}