* git address in SRC_URI, doesn't works for me @ 2013-01-19 9:13 lei yang 2013-01-20 2:15 ` [bitbake-devel] " Chris Larson 2013-01-22 10:36 ` Paul Eggleton 0 siblings, 2 replies; 7+ messages in thread From: lei yang @ 2013-01-19 9:13 UTC (permalink / raw) To: openembedded-core, bitbake-devel Hi experts. One git address's prefix is "http" ---> http://git.opensvc.com/multipath-tools/.git, it means git clone http://git.opensvc.com/multipath-tools/.git ---------> works git clone git://git.opensvc.com/multipath-tools/.git ---------> doesn't work I tried SRC_URI with below, both failed SRC_URI = "http://git.opensvc.com/multipath-tools/.git;protocol=git" it tells fatal: reference is not a tree: c23c0d33ed98a1dcee40115018b73cb3d4cda8d7 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 any help? Lei ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me 2013-01-19 9:13 git address in SRC_URI, doesn't works for me lei yang @ 2013-01-20 2:15 ` Chris Larson 2013-01-20 4:27 ` lei yang 2013-01-20 6:08 ` lei yang 2013-01-22 10:36 ` Paul Eggleton 1 sibling, 2 replies; 7+ messages in thread From: Chris Larson @ 2013-01-20 2:15 UTC (permalink / raw) To: lei yang Cc: bitbake-devel@lists.openembedded.org, 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] 7+ messages in thread
* Re: [bitbake-devel] 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 2013-01-20 6:08 ` lei yang 1 sibling, 0 replies; 7+ messages in thread From: lei yang @ 2013-01-20 4:27 UTC (permalink / raw) To: Chris Larson Cc: bitbake-devel@lists.openembedded.org, 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] 7+ messages in thread
* Re: [bitbake-devel] 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 @ 2013-01-20 6:08 ` lei yang 2013-01-20 14:05 ` Bernhard Reutner-Fischer 1 sibling, 1 reply; 7+ messages in thread From: lei yang @ 2013-01-20 6:08 UTC (permalink / raw) To: Chris Larson Cc: bitbake-devel@lists.openembedded.org, 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] 7+ messages in thread
* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me 2013-01-20 6:08 ` lei yang @ 2013-01-20 14:05 ` Bernhard Reutner-Fischer 2013-01-20 20:07 ` Chris Larson 0 siblings, 1 reply; 7+ messages in thread From: Bernhard Reutner-Fischer @ 2013-01-20 14:05 UTC (permalink / raw) To: lei yang, Chris Larson Cc: bitbake-devel@lists.openembedded.org, 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] 7+ messages in thread
* Re: [bitbake-devel] git address in SRC_URI, doesn't works for me 2013-01-20 14:05 ` Bernhard Reutner-Fischer @ 2013-01-20 20:07 ` Chris Larson 0 siblings, 0 replies; 7+ messages in thread From: Chris Larson @ 2013-01-20 20:07 UTC (permalink / raw) To: Bernhard Reutner-Fischer Cc: bitbake-devel@lists.openembedded.org, 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] 7+ messages in thread
* Re: git address in SRC_URI, doesn't works for me 2013-01-19 9:13 git address in SRC_URI, doesn't works for me lei yang 2013-01-20 2:15 ` [bitbake-devel] " Chris Larson @ 2013-01-22 10:36 ` Paul Eggleton 1 sibling, 0 replies; 7+ messages in thread From: Paul Eggleton @ 2013-01-22 10:36 UTC (permalink / raw) To: lei yang; +Cc: bitbake-devel, openembedded-core On Saturday 19 January 2013 17:13:01 lei yang wrote: > One git address's prefix is "http" ---> > http://git.opensvc.com/multipath-tools/.git, > > it means > > git clone http://git.opensvc.com/multipath-tools/.git ---------> works > git clone git://git.opensvc.com/multipath-tools/.git ---------> doesn't work > > I tried SRC_URI with below, both failed > > SRC_URI = "http://git.opensvc.com/multipath-tools/.git;protocol=git" > it tells > fatal: reference is not a tree: c23c0d33ed98a1dcee40115018b73cb3d4cda8d7 > > > 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 I think you already got this answered on IRC, but for reference you need to use git://....;protocol=http and not http://.....;protocol=git. BitBake uses the prefix to determine which fetcher to use (matching the type of repository being fetched from) and then each individual fetcher decides the meaning of the protocol argument. In this case you're fetching from a git repository using the HTTP transport protocol. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-01-22 10:52 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-01-19 9:13 git address in SRC_URI, doesn't works for me lei yang 2013-01-20 2:15 ` [bitbake-devel] " Chris Larson 2013-01-20 4:27 ` lei yang 2013-01-20 6:08 ` lei yang 2013-01-20 14:05 ` Bernhard Reutner-Fischer 2013-01-20 20:07 ` Chris Larson 2013-01-22 10:36 ` Paul Eggleton
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox