easybuilders / easybuild-framework

EasyBuild is a software installation framework in Python that allows you to install software in a structured and robust way.
https://easybuild.io
GNU General Public License v2.0
147 stars 200 forks source link

Patch files not looked for in all the right places #3824

Open akesandgren opened 2 years ago

akesandgren commented 2 years ago

I have AlphaFold-2.0.0-foss-2020b.eb in our custom easyconfig tree (/hpc2n/eb/custom/easyconfigs/a/AlphaFold/) and when trying to build it can't find the OpenMM-%(version)s_AlphaFold.patch

These are the places it is searching in:

 /hpc2n/eb/custom/easyconfigs/a/AlphaFold/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/custom/easyconfigs/a/AlphaFold/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/custom/easyconfigs/o/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/custom/easyconfigs/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/custom/easyconfigs/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/o/OpenMM/OpenMM-7.5.1_AlphaFold.patch 
 /hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/o/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/OpenMM-7.5.1_AlphaFold.patch
 /pfs/data/software/open_sources/o/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /pfs/data/software/open_sources/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /pfs/data/software/open_sources/OpenMM-7.5.1_AlphaFold.patch
 /pfs/data/software/hidden_sources/o/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /pfs/data/software/hidden_sources/OpenMM/OpenMM-7.5.1_AlphaFold.patch
 /pfs/data/software/hidden_sources/OpenMM-7.5.1_AlphaFold.patch
 https://github.com/openmm/openmm/archive/OpenMM-7.5.1_AlphaFold.patch
 https://sources.easybuild.io/o/OpenMM/OpenMM-7.5.1_AlphaFold.patch

The problem is that it is not searching in

/hpc2n/eb/software/EasyBuild/4.4.2/easybuild/easyconfigs/a/AlphaFold/OpenMM-7.5.1_AlphaFold.patch

where the patch really is.

boegel commented 2 years ago

@akesandgren Hmm, apparently it's searching for the patch based on the name of the component, rather than with the top-level software name, which indeed looks like a bug to me.

akesandgren commented 2 years ago

Well it should look in the component tree too, but it should not avoid the top level sw name