On 11 Dec 2023, at 11:37, f_...@t-online.de wrote:
> 
> On Mon, Dec 11 2023 at 11:21:48 AM +00:00:00, Ross Burton 
> <ross.bur...@arm.com> wrote:
>> So the class is redundant, yes. Can you also add a check to the 
>> gsettings.bbclass so its harmless instead of crashing?
> 
> 
> something like this?
> gsettings_postinstrm () {
> [ -d $D${datadir}/glib-2.0/schemas ] && glib-compile-schemas 
> $D${datadir}/glib-2.0/schemas
> }
> 
> glib-compile-schemas hasn't an option to not fail if the directory was not 
> found
> 
> But maybe crashing isn't that bad. Helps to keep the recipes more clean I 
> think?

Crashing is bad: failing with an error message is better.  And recipes may have 
an option for gsettings (unlikely, I admit, but possible) and then they’ll need 
to mess about with conditional inherits.

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107327): 
https://lists.openembedded.org/g/openembedded-devel/message/107327
Mute This Topic: https://lists.openembedded.org/mt/103076498/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to