unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#60434: librsvg from Guix makes native GIMP unable to find icons
@ 2022-12-30 19:56 Tirifto
  2023-01-05 20:54 ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 1 reply; 2+ messages in thread
From: Tirifto @ 2022-12-30 19:56 UTC (permalink / raw)
  To: 60434

[-- Attachment #1: Type: text/plain, Size: 2743 bytes --]

Hello! I use Guix as a supplementary package manager on OpenSUSE 15.4. I have 
recently installed the package ‘librsvg’ in Guix, in order to fix a different 
issue, where a different program (installed with Guix) wouldn’t show icons 
without it [1]. But I noticed that doing so affects GIMP, a graphical program 
installed natively in openSUSE, which can no longer show its own icons now.

The problem is solved by removing ‘librsvg’ from my Guix profile, logging out, 
and logging back in. (But then, of course, the other program which needs 
‘librsvg’ in my profile breaks again.)

Another solution is not to source my Guix profile in my login shell (thus 
removing the appropriate line from my ‘~/.profile’ file), and to remove the 
file ‘/etc/profile.d/guix.sh’, both of which seem to only define some 
environment variables. (Of course, this breaks Guix’s whole integration with 
the host system, so it’s not a good solution at all.) Removing only the 
profile does not help.

I have observed the changes installing ‘librsvg’ made to the aforementioned 
files, and to my environment:

 ‘guix.sh’ has not changed at all.

 ‘profile’ now defines the two following variables:
  • XDG_DATA_DIRS
  • GDK_PIXBUF_MODULE_FILE

  These environment variables have been extended:
  • XDG_DATA_DIRS was defined [2], now is prefixed with
   ‘/home/tirifto/.guix-profile/share’
  • GDK_PIXBUF_MODULE_FILE was undefined, now is set to
   ‘/home/tirifto/.guix-profile/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache’

When I run GIMP from the command line, it prints the errors attached in ‘gimp-
errors.txt’.

When I try to unset the changed variables for GIMP, using the following 
command, the icons are still absent, but it prints less errors, which are 
attached in ‘gimp-errors-no-env.txt’:

  XDG_DATA_DIRS='/usr/local/share:/usr/share' GDK_PIXBUF_MODULE_FILE='' gimp

When I try to unset the changed variables with ‘unset’ before I actually run 
GIMP, it works as expected, with no errors printed, like so:

  unset XDG_DATA_DIRS
  unset GDK_PIXBUF_MODULE_FILE
  gimp

I’m not sure what’s the difference between those procedures, since I don’t 
understand Bash that well, but maybe it can help someone who does understand 
the problem better.

Best of wishes
// Tirifto

[1] https://issues.guix.gnu.org/60205
[2] XDG_DATA_DIRS already had ‘/home/tirifto/.guix-profile/share’ in it before
    it was added to the profile, presumably coming from the aforementioned
   ‘guix.sh’. This means I now have ‘/home/tirifto/.guix-profile/share’ twice
    in my path. I assume that’s not a problem, but found it curious.

[-- Attachment #2: gimp-errors.txt --]
[-- Type: text/plain, Size: 5322 bytes --]

(gimp:28933): Gtk-WARNING **: 20:00:42.089: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.207: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.221: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.249: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.251: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.318: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.466: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.468: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.485: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.487: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.535: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)

(gimp:28933): Gtk-WARNING **: 20:00:42.547: Error loading theme icon 'image-missing' for stock: Unable to load image-loading module: /gnu/store/ifbq1dgjpy3v25d9wvmr64426jkfbhw7-librsvg-2.50.7/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by /gnu/store/7b5qsjh2cbhwnqbdicvl81496k7b0g0j-libbsd-0.10.0/lib/libbsd.so.0)
WARNING: icon 'gimp-default-colors' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-swap-colors' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-image' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-image' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-wilber-eek' failed to load. Check the files in your icon theme.

[-- Attachment #3: gimp-errors-no-env.txt --]
[-- Type: text/plain, Size: 332 bytes --]

WARNING: icon 'gimp-default-colors' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-swap-colors' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-image' failed to load. Check the files in your icon theme.
WARNING: icon 'gimp-image' failed to load. Check the files in your icon theme. 

[-- Attachment #4: gimp-no-icons.png --]
[-- Type: image/png, Size: 13147 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#60434: librsvg from Guix makes native GIMP unable to find icons
  2022-12-30 19:56 bug#60434: librsvg from Guix makes native GIMP unable to find icons Tirifto
@ 2023-01-05 20:54 ` Josselin Poiret via Bug reports for GNU Guix
  0 siblings, 0 replies; 2+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2023-01-05 20:54 UTC (permalink / raw)
  To: Tirifto, 60434

Hi,

Tirifto <tirifto@posteo.cz> writes:

> Hello! I use Guix as a supplementary package manager on OpenSUSE 15.4. I have 
> recently installed the package ‘librsvg’ in Guix, in order to fix a different 
> issue, where a different program (installed with Guix) wouldn’t show icons 
> without it [1]. But I noticed that doing so affects GIMP, a graphical program 
> installed natively in openSUSE, which can no longer show its own icons now.

I assume the problem comes from the fact that the host's gdk-pixbuf uses
the GDK_PIXBUF_MODULE_FILE variable that is set by Guix, and so tries to
refer to Guix's loaders rather than the host's, which don't use the same
glibc version.  I don't see an easy fix for this: we could rename it to
GUIX_GDK_PIXBUF_MODULE_FILE, but that's likely a world rebuild.  In the
meantime, you could consider only using Guix "explicitely", by only
entering the profile manually in a shell when you want to use the apps
it installed.

Best,
-- 
Josselin Poiret




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-05 20:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-30 19:56 bug#60434: librsvg from Guix makes native GIMP unable to find icons Tirifto
2023-01-05 20:54 ` Josselin Poiret via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).