[oe] SRCREV change bitbake bug

Richard Purdie rpurdie at rpsys.net
Fri Sep 14 12:40:37 UTC 2007


This is a quick report of a problem I've been made aware of. Basically
the AUTOREV variable doesn't work as expected with current bitbake which
breaks insane-srcrevs.inc and moko-auto.inc :-(.

The patch below hacks around this. I'd like to have some time to think
about the problem and find a better solution before committing anything
to bitbake. The section of code was already marked "gross hack" and sure
enough, its bitten us already :(.

Anyone needing AUTOREV can probably manage to apply the patch in the
meantime ;-).

Cheers,

Richard


Index: lib/bb/fetch/svn.py
===================================================================
--- lib/bb/fetch/svn.py (revision 970)
+++ lib/bb/fetch/svn.py (working copy)
@@ -77,6 +77,9 @@
                 if rev and "get_srcrev" in rev:
                     ud.revision = self.latest_revision(url, ud, d)
                     ud.date = ""
+                elif rev and "AUTOREV" in rev:
+                    ud.revision = self.latest_revision(url, ud, d)
+                    ud.date = ""
                 elif rev:
                     ud.revision = rev
                     ud.date = "" 






More information about the Openembedded-devel mailing list