Reduce closure size of gsettings-desktop-schemas

  • Open
  • quality assurance status badge
Details
3 participants
  • ???
  • Pierre Neidhardt
  • Maxime Devos
Owner
unassigned
Submitted by
Pierre Neidhardt
Severity
normal
P
P
Pierre Neidhardt wrote on 7 Jul 2022 16:50
(address . bug-guix@gnu.org)
87k08pyo2e.fsf@ambrevar.xyz
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?

Pierre
-----BEGIN PGP SIGNATURE-----

iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmLG8qkSHG1haWxAYW1i
cmV2YXIueHl6AAoJEJvc9Jeku8x/NM8IAJ9su9UFMVKzK1NngGkxN2iRCR1un3Mk
GTL7JNThSKZ4oI4m4t9DE39BpyEiHUfyJ4MNfEvVTNULuLQ5lX4PVMU1BmV1sqFw
ccv9xYhlqrZHoMq6VhtAwOXqJd34DUDhSJJVQgQo9oQuVm9EVVGn0h/cJ3vnw4+h
wmAVvoiNFfXzjZzmE9PghRC/Z01ckFrPxDt067aAzf6XhnPgQatDRONhcZcljJBS
udUXry6pR6QDeWF9pb2v+yAWvMheTOVL0AgrQcTJ+CSzWfpkA2/bzI3nTAs2VmtE
rlw5S4m5+52fpM5m5BImLFE4yHQr/8VpkoR+IVh6NmssEWMR/XwooCI=
=b+Sn
-----END PGP SIGNATURE-----

M
M
Maxime Devos wrote on 20 Jul 2022 20:59
3975760d-28d7-47c1-6678-09947568b878@telenet.be
On 07-07-2022 16:50, Pierre Neidhardt wrote:
Toggle quote (12 lines)
> 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.
Attachment: OpenPGP_signature
P
P
Pierre Neidhardt wrote on 22 Jul 2022 06:41
87pmhxzrla.fsf@ambrevar.xyz
Sounds good!
-----BEGIN PGP SIGNATURE-----

iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAmLaKpISHG1haWxAYW1i
cmV2YXIueHl6AAoJEJvc9Jeku8x/IBkH/3sk8t/ubg4swr3KgCqpdq4wTAorp/CW
Sh/W62kOdByoHE+NTqjlIbMyN+rkALg+M0OAbYjRxT7/zY6t+vXaJpq2G+q19Py2
zJrMmkynfEWHjrTu8A0bFUGiyrLV6sHEMy501D7GfxEGrcN//5K5lbJytfjK2LXB
dxm4s+IZuaTQ18Az6Vjv2G2tQH1wWtv9BdOV5PPn1kBiCITNd6qJEA9XGYEy8f2b
CqVsDDBHdI4HYtja/qdjjE99c6J/qB84upHRmijEHgXBFJjl/nNLMBFisIYCfto5
bz87bs/4dmRXnLWPM1+3GwKfhyCwHrBLnH7HMY8gIFzFb4ZlqxEOKlM=
=PpEw
-----END PGP SIGNATURE-----

?
(name . Maxime Devos)(address . maximedevos@telenet.be)
87les3m852.fsf@envs.net
Maxime Devos <maximedevos@telenet.be> writes:

Toggle quote (21 lines)
> 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:
> [...]
> 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.

I think we can use some gsettings overrides in the gnome package, there
is no need for gsettings-desktop-schemas hardcode the background
setting itself.
?