commit:     6ff188a81f27d09a7a6eb304d91afc3a5caea7d4
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 14 11:39:34 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Dec 14 11:39:34 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6ff188a8

sci-libs/atlas: Warn if incompatible kernel config is set

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=567682

Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 sci-libs/atlas/atlas-3.11.38-r1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sci-libs/atlas/atlas-3.11.38-r1.ebuild 
b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
index 3c760fe..8af1506 100644
--- a/sci-libs/atlas/atlas-3.11.38-r1.ebuild
+++ b/sci-libs/atlas/atlas-3.11.38-r1.ebuild
@@ -6,7 +6,7 @@ EAPI=5
 
 FORTRAN_NEEDED=fortran
 
-inherit alternatives-2 eutils fortran-2 multilib numeric toolchain-funcs 
versionator
+inherit alternatives-2 eutils fortran-2 linux-info multilib numeric 
toolchain-funcs versionator
 
 LAPACKP=lapack-3.6.0.tgz
 
@@ -39,6 +39,13 @@ pkg_setup() {
        [[ -e /sys/devices/system/cpu/intel_pstate ]] \
                && die "Intel P-State driver detected. Please reboot with 
'intel_pstate=disable' in your cmdline"
        use fortran && fortran-2_pkg_setup
+       CONFIG_CHECK="
+               !~X86_P4_CLOCKMOD
+               !~X86_INTEL_PSTATE
+       "
+       ERROR_KERNEL_X86_P4_CLOCKMOD="P4 Clockmod frequency scaling influences 
tuning and needs to be disabled at compile time."
+       ERROR_KERNEL_X86_INTEL_PSTATE="Intel Pstate frequency scaling 
influences tuning and needs to be disabled at compile time."
+       linux-info_pkg_setup
 }
 
 src_configure() {

Reply via email to