Summary: | declare usage in env Portage dumps breaks Pkgcore/Paludis | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | David Leverton <levertond> |
Component: | PMS/EAPI | Assignee: | Package Manager Specification <pms> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dev-portage, ferringb |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
David Leverton
2010-03-14 13:09:42 UTC
(In reply to comment #0) > * Add a workaround to Pkgcore and Paludis Paludis in git now copes with this. Thanks to ferringb for noticing and reporting this problem, BTW. The declare changes were done in order fix a probem with saving/loading arrays (bug #297255). Maybe we can find some alternative approach, or transform the declare output so that it's less troublesome. just released pkgcore 0.5.11 working around it. Nasty alias trick, but it suffices. Additional note, as of pkgcore 0.5.11, it's dumping data the same way as portage- basically that cat's out of the bag, so I went that route since portage tries to rely on filtering on declare via an external script. Turns out this also affects ebuilds that use declare in global scope. Do we want to allow that? (It probably won't work in eclasses even with Portage.) (In reply to comment #4) > Turns out this also affects ebuilds that use declare in global scope. Do we > want to allow that? (It probably won't work in eclasses even with Portage.) I'd say declare is pretty much offlimits considering those issues- I sure as shit will not be inlining the env setup and sourcing of ebuilds into my main funcs to support it. Portage *probably* can get away with it since it's ebuild.sh isn't a library, but at some point I'd expect it to become one- then it's in the same boat as pkgcore/paludis. added a workaround for pkgcore a long time ago. If paludis can't handle it... well, 1) this is why environment saving should've been documented (despite certain folk screaming), 2) it's been long enough, portage/pkgcore aren't going to reverse away from declare- thus paludis needs to update their implementation if they haven't yet. |