Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert librsvg to version 2.58.1 #263

Conversation

sergio-costas
Copy link
Contributor

This is required because version 2.59.1 changes the name of the gdk-pixbuf-loader from libpixbufloader-svg.so to
libpixbufloader_svg.so, which breaks snaps because each snap stores its own loaders.cache file with the path for each loader, so an already installed snap will have a loaders.cache file with a svg loader path pointing to the former name, but the current file would be the later, thus it won't be able to load any svg.

Reverting the version also forces to revert from meson to autotools.

The right solution is to modify snapcraft-desktop-integration scripts to add a check that rebuilds any cache (not only pixbuf loaders, but also fonts, icons...) not only if the snap itself is updated, but also if any of the extensions is updated too.

Fix #257

This is required because version 2.59.1 changes the name of the
gdk-pixbuf-loader from libpixbufloader-svg.so to
libpixbufloader_svg.so, which breaks snaps because each snap
stores its own loaders.cache file with the path for each loader,
so an already installed snap will have a loaders.cache file with
a svg loader path pointing to the former name, but the current
file would be the later, thus it won't be able to load any svg.

The right solution is to modify snapcraft-desktop-integration
scripts to add a check that rebuilds any cache (not only pixbuf
loaders, but also fonts, icons...) not only if the snap itself
is updated, but also if any of the extensions is updated too.

Fix ubuntu#257
@sergio-costas sergio-costas requested a review from seb128 November 25, 2024 15:42
Copy link
Contributor

@seb128 seb128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@seb128 seb128 merged commit 5988ffc into ubuntu:gnome-46-2404-sdk Nov 25, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants