How does this work when sharing sstate between builders with different PREMIRRORS/MIRRORS? Doesn't this cause all signatures to be different as do_unpack does depend on do_fetch?
On Mon, Apr 15, 2024 at 10:30 AM Changqing Li via lists.openembedded.org <[email protected]> wrote: > > From: Changqing Li <[email protected]> > > When there are tarballs in local mirror file://, do_fetch will > create symlink under DL_DIR, eg: > pseudo-prebuilt-2.33.tar.xz -> > /project/path/to/localmirrorA/pseudo-prebuilt-2.33.tar.xz > after user update path from localmirrorA to localmirrorB, because > do_fetch don't depends on PREMIRRORS/MIRRORS, do_fetch will not > be rerun, so the symlink will not update to: > pseudo-prebuilt-2.33.tar.xz -> > /project/path/to/localmirrorB/pseudo-prebuilt-2.33.tar.xz > then, do_upack will failed since the tarball cannot be found. > > Signed-off-by: Changqing Li <[email protected]> > --- > meta/classes-global/base.bbclass | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/classes-global/base.bbclass > b/meta/classes-global/base.bbclass > index 0999b42daa..5094a1540e 100644 > --- a/meta/classes-global/base.bbclass > +++ b/meta/classes-global/base.bbclass > @@ -139,6 +139,7 @@ do_fetch[file-checksums] = > "${@bb.fetch.get_checksum_file_list(d)}" > do_fetch[file-checksums] += " ${@get_lic_checksum_file_list(d)}" > do_fetch[prefuncs] += "fetcher_hashes_dummyfunc" > do_fetch[network] = "1" > +do_fetch[vardeps] += "PREMIRRORS MIRRORS" > python base_do_fetch() { > > src_uri = (d.getVar('SRC_URI') or "").split() > -- > 2.25.1 > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#198223): https://lists.openembedded.org/g/openembedded-core/message/198223 Mute This Topic: https://lists.openembedded.org/mt/105532159/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
