Fix bug where patches specified by dependents were not applied#8272
Fix bug where patches specified by dependents were not applied#8272scheibelp merged 5 commits intospack:developfrom
Conversation
|
Note: this was not detected because unit tests access dependency patches in the spec (which works) but do not check the collection of patches in |
|
As a consequence of swapping to using |
|
This works (checked with |
|
@scheibelp: why didn't the test catch that problem? |
The only thing to be careful of is that |
|
@scheibelp can we merge this some when soon? |
This doesn't actually change anything about the consistency of patch ordering: You are right that #7193 did enforce an order, but that part was reverted in #7558. Patch order is still arbitrary and it remains as unfinished business to enforce the patch declaration order as the consistent ordering - see: #7193 (review) |
|
I wouldn't say the order is arbitrary, my understanding is that the order is that of the patches in the |
I think that is agreed upon as what we want to guarantee, but we do not guarantee it right now: Patch ordering has not changed since #7193 (comment) which mentions:
That being said, |
|
Can this be merged? Or are there remaining issues to be addressed? |
|
Thanks! |
Fixes #7885
#7193 added the
patches_to_applyfunction to collect patches which are then applied inPackage.do_patch. However this only collects patches that are associated with thePackageobject and does not includeSpec-related patches (which are applied by dependents, added in #5476).This updates thePackage.patches_to_applyfunction to addSpecpatches.EDIT: turns out
Spec.patchesalready collects patches from the package so thePackage.patches_to_applyfunction isn't necessary. All uses ofPackage.patches_to_applyare replaced withPackage.spec.patches.