Only consider explicit dependencies in LLVM easyblock#3881
Only consider explicit dependencies in LLVM easyblock#3881boegel merged 2 commits intoeasybuilders:developfrom
Conversation
|
Test report by @Flamefire Overview of tested easyconfigs (in order)
Build succeeded for 45 out of 47 (18 easyconfigs in total) UPDATE |
Option introduced in 20.1: llvm/llvm-project@b2edeb5
|
Given the time required to test this I thought it might be good to combine them here at least for testing and rebase afterwards or keep it. |
|
Agreed, that makes sense. |
Avoid considering build dependencies for setting options which may lead to missing libraries at runtime.
|
I rebased this on the other PR so the commit disappears when merged. Test with both: easybuilders/easybuild-easyconfigs#23637 (comment) |
|
Doesen't this risk breaking, or atleast not using a dependency in builds eg on top of EESSI when a dependency might be filtered and than reintroduced by setting |
Yes.
But that is incorrect, as one cannot choose that filtered deps are still returned. This seems to be quite a few years old. |
|
The problem with also reporting filtered deps is that there might be a legitimate reason why one doesn't want a certain dependency. We might still enable some feature based on that dep though, if we just look at the filtered deps... Do we need a combination of both (i.e. check for filtered dep and |
|
Do we have an example of this being an issue? Might be worth checking why/how we can run into this in a reasonable use case. Maybe there are other solutions then |
|
and Will probably not work have not tested it yet |
|
I think the easy solution would be to keep using This is the approach that is taken in all other easyblocks. |
Avoid considering build dependencies for setting options which may lead to missing libraries at runtime.
Note: I changed
self.depsto runtime-dependencies only and set it as early as possible. I can't see where this would change current (intended) behavior based on the code in this easyblock and it was likely intended this way anyway.No other official easyblock uses
self.depsso this should be safe.See also
libxml2andlibffidependencies to LLVM 11.x/12.x/14.x easybuild-easyconfigs#23603Closes #3883