* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me
@ 2013-01-20 2:15 ` Chris Larson
0 siblings, 0 replies; 13+ messages in thread
From: Chris Larson @ 2013-01-20 2:15 UTC (permalink / raw)
To: lei yang; +Cc: bitbake-devel, Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 442 bytes --]
On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
> it doe noting,and trying to find COPING,but it doesn't clone it
>
This is the correct syntax. The URL scheme (git://) determines what bitbake
fetcher, and therefore what tool, is used to fetch. If you use http://,
it'll try to download it with wget, not git.
--
Christopher Larson
[-- Attachment #2: Type: text/html, Size: 871 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: git address in SRC_URI, doesn't works for me
2013-01-20 2:15 ` [bitbake-devel] " Chris Larson
@ 2013-01-20 4:27 ` lei yang
-1 siblings, 0 replies; 13+ messages in thread
From: lei yang @ 2013-01-20 4:27 UTC (permalink / raw)
To: Chris Larson
Cc: bitbake-devel, Patches and discussions about the oe-core layer
On Sun, Jan 20, 2013 at 10:15 AM, Chris Larson <clarson@kergoth.com> wrote:
>
> On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
>>
>> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
>> it doe noting,and trying to find COPING,but it doesn't clone it
>
>
> This is the correct syntax. The URL scheme (git://) determines what bitbake
> fetcher, and therefore what tool, is used to fetch. If you use http://,
> it'll try to download it with wget, not git.
> --
> Christopher Larson
But, the fact is git://git.opensvc.com/multipath-tools/.git can't be
used, you can't git clone git://git.opensvc.com/multipath-tools/.git
(git:// is not valid this this git repos)
but you can "git clone http://git.opensvc.com/multipath-tools/.git",
I think bitbake doesn't handle this
Lei
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me
@ 2013-01-20 4:27 ` lei yang
0 siblings, 0 replies; 13+ messages in thread
From: lei yang @ 2013-01-20 4:27 UTC (permalink / raw)
To: Chris Larson
Cc: bitbake-devel, Patches and discussions about the oe-core layer
On Sun, Jan 20, 2013 at 10:15 AM, Chris Larson <clarson@kergoth.com> wrote:
>
> On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
>>
>> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
>> it doe noting,and trying to find COPING,but it doesn't clone it
>
>
> This is the correct syntax. The URL scheme (git://) determines what bitbake
> fetcher, and therefore what tool, is used to fetch. If you use http://,
> it'll try to download it with wget, not git.
> --
> Christopher Larson
But, the fact is git://git.opensvc.com/multipath-tools/.git can't be
used, you can't git clone git://git.opensvc.com/multipath-tools/.git
(git:// is not valid this this git repos)
but you can "git clone http://git.opensvc.com/multipath-tools/.git",
I think bitbake doesn't handle this
Lei
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: git address in SRC_URI, doesn't works for me
2013-01-20 2:15 ` [bitbake-devel] " Chris Larson
@ 2013-01-20 6:08 ` lei yang
-1 siblings, 0 replies; 13+ messages in thread
From: lei yang @ 2013-01-20 6:08 UTC (permalink / raw)
To: Chris Larson
Cc: bitbake-devel, Patches and discussions about the oe-core layer
On Sun, Jan 20, 2013 at 10:15 AM, Chris Larson <clarson@kergoth.com> wrote:
>
> On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
>>
>> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
>> it doe noting,and trying to find COPING,but it doesn't clone it
>
>
> This is the correct syntax. The URL scheme (git://) determines what bitbake
> fetcher, and therefore what tool, is used to fetch. If you use http://,
> it'll try to download it with wget, not git.
> -
Correct, now it works for me, what protocol determines, , I thought
SRC_URS="address;protocol=*"
The address should be a real address, now I know it's not , a strange usage
Thanks
Lei
> Christopher Larson
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me
@ 2013-01-20 6:08 ` lei yang
0 siblings, 0 replies; 13+ messages in thread
From: lei yang @ 2013-01-20 6:08 UTC (permalink / raw)
To: Chris Larson
Cc: bitbake-devel, Patches and discussions about the oe-core layer
On Sun, Jan 20, 2013 at 10:15 AM, Chris Larson <clarson@kergoth.com> wrote:
>
> On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
>>
>> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
>> it doe noting,and trying to find COPING,but it doesn't clone it
>
>
> This is the correct syntax. The URL scheme (git://) determines what bitbake
> fetcher, and therefore what tool, is used to fetch. If you use http://,
> it'll try to download it with wget, not git.
> -
Correct, now it works for me, what protocol determines, , I thought
SRC_URS="address;protocol=*"
The address should be a real address, now I know it's not , a strange usage
Thanks
Lei
> Christopher Larson
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: git address in SRC_URI, doesn't works for me
2013-01-20 6:08 ` [bitbake-devel] " lei yang
@ 2013-01-20 14:05 ` Bernhard Reutner-Fischer
-1 siblings, 0 replies; 13+ messages in thread
From: Bernhard Reutner-Fischer @ 2013-01-20 14:05 UTC (permalink / raw)
To: lei yang, Chris Larson
Cc: bitbake-devel, Patches and discussions about the oe-core layer
On 20 January 2013 07:08:35 lei yang <yanglei.fage@gmail.com> wrote:
> On Sun, Jan 20, 2013 at 10:15 AM, Chris Larson <clarson@kergoth.com> wrote:
> >
> > On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
> >>
> >> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
> >> it doe noting,and trying to find COPING,but it doesn't clone it
> >
> >
> > This is the correct syntax. The URL scheme (git://) determines what bitbake
> > fetcher, and therefore what tool, is used to fetch. If you use http://,
> > it'll try to download it with wget, not git.
> > -
>
>
> Correct, now it works for me, what protocol determines, , I thought
> SRC_URS="address;protocol=*"
> The address should be a real address, now I know it's not , a strange usage
Yes, it is very counterintuitive (but cannot be corrected easily due to
gazillions of recipes that use this unfortunate scheme).
Sent with AquaMail for Android
http://www.aqua-mail.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me
@ 2013-01-20 14:05 ` Bernhard Reutner-Fischer
0 siblings, 0 replies; 13+ messages in thread
From: Bernhard Reutner-Fischer @ 2013-01-20 14:05 UTC (permalink / raw)
To: lei yang, Chris Larson
Cc: bitbake-devel, Patches and discussions about the oe-core layer
On 20 January 2013 07:08:35 lei yang <yanglei.fage@gmail.com> wrote:
> On Sun, Jan 20, 2013 at 10:15 AM, Chris Larson <clarson@kergoth.com> wrote:
> >
> > On Sat, Jan 19, 2013 at 2:13 AM, lei yang <yanglei.fage@gmail.com> wrote:
> >>
> >> SRC_URI = "git://git.opensvc.com/multipath-tools/.git;protocol=http"
> >> it doe noting,and trying to find COPING,but it doesn't clone it
> >
> >
> > This is the correct syntax. The URL scheme (git://) determines what bitbake
> > fetcher, and therefore what tool, is used to fetch. If you use http://,
> > it'll try to download it with wget, not git.
> > -
>
>
> Correct, now it works for me, what protocol determines, , I thought
> SRC_URS="address;protocol=*"
> The address should be a real address, now I know it's not , a strange usage
Yes, it is very counterintuitive (but cannot be corrected easily due to
gazillions of recipes that use this unfortunate scheme).
Sent with AquaMail for Android
http://www.aqua-mail.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: git address in SRC_URI, doesn't works for me
2013-01-20 14:05 ` [bitbake-devel] " Bernhard Reutner-Fischer
@ 2013-01-20 20:07 ` Chris Larson
-1 siblings, 0 replies; 13+ messages in thread
From: Chris Larson @ 2013-01-20 20:07 UTC (permalink / raw)
To: Bernhard Reutner-Fischer
Cc: bitbake-devel, Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
As I already explained, the url scheme determines the tool to be used.
http:// will call wget. git:// will call git. protocol= controls the
underlying protocol it's fetched over. Not that complex. The alternative
would be to reverse them, meaning you'd have to tell bitbake not to use
wget for a http:// uri. Neither will magically know that a given
http://uri is a git repository.
--
Christopher Larson
[-- Attachment #2: Type: text/html, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread