All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with AUTOINC and ipk
       [not found] <2018085420.634497.1374059058554.JavaMail.root@tpip.net>
@ 2013-07-17 11:14 ` Tino Breddin
  2013-07-17 15:28   ` Martin Jansa
  0 siblings, 1 reply; 2+ messages in thread
From: Tino Breddin @ 2013-07-17 11:14 UTC (permalink / raw)
  To: yocto

Hi there,

We are having problems with using AUTOINC together with the ipk package format. I'm not sure whether this issue applies to rpm and deb as well.

Given the following configuration in a recipe:

SRCREV = "AUTOINC"
PV = "git${SRCPV}"
PR = "r0"

The generated package will have a version like this:

git0+e6d1870200802f32e17e334272191397e15aec53-r0

In case the latest Git revision changes, the new package would have the version:

git0+30249a36b39482a98772c881334ee703715a54cc-r0

My understanding is that the first integer before the + is meant to be incremented monotonically to allow the package manager to figure out that a upgrade is available. Where is the state for this integer kept? Obviously if 2 developers build the package independent from each other it would always be 0 initially. But it will stay 0 for a single developer too if the package is cleaned first. At least that is what we are seeing.

I'd appreciate any feedback on how to handle recipes which should follow the Git HEAD.

Cheers,
Tino


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

* Re: Problem with AUTOINC and ipk
  2013-07-17 11:14 ` Problem with AUTOINC and ipk Tino Breddin
@ 2013-07-17 15:28   ` Martin Jansa
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Jansa @ 2013-07-17 15:28 UTC (permalink / raw)
  To: Tino Breddin; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]

On Wed, Jul 17, 2013 at 01:14:16PM +0200, Tino Breddin wrote:
> Hi there,
> 
> We are having problems with using AUTOINC together with the ipk package format. I'm not sure whether this issue applies to rpm and deb as well.
> 
> Given the following configuration in a recipe:
> 
> SRCREV = "AUTOINC"
> PV = "git${SRCPV}"
> PR = "r0"
> 
> The generated package will have a version like this:
> 
> git0+e6d1870200802f32e17e334272191397e15aec53-r0
> 
> In case the latest Git revision changes, the new package would have the version:
> 
> git0+30249a36b39482a98772c881334ee703715a54cc-r0
> 
> My understanding is that the first integer before the + is meant to be incremented monotonically to allow the package manager to figure out that a upgrade is available. Where is the state for this integer kept? Obviously if 2 developers build the package independent from each other it would always be 0 initially. But it will stay 0 for a single developer too if the package is cleaned first. At least that is what we are seeing.
> 
> I'd appreciate any feedback on how to handle recipes which should follow the Git HEAD.

Before PR service it was using bitbake's persistent cache in
PERSISTENT_DIR, now PR service is used for that:

https://wiki.yoctoproject.org/wiki/PR_Service

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

end of thread, other threads:[~2013-07-17 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2018085420.634497.1374059058554.JavaMail.root@tpip.net>
2013-07-17 11:14 ` Problem with AUTOINC and ipk Tino Breddin
2013-07-17 15:28   ` Martin Jansa

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.