[Buildroot] [PATCH 3/5] pkg-download: allow ssh URLs

Yann E. MORIN yann.morin.1998 at free.fr
Thu Jun 16 19:41:25 UTC 2016


Gilles, All,

On 2016-06-16 21:36 +0200, Gilles Chanteperdrix spake thusly:
> On Wed, Jun 15, 2016 at 11:37:11PM +0200, Yann E. MORIN wrote:
> > Gilles, All,
> > 
> > On 2016-06-15 23:29 +0200, Gilles Chanteperdrix spake thusly:
> > > On Tue, Jun 14, 2016 at 10:14:26PM +0200, Yann E. MORIN wrote:
> > > > Gilles, All,
> > > > 
> > > > On 2016-06-14 17:05 +0200, Gilles Chanteperdrix spake thusly:
> > > > > Use git when such an URL is met.
> > > > 
> > > > What about Hg URLs that can also start with 'ssh://' ?
> > > > 
> > > > I guess we should not try to be smart here, and let users specify the
> > > > method with the _SITE_METHOD variable.
> > > 
> > > Yeah, well, my initial patch proposed git+ssh:// and I was told that
> > > this was deprecated. The conversation lead to a dead-end with nobody
> > > giving me a clear indication of what I should propose.
> > > 
> > > So, let us go back to my initial need: have a package compiled based
> > > on a git over ssh URL. Now if you tell me that there is a way to do
> > > this without patching pkg-download.mk, I am all ears. I did not find
> > > any help on that in the documentation, do you have some pointers?
> > 
> > As far as I understand your requirements, you want to be able to write
> > either of:
> > 
> >     FOO_SITE = user at machine:path/to/repo.git
> > or
> >     FOO_SITE = ssh://user@machine/path/to/rpo.git
> > 
> > You just have to add:
> > 
> >     FOO_SITE_METHOD = git
> > 
> > See the manual, search for _SITE_METHOD: ;-)
> >     https://buildroot.org/downloads/manual/manual.html#generic-package-reference
> 
> Ok, thanks.

So, that fits your requirements? Should your patch be dropped, then?

Regards,
Yann E. MORIN.


-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'


More information about the buildroot mailing list