Bug 5136 - buildhistory.bbclass: doesn't work when PV changed
Summary: buildhistory.bbclass: doesn't work when PV changed
Status: RESOLVED WONTFIX
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.5 M5
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-09-08 02:32 UTC by Robert Yang
Modified: 2013-09-24 01:46 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2013-09-08 02:32:06 UTC
buildhistory.bbclass can't find the PV changed, steps to reproduce:

$ echo INHERIT += \"buildhistory\" >> conf/local.conf
$ echo BUILDHISTORY_COMMIT = \"1\" >> conf/local.conf
$ bitbake make # make 3.82 is built
$ echo echo PREFERRED_VERSION_make = \"3.81\" >> conf/local.conf
$ bitbake make

We can see the "No Changes" in the git log, and the file doesn't changed:

/buildarea/lyang1/wd$ cat buildhistory/packages/armv5te-poky-linux-gnueabi/make/latest
PV = 3.82
PR = r3

The should be 3.81 and r1.
Comment 1 Chen Qi 2013-09-15 05:05:02 UTC
I tested this on poky/master:  6b4f7e4b26c51f0c1517c0a697031e7bc488b76f.
And it worked out well.

chenqi@pek-hostel-vm07:~/poky/build-sato$ grep -i preferred_version conf/local.conf
PREFERRED_VERSION_make = "3.81"
chenqi@pek-hostel-vm07:~/poky/build-sato$ cat buildhistory/packages/i586-poky-linux/make/latest 
PV = 3.81
PR = r1

Mark it as RESOLVED/WONTFIX.

//Chen Qi