All of lore.kernel.org
 help / color / mirror / Atom feed
* Use AUTOREV and have revision/commit number in package name?
@ 2009-08-20  3:28 Denys Dmytriyenko
  2009-08-20  5:52 ` Holger Hans Peter Freyther
  0 siblings, 1 reply; 10+ messages in thread
From: Denys Dmytriyenko @ 2009-08-20  3:28 UTC (permalink / raw)
  To: openembedded-devel

All,

I've been playing with AUTOREV for some time now and also asked this question 
before on the IRC, but so far there seems to be no easy solution to the 
problem in subject.

Usually, when a package is built from an SCM repository, SRCREV is set to a 
specific commit#/tag etc. And SRCREV is also usually referenced from PV (like 
PV = "X.Y.Z-scmr${SRCREV}") to have the revision/commit number in the package 
name, to easily track different builds.

Now, when SRCREV = "${AUTOREV}", AUTOREV gets resolved into a Python function, 
which does the magic of fetching the latest snapshot from a repository. But 
now if PV contains references to SRCREV, it breaks (undesrandably), since 
SRCREV gets resolved in do_fetch and PV needs to be resolved early on.

Are there any standard ways to work around this limitation?

I was thinking this maybe quite tricky, since the actual revision number used, 
is not known until do_fetch runs the actual checkout, at which time changing 
PV is too late, as temp/work is already created and so on. So, would it be 
possible to hack one of the do_package tasks to add the actual revision/commit 
number to a final package name, bypassing changing PV/PR?

Any thoughts? Feel free to throw ideas. Thanks.

-- 
Denys



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

end of thread, other threads:[~2009-08-26 20:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20  3:28 Use AUTOREV and have revision/commit number in package name? Denys Dmytriyenko
2009-08-20  5:52 ` Holger Hans Peter Freyther
2009-08-20  7:10   ` Denys Dmytriyenko
2009-08-20  8:34     ` Koen Kooi
2009-08-20  9:01       ` Denys Dmytriyenko
2009-08-20  9:46         ` Martin Jansa
2009-08-20 10:26           ` Denys Dmytriyenko
2009-08-26 19:55           ` Martin Jansa
2009-08-20  9:48         ` Graeme Gregory
2009-08-20  9:13   ` Graeme Gregory

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.