Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 608880

Summary: sys-apps/portage: make eapply_user allow more-specific directories to override or mask patches from less specific directories
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=591420
https://bugs.gentoo.org/show_bug.cgi?id=695600
https://bugs.gentoo.org/show_bug.cgi?id=698244
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 627566    

Description Zac Medico gentoo-dev 2017-02-10 16:55:50 UTC
Unlike epatch_user, the eapply_user implementation added in f188c989317a58ffc54cc0c022c728c100de9000 applies patches from multiple directories. Also, it applies more-specific patches before less-specific patches.

In order to enhance the existing behavior, it would make sense to:

* create a combined list of patches from all matched directories, and apply them all using the sorted order of basenames of the patches

* allow more-specific directories to override or mask patches from less-specific directories (patches would be masked by creating a symlink to /dev/null, having the same basename as the matched patch)

These enhancements would allow more control, while keeping the behavior roughly compatible with the existing behavior.