On 11 Dec 2023, at 11:37, [email protected] wrote: > > On Mon, Dec 11 2023 at 11:21:48 AM +00:00:00, Ross Burton > <[email protected]> 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: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
