[nwchem] replace march/mtune=native with =generic to prevent koji fails f951: error: CPU you selected does no

Marcin Dulak marcindulak at fedoraproject.org
Thu Feb 6 22:36:19 UTC 2014


commit bc947e63524154d2cafdb9ba3bd4db47f0d7d05f
Author: marcindulak <Marcin.Dulak at gmail.com>
Date:   Thu Feb 6 23:04:00 2014 +0100

    replace march/mtune=native with =generic to prevent koji fails
    f951: error: CPU you selected does not support x86-64 instruction set

 nwchem.spec |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/nwchem.spec b/nwchem.spec
index 0d84865..3b42fa9 100644
--- a/nwchem.spec
+++ b/nwchem.spec
@@ -144,6 +144,9 @@ This package contains the data files.
 
 %prep
 %setup -q -n %{name}-%{major_version}.revision%{minor_version}-src.%{posttag}
+# remove -march=native -mtune=native: cause koji to fail with
+# f951: error: CPU you selected does not support x86-64 instruction set
+sed -e 's|=native|=generic|g' -i src/config/makefile.h
 
 
 %build


More information about the scm-commits mailing list