summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/icc/ChangeLog8
-rw-r--r--dev-lang/icc/files/icc-add-amd64-preprocessor-directives.patch16
-rw-r--r--dev-lang/icc/icc-10.1.017-r1.ebuild14
3 files changed, 19 insertions, 19 deletions
diff --git a/dev-lang/icc/ChangeLog b/dev-lang/icc/ChangeLog
index efad0976623e..4662ac361302 100644
--- a/dev-lang/icc/ChangeLog
+++ b/dev-lang/icc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-lang/icc
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.63 2008/08/22 17:16:46 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/ChangeLog,v 1.64 2008/08/23 11:00:33 bicatali Exp $
+
+ 23 Aug 2008; Sébastien Fabbro <bicatali@gentoo.org>
+ -files/icc-add-amd64-preprocessor-directives.patch,
+ icc-10.1.017-r1.ebuild:
+ Changed wrong patch to a conditional one, thanks to Harald van Dijk, bug
+ #235496
*icc-10.1.017-r1 (22 Aug 2008)
diff --git a/dev-lang/icc/files/icc-add-amd64-preprocessor-directives.patch b/dev-lang/icc/files/icc-add-amd64-preprocessor-directives.patch
deleted file mode 100644
index 43e76c0f8e52..000000000000
--- a/dev-lang/icc/files/icc-add-amd64-preprocessor-directives.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- opt/intel/cce/10.1.017/include/stddef.h 2008-08-02 15:06:51.000000000 -0400
-+++ opt/intel/cce/10.1.017/include/stddef.h 2008-08-02 15:07:06.000000000 -0400
-@@ -5,6 +5,13 @@
- #define _STDDEF
- */
-
-+#ifndef __amd64
-+#define __amd64 __x86_64
-+#endif
-+#ifndef __amd64__
-+#define __amd64__ __x86_64__
-+#endif
-+
- #ifdef __QNX__ /* Just take QNX one */
- #include_next <stddef.h>
- #else /* __QNX__ */
diff --git a/dev-lang/icc/icc-10.1.017-r1.ebuild b/dev-lang/icc/icc-10.1.017-r1.ebuild
index 1a08c1de1245..d89863b593e4 100644
--- a/dev-lang/icc/icc-10.1.017-r1.ebuild
+++ b/dev-lang/icc/icc-10.1.017-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-10.1.017-r1.ebuild,v 1.1 2008/08/22 17:16:46 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/icc/icc-10.1.017-r1.ebuild,v 1.2 2008/08/23 11:00:33 bicatali Exp $
inherit rpm eutils check-reqs
@@ -56,7 +56,6 @@ src_unpack() {
einfo "Extracting $(basename ${x})..."
rpm_unpack "${S}/${x}" || die "rpm_unpack ${x} failed"
done
- epatch "${FILESDIR}/icc-add-amd64-preprocessor-directives.patch"
einfo "Fixing paths and tagging"
cd "${S}"/${INSTALL_DIR}/bin
@@ -71,6 +70,17 @@ src_unpack() {
-i *support \
|| die "sed support file failed"
chmod 644 *support
+
+ if use amd64; then
+ cat <<-EOF >>"${S}"/${INSTALL_DIR}/bin/icc.cfg
+ -D__amd64=__x86_64
+ -D__amd64__=__x86_64__
+ EOF
+ cat <<-EOF >>"${S}"/${INSTALL_DIR}/bin/icpc.cfg
+ -D__amd64=__x86_64
+ -D__amd64__=__x86_64__
+ EOF
+ fi
}
src_install() {