Openembedded Core Discussions
 help / color / mirror / Atom feed
* Multiple git repos in SRC_URI and/or git submodules support
@ 2011-10-10 18:19 Koen Kooi
  2011-10-10 19:40 ` Otavio Salvador
  0 siblings, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2011-10-10 18:19 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hi,

In meta-oe we have a recipe that is using git submodules to drag it parts of the source and to do it is doing the submodule fetching in do_configure. This is bad for various reasons, so I'd like to fix it. The options I see:

1) Make fetch2 to do git clone --recursive and later realize it is now non-determistic
2) Use multiple git repos in SRC_URI and then to cp/mv/etc to emulate submodules
3) convince upstream submodules are bad

I'm not going to do 1), 3) is unlikely, so I want to ask if 2) is already supported. I've seen various patches that add an 'unpackdir' or similar, but I can't find any docs on it. Can someone enlighten me on the current status of that?

regards,

Koen


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

* Re: Multiple git repos in SRC_URI and/or git submodules support
  2011-10-10 18:19 Multiple git repos in SRC_URI and/or git submodules support Koen Kooi
@ 2011-10-10 19:40 ` Otavio Salvador
  2011-10-10 20:01   ` Koen Kooi
  2011-10-10 20:34   ` Richard Purdie
  0 siblings, 2 replies; 6+ messages in thread
From: Otavio Salvador @ 2011-10-10 19:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Oct 10, 2011 at 15:19, Koen Kooi <koen@dominion.thruhere.net> wrote:
...
> I'm not going to do 1), 3) is unlikely, so I want to ask if 2) is already supported. I've seen various patches that add an 'unpackdir' or similar, but I can't find any docs on it. Can someone enlighten me on the current status of that?
...

Yes, this works. I have added support to SRCREV_FORMAT into gitpkgv too ;-)

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: Multiple git repos in SRC_URI and/or git submodules support
  2011-10-10 19:40 ` Otavio Salvador
@ 2011-10-10 20:01   ` Koen Kooi
  2011-10-10 20:14     ` Otavio Salvador
  2011-10-10 20:34   ` Richard Purdie
  1 sibling, 1 reply; 6+ messages in thread
From: Koen Kooi @ 2011-10-10 20:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 10 okt. 2011, om 21:40 heeft Otavio Salvador het volgende geschreven:

> On Mon, Oct 10, 2011 at 15:19, Koen Kooi <koen@dominion.thruhere.net> wrote:
> ...
>> I'm not going to do 1), 3) is unlikely, so I want to ask if 2) is already supported. I've seen various patches that add an 'unpackdir' or similar, but I can't find any docs on it. Can someone enlighten me on the current status of that?
> ...
> 
> Yes, this works. I have added support to SRCREV_FORMAT into gitpkgv too ;-)

So what's the magic param I need to pass to the fetcher to make this work?


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

* Re: Multiple git repos in SRC_URI and/or git submodules support
  2011-10-10 20:01   ` Koen Kooi
@ 2011-10-10 20:14     ` Otavio Salvador
  2011-10-14  7:50       ` Koen Kooi
  0 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2011-10-10 20:14 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, Oct 10, 2011 at 17:01, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> Op 10 okt. 2011, om 21:40 heeft Otavio Salvador het volgende geschreven:
>
>> On Mon, Oct 10, 2011 at 15:19, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> ...
>>> I'm not going to do 1), 3) is unlikely, so I want to ask if 2) is already supported. I've seen various patches that add an 'unpackdir' or similar, but I can't find any docs on it. Can someone enlighten me on the current status of that?
>> ...
>>
>> Yes, this works. I have added support to SRCREV_FORMAT into gitpkgv too ;-)
>
> So what's the magic param I need to pass to the fetcher to make this work?

Basic example:

SRCREV_main = "..."
SRCREV_core = "...."

SRC_URI = " \
  git://fooserver/git/foo.git;name=main \
  git://fooserver/git/foo-core.git;name=core;destsuffix=git/foo-core"
S = "${WORKDIR}/git"

SRCREV_FORMAT = "main-core"

Enjoy ;-)

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



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

* Re: Multiple git repos in SRC_URI and/or git submodules support
  2011-10-10 19:40 ` Otavio Salvador
  2011-10-10 20:01   ` Koen Kooi
@ 2011-10-10 20:34   ` Richard Purdie
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2011-10-10 20:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2011-10-10 at 16:40 -0300, Otavio Salvador wrote:
> On Mon, Oct 10, 2011 at 15:19, Koen Kooi <koen@dominion.thruhere.net> wrote:
> ...
> > I'm not going to do 1), 3) is unlikely, so I want to ask if 2) is
> already supported. I've seen various patches that add an 'unpackdir'
> or similar, but I can't find any docs on it. Can someone enlighten me
> on the current status of that?
> ...
> 
> Yes, this works. I have added support to SRCREV_FORMAT into gitpkgv too ;-)

Just to be clear, something like:

SRC_URI = "\
  git://foo.git?subpath=bar \
  git://foo2.git?subpath=bar2 \
"

should work but I can think of reasons why it might get confused. Try
it, report back and if it fails we can figure out ways to fix it...

Cheers,

Richard







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

* Re: Multiple git repos in SRC_URI and/or git submodules support
  2011-10-10 20:14     ` Otavio Salvador
@ 2011-10-14  7:50       ` Koen Kooi
  0 siblings, 0 replies; 6+ messages in thread
From: Koen Kooi @ 2011-10-14  7:50 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 10 okt. 2011, om 22:14 heeft Otavio Salvador het volgende geschreven:

> On Mon, Oct 10, 2011 at 17:01, Koen Kooi <koen@dominion.thruhere.net> wrote:
>> 
>> Op 10 okt. 2011, om 21:40 heeft Otavio Salvador het volgende geschreven:
>> 
>>> On Mon, Oct 10, 2011 at 15:19, Koen Kooi <koen@dominion.thruhere.net> wrote:
>>> ...
>>>> I'm not going to do 1), 3) is unlikely, so I want to ask if 2) is already supported. I've seen various patches that add an 'unpackdir' or similar, but I can't find any docs on it. Can someone enlighten me on the current status of that?
>>> ...
>>> 
>>> Yes, this works. I have added support to SRCREV_FORMAT into gitpkgv too ;-)
>> 
>> So what's the magic param I need to pass to the fetcher to make this work?
> 
> Basic example:
> 
> SRCREV_main = "..."
> SRCREV_core = "...."
> 
> SRC_URI = " \
>  git://fooserver/git/foo.git;name=main \
>  git://fooserver/git/foo-core.git;name=core;destsuffix=git/foo-core"
> S = "${WORKDIR}/git"
> 
> SRCREV_FORMAT = "main-core"

Thanks, I'm going to try the following:

SRC_URI = "git://github.com/ajaxorg/cloud9.git;name=cloud9ide \
           git://github.com/ajaxorg/connect.git;destsuffix=support/connect;name=connect \
           git://github.com/ajaxorg/async.js.git;destsuffix=support/asyncjs;name=asyncjs \
           git://github.com/ajaxorg/jsDAV.git;destsuffix=support/jsdav;name=jsdav \
           git://github.com/ajaxorg/lib-v8debug.git;destsuffix=support/lib-v8debug;name=lib-v8debug \
           git://github.com/ajaxorg/ace.git;destsuffix=support/ace;name=ace \
           git://github.com/ajaxorg/apf.git;destsuffix=support/apf;name=apf \
           git://github.com/ajaxorg/node-builds-v4.git;destsuffix=support/node-builds-v4;name=node-builds-v4 \
           git://github.com/ajaxorg/gnu-builds.git;destsuffix=support/gnu-builds;name=gnu-builds \
           git://github.com/ajaxorg/socket.io.git;destsuffix=support/socket.io;name=socketio \
           git://github.com/ajaxorg/socket.io-client.git;destsuffix=support/socket.io-client;name=socketio-client \
           git://github.com/ajaxorg/UglifyJS.git;destsuffix=support/uglify-js;name=uglifyjs \
           file://cloud9.service \
          "

SRCREV_cloud9ide = "593948c9aaded845cb8f3ced49ef41428e351264"
SRCREV_connect = "3d1d77a113fa2f18020f562832dca3d4c2d717a2"
SRCREV_asyncjs = "d36ead408e2959b1e99572114ef3a1b6a48c1072"
SRCREV_jsdav = "f1d1f691fdb521701c1c06d158d213575e4e4e5e"
SRCREV_lib-v8debug = "29b20d01e6854da2173e1665ea141dab6b5a8104"
SRCREV_ace = "d85acd115e88e4461a04fafc6a93a801aeb057ec"
SRCREV_apf = "a7e0daa29573f319f22be5a6cfa275243502604b"
SRCREV_node-builds-v4 = "2e3ac47b7b8d506147feb08372cc36b988b6195a"
SRCREV_gnu-builds = "9ff133d95f9a41d749fe16220d81517dad9a2db3"
SRCREV_socketio = "8f82b1e4e1076a3092fed77e0dc9379425f59b9d"
SRCREV_socketio-client = "7b5335d1ed88564928a5d00d8a750ff9f9c627a5"
SRCREV_uglifyjs = "941c845c4a01e4e47a158458fe846eb36d0828ad"

SRCREV_FORMAT = "cloud9ide"




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

end of thread, other threads:[~2011-10-14  7:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-10 18:19 Multiple git repos in SRC_URI and/or git submodules support Koen Kooi
2011-10-10 19:40 ` Otavio Salvador
2011-10-10 20:01   ` Koen Kooi
2011-10-10 20:14     ` Otavio Salvador
2011-10-14  7:50       ` Koen Kooi
2011-10-10 20:34   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox