All of lore.kernel.org
 help / color / mirror / Atom feed
* Support for git+https://foo.example.com like URIs
@ 2020-06-25 13:42 Enrico Scholz
  2020-06-25 14:44 ` [bitbake-devel] " Paul Barker
  2020-06-28  7:51 ` Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: Enrico Scholz @ 2020-06-25 13:42 UTC (permalink / raw)
  To: bitbake-devel

Hello,

for some years we are using a mechanism which allows to encode the
protocol ("https", "file", ...) within the base uri.  So, we can write


| PROJECT_BASE_URI = "git+https://foo.example.com/project"
| SRC_URI = "${PROJECT_BASE_URI}/some-repo"

instead of

| PROJECT_BASE_URI = "git://foo.example.com/project"
| PROJECT_BASE_PROTOCOL = "https"
| SRC_URI = "${PROJECT_BASE_URI}/some-repo;protocol=${PROJECT_BASE_PROTOCOL}"


Four years ago I wrote a bug report [1] with a patch against bitbake
itself which was more or less rejected.

In the meantime, I moved this out in an OE class [2] which overrides
'bb.fetch.decodeurl'.


Is there some generic interest in this functionality so that I can
create and send a patch for bitbake?  Or is this too special and people
are happy with altering ${MIRROR}?



Enrico

Footnotes: 
[1]  https://bugzilla.yoctoproject.org/show_bug.cgi?id=9738

[2]  https://github.com/sigma-embedded/meta-de.sigma-chemnitz/blob/zeus/classes/elito-uridecode.bbclass
     https://github.com/sigma-embedded/meta-de.sigma-chemnitz/blob/zeus/lib/elito/__init__.py

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-06-28 10:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-25 13:42 Support for git+https://foo.example.com like URIs Enrico Scholz
2020-06-25 14:44 ` [bitbake-devel] " Paul Barker
2020-06-25 14:58   ` Enrico Scholz
2020-06-28  7:51 ` Richard Purdie
2020-06-28  9:48   ` Enrico Scholz
2020-06-28 10:10     ` Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.