module: Fix various errors during refresh#11084
Conversation
|
I fixed the failing tests by changing arch to x86_64 as in the other tests. Not sure if this is the right fix, though. |
|
@michaelkuhn How close is this to getting merged? Awaiting the |
4c8569c to
59a0152
Compare
|
Sorry for the lack of updates. I have just pushed a reworked change that stores configure arguments in a file and uses this to restore them when refreshing module files. I hope this is what you had in mind, @alalazo. :-) |
59a0152 to
7d1b317
Compare
|
@alalazo ping :-) |
7d1b317 to
6fd0696
Compare
|
It seems that the proj problem has been fixed elsewhere. libxml2+python still exhibits this problem, though. I have updated the PR to apply to current develop. This is ready to merge from my side. |
|
@michaelkuhn Do you expect this PR to resolve #14449 ? |
alalazo
left a comment
There was a problem hiding this comment.
Sorry it took so long to review. This LGTM, I only wonder if we can find better names for args_path.
Any preferences? How about |
👍 |
6fd0696 to
c88e119
Compare
|
Rebased and renamed, should be good to go. |
|
@michaelkuhn Apologies for being a pain. Can you add some tests to verify the behavior and increase coverage? After that I think this will be ready to merge (don't know why the low coverage was not shown before the rebase 🤔 ). |
This change stores packages' configure arguments during build and makes use of them while refreshing module files. This fixes problems such as: - libxml2 uses global variables exported by python. configure_options does not set up the environment appropriately, leading to NameErrors (see spack#10716). Fixes spack#10716
c88e119 to
c528e9d
Compare
This needed another rebase due to the recent distributed build changes. I also finally added some tests. Let me know if anything else is missing. |
I'll test drive it again and merge it if no issues are encountered. Thanks @michaelkuhn ! |
|
Test driven it. For the still low coverage it seems |
This change stores packages' configure arguments during build and makes use of them while refreshing module files. This fixes problems such as in #10716.
This change fixes (at least) two problems:
Fixes #10649, #10716
closes #14361