summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Dittrich <markusle@gentoo.org>2008-08-03 18:16:52 +0000
committerMarkus Dittrich <markusle@gentoo.org>2008-08-03 18:16:52 +0000
commit108ad090cb0bee17142b9846da1bdda273ff32ce (patch)
tree7bba7b4e2aa5db7c55ccc8f4d6337f9855671c91 /sci-libs/lapack-atlas
parentDrop yahoo USE flag. (diff)
downloadgentoo-2-108ad090cb0bee17142b9846da1bdda273ff32ce.tar.gz
gentoo-2-108ad090cb0bee17142b9846da1bdda273ff32ce.tar.bz2
gentoo-2-108ad090cb0bee17142b9846da1bdda273ff32ce.zip
Added patch to improve Core2Duo CPU detection.
(Portage version: 2.2_rc5/cvs/Linux 2.6.26-SENTINEL-1 i686)
Diffstat (limited to 'sci-libs/lapack-atlas')
-rw-r--r--sci-libs/lapack-atlas/ChangeLog6
-rw-r--r--sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch26
-rw-r--r--sci-libs/lapack-atlas/lapack-atlas-3.9.1.ebuild3
3 files changed, 33 insertions, 2 deletions
diff --git a/sci-libs/lapack-atlas/ChangeLog b/sci-libs/lapack-atlas/ChangeLog
index f0e9b27b1ccb..2297f9419757 100644
--- a/sci-libs/lapack-atlas/ChangeLog
+++ b/sci-libs/lapack-atlas/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-libs/lapack-atlas
# Copyright 2004-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-atlas/ChangeLog,v 1.67 2008/07/23 14:51:30 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-atlas/ChangeLog,v 1.68 2008/08/03 18:16:51 markusle Exp $
+
+ 03 Aug 2008; Markus Dittrich <markusle@gentoo.org>
+ +files/blas-atlas-3.9.1-Core2Duo-detect.patch, lapack-atlas-3.9.1.ebuild:
+ Added patch to improve Core2Duo CPU detection.
23 Jul 2008; Markus Dittrich <markusle@gentoo.org> ChangeLog, Manifest:
Fixed typo in ChangeLog.
diff --git a/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch b/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch
new file mode 100644
index 000000000000..ab3ccd6ce990
--- /dev/null
+++ b/sci-libs/lapack-atlas/files/blas-atlas-3.9.1-Core2Duo-detect.patch
@@ -0,0 +1,26 @@
+diff -Naur ATLAS/CONFIG/src/backend/archinfo_x86.c ATLAS.new/CONFIG/src/backend/archinfo_x86.c
+--- ATLAS/CONFIG/src/backend/archinfo_x86.c 2008-07-22 10:32:34.000000000 -0400
++++ ATLAS.new/CONFIG/src/backend/archinfo_x86.c 2008-08-02 07:17:09.000000000 -0400
+@@ -92,11 +92,11 @@
+ */
+ do_cpuid(r, 1);
+ *family = (r[EAX] >> 8) & 0xf; /* base family in bits 11-8 */
+- if (*family == 0xf || *family == 0) /* extended family is added in */
++/* if (*family == 0xf || *family == 0) */ /* extended family is added in */
+ *family += ((r[EAX] >> 20) & 0xff);
+
+ *model = (r[0] >> 4) & 0xf; /* model in bits 7-4 */
+- if (*model == 0xf) /* extended model is concatenated */
++ /* if (*model == 0xf) */ /* extended model is concatenated */
+ *model |= ((r[0] >> 12) & 0xf0);
+
+ /*
+@@ -294,7 +294,7 @@
+ case 14:
+ iret = IntCoreDuo;
+ break;
+- case 15:
++ case 15: ; case 23:
+ iret = IntCore2Duo;
+ break;
+ default:
diff --git a/sci-libs/lapack-atlas/lapack-atlas-3.9.1.ebuild b/sci-libs/lapack-atlas/lapack-atlas-3.9.1.ebuild
index b7780338976d..ea2df90dbd1f 100644
--- a/sci-libs/lapack-atlas/lapack-atlas-3.9.1.ebuild
+++ b/sci-libs/lapack-atlas/lapack-atlas-3.9.1.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/sci-libs/lapack-atlas/lapack-atlas-3.9.1.ebuild,v 1.1 2008/07/23 14:47:07 markusle Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-atlas/lapack-atlas-3.9.1.ebuild,v 1.2 2008/08/03 18:16:51 markusle Exp $
inherit eutils flag-o-matic toolchain-funcs fortran autotools versionator
@@ -46,6 +46,7 @@ src_unpack() {
epatch "${DISTDIR}"/${MY_PN}-${PATCH_V}-shared-libs.patch.bz2
epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch
epatch "${FILESDIR}"/${MY_PN}-${PATCH_V}-disable-ilaenv.patch
+ epatch "${FILESDIR}"/blas-${MY_PN}-${PV}-Core2Duo-detect.patch
# make sure the compile picks up the proper includes
sed -i \