* RFC One recipe with two git repository as sources
@ 2011-06-23 11:18 Holger Freyther
2011-06-23 11:21 ` Phil Blundell
0 siblings, 1 reply; 8+ messages in thread
From: Holger Freyther @ 2011-06-23 11:18 UTC (permalink / raw)
To: openembedded-devel
Hi all,
I have some messy source (as the cleanup is going on), I need to pull the new
code from one repo and some files from the old one. Now in the recipes I have:
SRC_URI = "git://git@....git;protocol=ssh;name=first \
git://git@....git;protocol=ssh;name=second"
SRCREV_FORMAT = "first-rsecond"
SRCREV_first = "ABC"
SRCREV_second = "DEF"
PV = "0.0+git${SRCPV}"
(too bad that we have inconsistency between git, gitr again)
This is all fluffy, the right things seem to be cloned but there is only one
${WORKDIR}/git and one or the other will end up in there. Somehow I think we
had something like this before but here is the proposal:
Introduce a ;destsuffix=DEST so the code will be checked out to DEST/ instead
of git/.
comments?
holger
commit e45b5b3b917eaba42052760c82c9b4ca57670136
Author: Holger Hans Peter Freyther <holger@moiji-mobile.com>
Date: Thu Jun 23 04:50:13 2011 +0800
fetch2/git: Allow to specify the name of the checkout directory
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 6979bea..4d45b48 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -209,7 +209,9 @@ class Git(FetchMethod):
else:
readpathspec = ""
- destdir = os.path.join(destdir, "git/")
+ destsuffix = ud.parm.get("destsuffix", "git/")
+ print destsuffix
+ destdir = os.path.join(destdir, destsuffix)
if os.path.exists(destdir):
bb.utils.prunedir(destdir)
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: RFC One recipe with two git repository as sources
2011-06-23 11:18 RFC One recipe with two git repository as sources Holger Freyther
@ 2011-06-23 11:21 ` Phil Blundell
2011-06-23 11:36 ` Holger Freyther
2011-07-01 13:37 ` Holger Freyther
0 siblings, 2 replies; 8+ messages in thread
From: Phil Blundell @ 2011-06-23 11:21 UTC (permalink / raw)
To: openembedded-devel
On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
> - destdir = os.path.join(destdir, "git/")
> + destsuffix = ud.parm.get("destsuffix", "git/")
> + print destsuffix
> + destdir = os.path.join(destdir, destsuffix)
I think that "print" might be extraneous, but other than this your patch
looks awesome. I think this would resolve the problem that I was having
in
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-June/004375.html and to which I never found a solution which didn't involve patching bitbake.
p.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFC One recipe with two git repository as sources
2011-06-23 11:21 ` Phil Blundell
@ 2011-06-23 11:36 ` Holger Freyther
2011-06-23 14:25 ` Phil Blundell
2011-07-01 13:37 ` Holger Freyther
1 sibling, 1 reply; 8+ messages in thread
From: Holger Freyther @ 2011-06-23 11:36 UTC (permalink / raw)
To: openembedded-devel
On 06/23/2011 01:21 PM, Phil Blundell wrote:
> On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
>> - destdir = os.path.join(destdir, "git/")
>> + destsuffix = ud.parm.get("destsuffix", "git/")
>> + print destsuffix
>> + destdir = os.path.join(destdir, destsuffix)
>
> I think that "print" might be extraneous, but other than this your patch
> looks awesome. I think this would resolve the problem that I was having
> in.
great, yeah the print is bogus and the question if and how this applies to
fetch/git.py is also unresolved (i had a quick look but have not found the
dirname it uses to create the tarball).
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFC One recipe with two git repository as sources
2011-06-23 11:36 ` Holger Freyther
@ 2011-06-23 14:25 ` Phil Blundell
2011-06-23 14:37 ` Mark Hatle
2011-06-23 14:37 ` Koen Kooi
0 siblings, 2 replies; 8+ messages in thread
From: Phil Blundell @ 2011-06-23 14:25 UTC (permalink / raw)
To: openembedded-devel
On Thu, 2011-06-23 at 13:36 +0200, Holger Freyther wrote:
> On 06/23/2011 01:21 PM, Phil Blundell wrote:
> > On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
> >> - destdir = os.path.join(destdir, "git/")
> >> + destsuffix = ud.parm.get("destsuffix", "git/")
> >> + print destsuffix
> >> + destdir = os.path.join(destdir, destsuffix)
> >
> > I think that "print" might be extraneous, but other than this your patch
> > looks awesome. I think this would resolve the problem that I was having
> > in.
>
> great, yeah the print is bogus and the question if and how this applies to
> fetch/git.py is also unresolved (i had a quick look but have not found the
> dirname it uses to create the tarball).
I'm not entirely clear on what's going on with fetch vs fetch2 at all,
in terms of whether fetch is going away at some point or the two of them
are meant to be existing in parallel. Can one of the TSC überhackers
shed any light on what the intent is there?
p.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFC One recipe with two git repository as sources
2011-06-23 14:25 ` Phil Blundell
@ 2011-06-23 14:37 ` Mark Hatle
2011-06-23 14:37 ` Koen Kooi
1 sibling, 0 replies; 8+ messages in thread
From: Mark Hatle @ 2011-06-23 14:37 UTC (permalink / raw)
To: openembedded-devel
On 6/23/11 9:25 AM, Phil Blundell wrote:
> On Thu, 2011-06-23 at 13:36 +0200, Holger Freyther wrote:
>> On 06/23/2011 01:21 PM, Phil Blundell wrote:
>>> On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
>>>> - destdir = os.path.join(destdir, "git/")
>>>> + destsuffix = ud.parm.get("destsuffix", "git/")
>>>> + print destsuffix
>>>> + destdir = os.path.join(destdir, destsuffix)
>>>
>>> I think that "print" might be extraneous, but other than this your patch
>>> looks awesome. I think this would resolve the problem that I was having
>>> in.
>>
>> great, yeah the print is bogus and the question if and how this applies to
>> fetch/git.py is also unresolved (i had a quick look but have not found the
>> dirname it uses to create the tarball).
>
> I'm not entirely clear on what's going on with fetch vs fetch2 at all,
> in terms of whether fetch is going away at some point or the two of them
> are meant to be existing in parallel. Can one of the TSC überhackers
> shed any light on what the intent is there?
>
"fetch" is remaining for compatibility for the time being. I believe the intent
is that fetch will go away when compatibility is no longer needed or desired.
--Mark
> p.
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: RFC One recipe with two git repository as sources
2011-06-23 14:25 ` Phil Blundell
2011-06-23 14:37 ` Mark Hatle
@ 2011-06-23 14:37 ` Koen Kooi
1 sibling, 0 replies; 8+ messages in thread
From: Koen Kooi @ 2011-06-23 14:37 UTC (permalink / raw)
To: openembedded-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 23-06-11 16:25, Phil Blundell wrote:
> On Thu, 2011-06-23 at 13:36 +0200, Holger Freyther wrote:
>> On 06/23/2011 01:21 PM, Phil Blundell wrote:
>>> On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
>>>> - destdir = os.path.join(destdir, "git/")
>>>> + destsuffix = ud.parm.get("destsuffix", "git/")
>>>> + print destsuffix
>>>> + destdir = os.path.join(destdir, destsuffix)
>>>
>>> I think that "print" might be extraneous, but other than this your patch
>>> looks awesome. I think this would resolve the problem that I was having
>>> in.
>>
>> great, yeah the print is bogus and the question if and how this applies to
>> fetch/git.py is also unresolved (i had a quick look but have not found the
>> dirname it uses to create the tarball).
>
> I'm not entirely clear on what's going on with fetch vs fetch2 at all,
> in terms of whether fetch is going away at some point or the two of them
> are meant to be existing in parallel. Can one of the TSC überhackers
> shed any light on what the intent is there?
Fetch2 is being used in OE-core, fetch is there for "old-style" OE like
.dev and 2011.03-maintenance.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFOA0+0MkyGM64RGpERAsmAAJ9D/PrqNupsL/pIF6ClrD39r+RZhQCgpbM+
Rj2c9UxKldqANJJiua4rRNA=
=xv3k
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [oe] RFC One recipe with two git repository as sources
2011-06-23 11:21 ` Phil Blundell
@ 2011-07-01 13:37 ` Holger Freyther
2011-07-01 13:37 ` Holger Freyther
1 sibling, 0 replies; 8+ messages in thread
From: Holger Freyther @ 2011-07-01 13:37 UTC (permalink / raw)
To: openembedded-devel, bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
On 06/23/2011 01:21 PM, Phil Blundell wrote:
> On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
>> - destdir = os.path.join(destdir, "git/")
>> + destsuffix = ud.parm.get("destsuffix", "git/")
>> + print destsuffix
>> + destdir = os.path.join(destdir, destsuffix)
>
> I think that "print" might be extraneous, but other than this your patch
> looks awesome. I think this would resolve the problem that I was having
> in
> http://lists.linuxtogo.org/pipermail/openembedded-core/2011-June/004375.html and to which I never found a solution which didn't involve patching bitbake.
>
Hi all,
updated patch without the debug print statement in it. what do you think?
could this be applied to the bitbake repository?
holger
[-- Attachment #2: 0001-fetch2-git-Allow-to-specify-the-name-of-the-checkout.patch --]
[-- Type: text/x-patch, Size: 910 bytes --]
From 5f58446bd2022c149b58a9f8faf738d1b56597a6 Mon Sep 17 00:00:00 2001
From: Holger Hans Peter Freyther <zecke@selfish.org>
Date: Thu, 23 Jun 2011 04:50:13 +0800
Subject: [PATCH] fetch2/git: Allow to specify the name of the checkout directory
Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
---
lib/bb/fetch2/git.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index f3bc793..534c87d 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -212,7 +212,8 @@ class Git(FetchMethod):
else:
readpathspec = ""
- destdir = os.path.join(destdir, "git/")
+ destsuffix = ud.parm.get("destsuffix", "git/")
+ destdir = os.path.join(destdir, destsuffix)
if os.path.exists(destdir):
bb.utils.prunedir(destdir)
--
1.7.4.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: RFC One recipe with two git repository as sources
@ 2011-07-01 13:37 ` Holger Freyther
0 siblings, 0 replies; 8+ messages in thread
From: Holger Freyther @ 2011-07-01 13:37 UTC (permalink / raw)
To: openembedded-devel, bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 778 bytes --]
On 06/23/2011 01:21 PM, Phil Blundell wrote:
> On Thu, 2011-06-23 at 13:18 +0200, Holger Freyther wrote:
>> - destdir = os.path.join(destdir, "git/")
>> + destsuffix = ud.parm.get("destsuffix", "git/")
>> + print destsuffix
>> + destdir = os.path.join(destdir, destsuffix)
>
> I think that "print" might be extraneous, but other than this your patch
> looks awesome. I think this would resolve the problem that I was having
> in
> http://lists.linuxtogo.org/pipermail/openembedded-core/2011-June/004375.html and to which I never found a solution which didn't involve patching bitbake.
>
Hi all,
updated patch without the debug print statement in it. what do you think?
could this be applied to the bitbake repository?
holger
[-- Attachment #2: 0001-fetch2-git-Allow-to-specify-the-name-of-the-checkout.patch --]
[-- Type: text/x-patch, Size: 910 bytes --]
From 5f58446bd2022c149b58a9f8faf738d1b56597a6 Mon Sep 17 00:00:00 2001
From: Holger Hans Peter Freyther <zecke@selfish.org>
Date: Thu, 23 Jun 2011 04:50:13 +0800
Subject: [PATCH] fetch2/git: Allow to specify the name of the checkout directory
Signed-off-by: Holger Hans Peter Freyther <holger@moiji-mobile.com>
---
lib/bb/fetch2/git.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index f3bc793..534c87d 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -212,7 +212,8 @@ class Git(FetchMethod):
else:
readpathspec = ""
- destdir = os.path.join(destdir, "git/")
+ destsuffix = ud.parm.get("destsuffix", "git/")
+ destdir = os.path.join(destdir, destsuffix)
if os.path.exists(destdir):
bb.utils.prunedir(destdir)
--
1.7.4.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-07-01 13:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-23 11:18 RFC One recipe with two git repository as sources Holger Freyther
2011-06-23 11:21 ` Phil Blundell
2011-06-23 11:36 ` Holger Freyther
2011-06-23 14:25 ` Phil Blundell
2011-06-23 14:37 ` Mark Hatle
2011-06-23 14:37 ` Koen Kooi
2011-07-01 13:37 ` [oe] " Holger Freyther
2011-07-01 13:37 ` Holger Freyther
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.