Skip to content

fix rare case in which used easyconfig and copied easyconfig are the same#1159

Merged
boegel merged 5 commits intoeasybuilders:developfrom
boegel:fix_copy_same_file
Feb 7, 2015
Merged

fix rare case in which used easyconfig and copied easyconfig are the same#1159
boegel merged 5 commits intoeasybuilders:developfrom
boegel:fix_copy_same_file

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Feb 6, 2015

error as shown below occurs when installing additional extensions after editing easyconfig located in install dir; this trivial patch fixes it

ERROR: EasyBuild crashed with an error (at easybuild/main.py:135 in build_and_install_software): Traceback (most recent call last):
  File "/user/scratch/gent/vsc400/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_framework-2.0.0dev-py2.6.egg/easybuild/main.py", line 109, in build_and_install_software
    (ec_res['success'], app_log, err) = build_and_install_one(ec, orig_environ)
  File "/user/scratch/gent/vsc400/vsc40023/easybuild_easy_installed/lib/python2.6/site-packages/easybuild_framework-2.0.0dev-py2.6.egg/easybuild/framework/easyblock.py", line 1938, in build_and_install_one
    shutil.copy(spec, newspec)
  File "/usr/lib64/python2.6/shutil.py", line 84, in copy
    copyfile(src, dst)
  File "/usr/lib64/python2.6/shutil.py", line 48, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
Error: `/user/scratch/gent/vsc400/vsc40023/easybuild_REGTEST/SL6/sandybridge/software/R/3.1.2-intel-2015a/easybuild/R-3.1.2-intel-2015a.eb` and `/user/scratch/gent/vsc400/vsc40023/easybuild_REGTEST/SL6/sandybridge/software/R/3.1.2-intel-2015a/easybuild/R-3.1.2-intel-2015a.eb` are the same file

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1255/
Test FAILed.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1258/
Test FAILed.

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1259/
Test PASSed.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Feb 6, 2015

Jenkins: test this please

@hpcugentbot
Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1261/
Test PASSed.

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Feb 7, 2015

obscure issue, bugfix is fairly trivial, so going in

boegel added a commit that referenced this pull request Feb 7, 2015
fix rare case in which used easyconfig and copied easyconfig are the same
@boegel boegel merged commit e280ab0 into easybuilders:develop Feb 7, 2015
@boegel boegel deleted the fix_copy_same_file branch February 7, 2015 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants