Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PackedBinary tries to copy sources to installdir even if buildininstalldir = True #1123

Open
pescobar opened this issue Mar 6, 2017 · 3 comments
Milestone

Comments

@pescobar
Copy link
Member

pescobar commented Mar 6, 2017

While writting a new easyconfig I got this error:

  File "/usr/lib64/python2.6/shutil.py", line 48, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))

My guess is that when using the PackedBinary easyblock and the option buildininstalldir = True easybuild still tries to copy the sources (which are already in the installdir) to the installdir again

This test (non working) easyconfig can be used to reproduce the error:
https://gist.github.com/c97a74b0a2f6f07f115ec977a7225dbd

this is the debug log:
https://gist.github.com/9e3d809883d065b7c69b2379a86ba920

by now, what I have done to workaround the problem is to use this install_cmd:

install_cmd = 'mkdir -p %(installdir)s && '
install_cmd += 'cp -r * %(installdir)s && '
install_cmd += 'cd %(installdir)s/ && '
install_cmd += 'make pcrclipreads'

My first test was to do only this as install_cmd (which triggers the error)

buildininstalldir = True
install_cmd = 'make pcrclipreads'
@pescobar
Copy link
Member Author

pescobar commented Mar 6, 2017

Another approach is to use the ConfigureMake easyblock where the buildininstalldir = True works fine. See easybuilders/easybuild-easyconfigs#4262

@boegel boegel added this to the 3.x milestone Mar 7, 2017
@boegel
Copy link
Member

boegel commented Mar 7, 2017

@pescobar I'd say it doesn't make much sense to use buildininstalldir = True together with PackedBinary...

You could also have run make pcrclipreads via postinstallcmds?

Maybe this is just a matter of making the error message clearer?

@pescobar
Copy link
Member Author

pescobar commented Mar 9, 2017

@boegel I would expect that if I use buildininstalldir = True the sources are not copied again from builddir to installdir because both are the same.

I noticed the issue while using packedbinary but IMHO this should be the case no matter what easyblock is used.

@boegel boegel modified the milestones: 3.x, 4.x Feb 20, 2020
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

No branches or pull requests

2 participants