Summary: | [Future EAPI] Provide PATCHES array support in default phase of src_prepare | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Tomáš Chvátal (RETIRED) <scarabeus> |
Component: | PMS/EAPI | Assignee: | PMS/EAPI <pms> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra, hasufell, pacho, yac |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | in-eapi-6 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 463768 | ||
Bug Blocks: | 174380 |
Description
Tomáš Chvátal (RETIRED)
![]() You've got my +1. That was the thing I forgot about! Also another bit wrt this bug might be support for epatch_user, but that thing must be redone a bit. If it would be enabled on "all packages" then it must be obvious from starters if the patches are provided by user or by us. Something in emerge.log about those with huge "!!!! USER_PATCH: blabla-i-screwed-my-build.patch" could be enough... :-) (In reply to comment #2) > Also another bit wrt this bug might be support for epatch_user, but that > thing must be redone a bit. > > If it would be enabled on "all packages" then it must be obvious from > starters if the patches are provided by user or by us. Something in > emerge.log about those with huge "!!!! USER_PATCH: > blabla-i-screwed-my-build.patch" could be enough... :-) Well, I'd say it's pretty obvious right now that the code would have to be quite verbose. Hmm but we don't have epatch in the EAPI. We should have a bug for that as well. I don't really want EAPI once again not to provide the tools it uses. epatch is not in PMS, so how does this compute? (In reply to comment #4) > epatch is not in PMS, so how does this compute? I see two possibilities: a) we add epatch ;), b) we use something like 'patch -p1' and end the epatch mess. I am for a) Should both an array and a whitespace separated list be supported, as in base.eclass? That would also be consistent with the DOCS variable. (In reply to Ulrich Müller from comment #7) > Should both an array and a whitespace separated list be supported, as in > base.eclass? That would also be consistent with the DOCS variable. Indiferent, whatever is inlined with rest of the variables would be best. OTOH question is how many packages do we have that still use non-array patches if it is really really needed. We support whitespace separated lists for all other package manager variables, so I think for reasons of consistency we should support them also for PATCHES. Also it is trivial to implement (simply copy the test for the DOCS variable from src_install). |