Subject: bug#56437: Reduce closure size of gsettings-desktop-schemas

From: Maxime Devos <[email-masked]>
Date: Wed, 20 Jul 2022 20:59:48 +0200

On 07-07-2022 16:50, Pierre Neidhardt wrote:

> Hi,
>
> Gsettings-desktop-schemas is required by WebKitGTK to load HTTPS pages.
> But it also depends on gnome-backgrounds which weights some 40 MiB.
>
> For sure this does not help the closure size...
>
> I suggest we create a separate output, or maybe a
> gsettings-desktop-schemas-minimal which does not include the reference
> to the backgrounds.
>
> Thoughts?

There are only two schemes that contain a reference, so maybe those can 
be put in a separate output:

antipode@antipode ~$ grep -RF gnome-background 
/gnu/store/5nqkzrcgwbbk9lnfz73g1nidfp57szlm-gsettings-desktop-schemas-41.0/
grep: 
/gnu/store/5nqkzrcgwbbk9lnfz73g1nidfp57szlm-gsettings-desktop-schemas-41.0/share/glib-2.0/schemas/gschemas.compiled: 
binair bestand bevat de gezochte tekst
/gnu/store/5nqkzrcgwbbk9lnfz73g1nidfp57szlm-gsettings-desktop-schemas-41.0/share/glib-2.0/schemas/org.gnome.desktop.background.gschema.xml: 
<default>'file:///gnu/store/cknaw49l7lnf2r6djvxjd8xvrzl6lcgn-gnome-backgrounds-41.0//share/backgrounds/gnome/adwaita-timed.xml'</default>
/gnu/store/5nqkzrcgwbbk9lnfz73g1nidfp57szlm-gsettings-desktop-schemas-41.0/share/glib-2.0/schemas/org.gnome.desktop.screensaver.gschema.xml: 
<default>'file:///gnu/store/cknaw49l7lnf2r6djvxjd8xvrzl6lcgn-gnome-backgrounds-41.0//share/backgrounds/gnome/adwaita-timed.xml'</default>

Two package variants is not ideal, because then one has to determine 
which one to choose, and people that use the background schemes would 
have extra disk usage because of the two copies of the other schemes 
(relatively tiny: 224K if the 36K gschemas.compiles is counted, 153K for 
apparent size).

As such, I'd prefer gong for a separate output. It would need to be 
checked that this doesn't cause problems from GNOME users though.

Greetings,
Maxime.