| Summary: | git-r3.eclass does not allow to disable submodules | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Nikoli <nikoli> |
| Component: | Eclasses | Assignee: | Michał Górny <mgorny> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | public, rafaelmartins, reagentoo, rei4dan, robbat2, rossi.f |
| Priority: | Normal | Keywords: | NeedPatch |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | EGIT_SUBMODULES support patch | ||
|
Description
Nikoli
2014-01-05 19:35:09 UTC
I'm for adding something like a list of allowed EGIT_SUBMODULES. Much like: - EGIT_SUBMODULES not declared -- download all, - EGIT_SUBMODULES=() -- disable completely, - EGIT_SUBMODUELS=( /foo /bar ) -- only /foo and /bar. mgorny: I have a usage case for this as well, a repo that has a lot of testing data in submodules, so I'd like to wrap it behind USE=test. I think it should probably be a blacklist of submodules to NOT check out. I guess blacklist with wildcards would work as well. Any idea of when it's gonna be fixed? Pretty needed for a ppsspp patch I'm thinking of doing. The most correct answer is: when someone writes a patch for it. I don't know when I'll have time for it. Ok, I'm going to have a patch for this this evening. Created attachment 435130 [details, diff]
EGIT_SUBMODULES support patch
Please test the attached patch.
commit 1c8f9f89ccac3382df4a0bfdddb6918b24489f69 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Mon May 23 21:51:57 2016 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Thu May 26 10:58:08 2016 git-r3.eclass: Support EGIT_SUBMODULES to filter used submodules, #497164 Also: commit f3090936d98f1565ca10bc9eb78680b1e33a6536 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Thu May 26 10:34:28 2016 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Thu May 26 10:58:08 2016 media-video/aegisub: Switch to git-r3 Switch the live ebuild to git-r3, using the new EGIT_SUBMODULES API. (In reply to Michał Górny from comment #8) Thank you very much for your work on this problem and additional thanks for updating aegisub-9999. |