Op 29-apr.-2015, om 17:23 heeft Ward Poelmans 
<[email protected]<mailto:[email protected]>> het volgende geschreven:

On Wed, Apr 29, 2015 at 5:15 PM, Backeljauw Franky
<[email protected]<mailto:[email protected]>> wrote:
I tried with a patch as in “diff -ru -NB” but that tells me it cannot determine 
the patch level…

That should do the trick. Does the patch work if you try to apply it manually?

Autodetecting the patch level usually works but you can force it by
using a tuple.

Yep, I can apply the patch manually, but with EasyBuild it gives this:

== 2015-04-30 10:00:46,177 main.easyconfig.templates DEBUG name: versionprefix, 
config:
== 2015-04-30 10:00:46,177 main.PythonPackage INFO Running method patch_step 
part of step patch
== 2015-04-30 10:00:46,177 main.PythonPackage INFO Applying patch 
kwant-1.0.3-build-conf.patch
== 2015-04-30 10:00:46,177 main.PythonPackage DEBUG Source index: 0; patch 
level: 0; source path suffix: ; copy patch: <module 'copy' from 
'/usr/lib64/python2.6/copy.pyc'>
== 2015-04-30 10:00:46,178 main.PythonPackage DEBUG Determine begin path for 
patch kwant-1.0.3-build-conf.patch: 
/apps/antwerpen/easybuild/build/kwant/1.0.3/intel-2015a-Python-2.7.9/kwant-1.0.3
== 2015-04-30 10:00:46,178 main.PythonPackage DEBUG Applying patch {'path': 
'/apps/antwerpen/easybuild/build/kwant-1.0.3-build-conf.patch', 'level': 0, 
'name': 'kwant-1.0.3-build-conf.patch', 'md5': 
'bf52a0a00f887a194e6f770e1db76e21', 'checksum': None} in path 
/apps/antwerpen/easybuild/build/kwant/1.0.3/intel-2015a-Python-2.7.9/kwant-1.0.3
== 2015-04-30 10:00:46,178 main.filetools DEBUG No match found for 
kwant-1.0.3/build.conf, trying next patched file...
== 2015-04-30 10:00:46,179 main.filetools ERROR EasyBuild crashed with an error 
(at easybuild/tools/filetools.py:654 in apply_patch): Can't determine patch 
level for patch /apps/antwerpen/easybuild/build/kwant-1.0.3-build-conf.patch 
from directory 
/apps/antwerpen/easybuild/build/kwant/1.0.3/intel-2015a-Python-2.7.9/kwant-1.0.3
== 2015-04-30 10:00:46,179 main.easyblock WARNING build failed (first 300 
chars): EasyBuild crashed with an error (at easybuild/tools/filetools.py:654 in 
apply_patch): Can't determine patch level for patch 
/apps/antwerpen/easybuild/build/kwant-1.0.3-build-conf.patch from directory 
/apps/antwerpen/easybuild/build/kwant/1.0.3/intel-2015a-Python-2.7.9/kwant-1.0.3
== 2015-04-30 10:00:46,179 main.PythonPackage INFO Closing log for application 
name kwant version 1.0.3

The main.filetools module seems to have a problem with the fact that the file 
build.conf does not exist at first…

For completeness, this is the patch file:

diff -ru -BN kwant-1.0.3.org/build.conf<http://kwant-1.0.3.org/build.conf> 
kwant-1.0.3/build.conf
--- kwant-1.0.3.org/build.conf<http://kwant-1.0.3.org/build.conf> 1970-01-01 
01:00:00.000000000 +0100
+++ kwant-1.0.3/build.conf 2015-02-04 23:48:00.000000000 +0100
@@ -0,0 +1,7 @@
+[mumps]
+libraries = zmumps mumps_common pord metis esmumps scotch scotcherr
+
+[lapack]
+libraries = mkl_intel_lp64 mkl_sequential mkl_core pthread m
+library_dirs = $EBROOTIMKL/mkl/lib/intel64
+extra_link_args = -Wl,-rpath=$EBROOTIMKL/mkl/lib/intel64

— Regards,

Franky

Reply via email to