* bitbake 1.8 badness in using same git for different bb
@ 2008-09-01 10:50 John Lee
2008-09-01 11:09 ` Koen Kooi
2008-09-02 13:47 ` Holger Freyther
0 siblings, 2 replies; 3+ messages in thread
From: John Lee @ 2008-09-01 10:50 UTC (permalink / raw)
To: openembedded-devel
[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]
hi,
in bitbake 1.8 git.py, _revision_key returns ud.host + ud.path, that
means if two bb share the same git dir, the _revision_key will be the
same. that will cause problem if you use AUTOREV. the local count
will keep increasing everytime you call bitbake.
for example, mickeydbus and mickeyterm shared the same dir in the same
git repo, and they are both required for fso-image. so everytime I
run bitbake fso-image the local counts of them will both increase and
I end up with some crazy package names like git24+xxx. for some
reason linux-openmoko has the same symptom but I didn't take time to
find out. maybe that's because linux-openmoko_2.6.24+git.bb and
linux-openmoko-devel_git.bb shared the same git dir as well.
this can be fixed by the attached patch (created by Holger in
bitbake-om), but that will reset the local count thus make anyone uses
the OM repo stop upgrading these packages.
I wonder if anyone has the same problem as well and how does he/she
fixes it.
Regards,
John
[-- Attachment #2: bitbake1.8-fetch-rev.patch --]
[-- Type: text/x-diff, Size: 570 bytes --]
Index: lib/bb/fetch/__init__.py
===================================================================
--- lib/bb/fetch/__init__.py (revision 1079)
+++ lib/bb/fetch/__init__.py (working copy)
@@ -515,6 +515,8 @@
pd = persist_data.PersistData(d)
key = self._revision_key(url, ud, d)
+ key = "%s-%s" % (key, bb.data.getVar("PN", d, True) or "")
+
latest_rev = self._build_revision(url, ud, d)
last_rev = pd.getValue("BB_URI_LOCALCOUNT", key + "_rev")
count = pd.getValue("BB_URI_LOCALCOUNT", key + "_count")
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bitbake 1.8 badness in using same git for different bb
2008-09-01 10:50 bitbake 1.8 badness in using same git for different bb John Lee
@ 2008-09-01 11:09 ` Koen Kooi
2008-09-02 13:47 ` Holger Freyther
1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2008-09-01 11:09 UTC (permalink / raw)
To: openembedded-devel
John Lee wrote:
> hi,
>
> in bitbake 1.8 git.py, _revision_key returns ud.host + ud.path, that
> means if two bb share the same git dir, the _revision_key will be the
> same. that will cause problem if you use AUTOREV. the local count
> will keep increasing everytime you call bitbake.
Related to this: You can't do something like:
SRC_URI = "git://ffmpeg;protocol=git \
git://mplayer/swscale;protocol=git"
since both checkouts will use the 'git' dir in ${WORKDIR}.
regards,
Koen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bitbake 1.8 badness in using same git for different bb
2008-09-01 10:50 bitbake 1.8 badness in using same git for different bb John Lee
2008-09-01 11:09 ` Koen Kooi
@ 2008-09-02 13:47 ` Holger Freyther
1 sibling, 0 replies; 3+ messages in thread
From: Holger Freyther @ 2008-09-02 13:47 UTC (permalink / raw)
To: openembedded-devel
On Monday 01 September 2008 12:50:09 John Lee wrote:
> this can be fixed by the attached patch (created by Holger in
> bitbake-om), but that will reset the local count thus make anyone uses
> the OM repo stop upgrading these packages.
Which brings us to the second patch that needs some work and then merging.
z.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-09-02 13:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 10:50 bitbake 1.8 badness in using same git for different bb John Lee
2008-09-01 11:09 ` Koen Kooi
2008-09-02 13:47 ` 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.