On Thu, 29 Feb 2024 at 10:26, Patrick Huesmann <patrick.huesm...@desy.de> wrote: > Your suggestion will probably get rid of a lot of complexity in our recipe > that tried to work around bitbake's limitations. But I'm still not sure how > to tackle the original problem (AUTOINC from PRSERV for file:// and http:// > resources), even if I have SRCREV as static data before running bitbake. > > If I understand correctly, bb.fetch2.get_srcrev() requires that the fetcher's > supports_srcrev() is set, so it wouldn't support file and http fetchers. > > So what would be the recommended way to implement this functionality? Should > I write and somehow inject my own fetcher module, or reimplement > package_get_auto_pr() for my recipe (talking to PRSERV directly)?
I know as much about this as you do. I don't have time to run experiments, and it's hard to tell from reading the code if there's a possible code path that would inject a value from pr server into PKGV for non-git resources. Maybe the easiest is to have self-contained logic in the script that ensures PV always increases before it's set, and not try to involve pr server in that. Writing a new fetcher is... far-fetched :) Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62647): https://lists.yoctoproject.org/g/yocto/message/62647 Mute This Topic: https://lists.yoctoproject.org/mt/104621339/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-