| Summary: | allow alternates with full protocol specs for improving bitbake git functionality | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Alexander Stohr <alexander.stohr> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | leonardo.sandoval.gonzalez, poky.bs.watcher, poky.watcher, randy.macleod, sgw |
| Version: | unspecified | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Alexander Stohr
2016-06-24 18:44:33 UTC
This is really complicated because different people want different things, sometimes even depending on their location. Rather than adding more syntax, it would make most sense to use MIRRORS and PREMIRRORS to handle this. That also gives a convenient way of setting policy. Its likely that MIRRORS doesn't quite have enough magic to handle the parameter part of the urls so that would need to be fixed. We'd also want to add tests to bitbake-selftest for this. I am worried about putting more complexity into what is already a complex piece of code which is why I don't want to rush into changing this, or add yet more syntax which potentially conflicts with MIRRORS. A totally generic "use X, Y, Z" in order of preference isn't possible since not all urls support all protocols and even when they do the form can be different. An example is git.yoctoproject.org where https ans git work but the urls are slightly different. That said, there are possibilities and remapping urls like this is basically what MIRRORS and PREMIRRORS are for. The good news is that parameter remapping now also works, so it is possible to take a protocol=git parameter and change it to protocol=https, or add a new parameter in a mirror url and other forms of manipulation too. With that now working I believe this issue is addressed as much as we can ever make it. |