> -----Original Message----- > From: Alexander Kanavin <[email protected]> > Sent: den 28 september 2022 11:07 > To: Richard Purdie <[email protected]> > Cc: openembedded-architecture <openembedded- > [email protected]>; Peter Kjellerstedt > <[email protected]> > Subject: Re: Template handling in OE-Core > > On Wed, 28 Sept 2022 at 10:55, Richard Purdie > <[email protected]> wrote: > > I wondered about that. The thing is if you're planning to decide to do > > some kind of automated update or user warning message, you need a > > version string in the file itself to know what version you're dealing > > with so whilst I can see why you might be interested in that > > information, I'm not convinced it is as useful as you'd first think as > > you'll need other information anyway... > > > > Regardless, it would suggest we should be ignoring the file (whether > > create it or not). > > > > Taking another example to suggest it is broken, what if I delete one of > > the files and let the setup scripts recreate it after using a different > > TEMPLATECONF setting? Which value should templateconf.cfg have? > > I have already written a patch :) It creates templateconf.cfg if it > does not yet exist, > but otherwise doesn't read or write to it. > https://git.yoctoproject.org/poky-contrib/commit/?h=akanavin/package-version-updates&id=0644e4cb1415b44833d57baf9d57845a331bb70b > > Alex
Personally, I would expect the file to contain the latest value used for TEMPLATECONF. I.e., if I remove the local.conf file to regenerate it because there has been upstream changes, I would expect it to use the TEMPLATECONF I specify at that time, and for that value to be recorded for posterity. That said, I doubt the value of TEMPLATECONF will actually change for an existing build environment, so this is probably more on the theoretical side. //Peter
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1652): https://lists.openembedded.org/g/openembedded-architecture/message/1652 Mute This Topic: https://lists.openembedded.org/mt/93968540/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-architecture/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
