]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
base/package: Move source revision information from PV to PKGV
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Aug 2023 12:52:59 +0000 (13:52 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Aug 2023 12:34:35 +0000 (13:34 +0100)
commita8e7b0f932b9ea69b3a218fca18041676c65aba0
treeb0777ff95c485fad2011b7ad67fc433c5275e5d1
parentb2c1d8a83a3b2134a8f9a445cbf00103e63ed0b3
base/package: Move source revision information from PV to PKGV

Source control information being present in PV used to be a hard requirement
for bitbake to operate correctly. Now that hashes are a required part of task
stamps, this requirement no longer exists.

This means we can defer the hash pieces to PKGV and simplify PV.

Use new bitbake fetcher API to inject the source revisions directly into the hash
allowing removal of some horrible code from base.bbclass and avoiding any hardcoding
about how SRCREV may or may not be used.

Use that API to object the string to append to PKGV and append that directly.

The user visible effect of this change is that PV will no longer have revision
information in it and this will now be appended to PV through PKGV when the
packages are written. Since PV is used in STAMP and WORKDIR, users will see
small directory naming and stamp naming changes.

This will mean that sstate reuse through hash equivalence where the source
revision changes but the output does not will become possible as the sstate
naming will become less specific and no longer contain the revision.

The SRCPV variable will no longer be needed in PV and is effectively now just
a null operation. Usage can be removed over time.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline-fail.bb
meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline.bb
meta-selftest/recipes-test/gitunpackoffline/gitunpackoffline.inc [new file with mode: 0644]
meta/classes-global/base.bbclass
meta/classes-global/package.bbclass
meta/classes/externalsrc.bbclass
meta/conf/bitbake.conf
meta/lib/oeqa/selftest/cases/fetch.py