Bug 3225 - linux-yocto SRCPV is changed after every MACHINE switch
Summary: linux-yocto SRCPV is changed after every MACHINE switch
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4
Assignee: Constantin Musca
QA Contact:
URL:
Whiteboard:
Depends on: 3071
Blocks:
  Show dependency tree
 
Reported: 2012-10-03 20:59 UTC by Martin Jansa
Modified: 2013-01-03 12:57 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jansa 2012-10-03 20:59:15 UTC
Different machines are using different SRCREV_machine (because of potentionaly diferent branch) and LOCALCOUNT in SRCPV is increased after every MACHINE switch.
Because they share the same key in persistent db:

> > sqlite>  select * from BB_URI_LOCALCOUNT where key like '%linux-yocto-3.4%';
> > git:git.yoctoproject.org.linux-yocto-3.4.gitstandard/base-linux-yocto_rev|84d8ee32265eea5d60f57a2f70bd3b9a0fb9213d
> > git:git.yoctoproject.org.linux-yocto-3.4.gitstandard/base-linux-yocto_count|16
> > git:git.yoctoproject.org.linux-yocto-3.4.gitmeta-linux-yocto_rev|463299bc2e533e1bd38b0053ae7b210980f269c3
> > git:git.yoctoproject.org.linux-yocto-3.4.gitmeta-linux-yocto_count|9
> > git:git.yoctoproject.org.linux-yocto-3.4.gitstandard/common-pc-64/base-linux-yocto_rev|19f7e43b54aef08d58135ed2a897d77b624b320a
> > git:git.yoctoproject.org.linux-yocto-3.4.gitstandard/common-pc-64/base-linux-yocto_count|7
> > git:git.yoctoproject.org.linux-yocto-3.4.gitstandard/preempt-rt/base-linux-yocto-rt_rev|9032b1e9daf5b4396f939981c3be95f67802d18c
> > git:git.yoctoproject.org.linux-yocto-3.4.gitstandard/preempt-rt/base-linux-yocto-rt_count|10
> > git:git.yoctoproject.org.linux-yocto-3.4.gitmeta-linux-yocto-rt_rev|463299bc2e533e1bd38b0053ae7b210980f269c3
> > git:git.yoctoproject.org.linux-yocto-3.4.gitmeta-linux-yocto-rt_count|8

More details here:
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-September/029413.html

One possible solution is to drop machine from SRCREV_FORMAT and bump PR with every SRCREV_machine change
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-September/030227.html
but RP says it won't work with current fetcher.
Comment 1 Richard Purdie 2012-11-25 21:49:36 UTC
If we fix 3371, this problem should go away...
Comment 2 Constantin Musca 2013-01-03 12:57:30 UTC
Since we fixed 3071, we don't have this problem anymore.

Cheers,
Constantin