Skip to content


librsvg and gdk-pixbuf #13786

lnxbil opened this Issue · 9 comments

6 participants


Hi everybody,

I got a problem to get gdk-pixbuf-query-loaders recognizing the module installed by librsvg, which will be installed in libdirectly (not Cellar), but gdk-pixbuf-query-loaders looks only in Cellar if not told otherwise by setting the environment variable to GDK_PIXBUF_MODULEDIR=$HOMEBREW/lib/gdk-pixbuf-2.0/2.10.0/loadersand triggering an gdk-pixbuf-query-loaders --update-cache. Afterwards the librsvg-Plugin will be recognized.



What do you think we should do? I guess we need at least a caveat.

Homebrew member

What software does this break?


It's the game pioneers, which depends on the svg functionality of gdk-pixbuf.

A caveat would be every extension using gdk-pixbuf (like librsvg) to trigger the following command:
GDK_PIXBUF_MODULEDIR=$HOMEBREW/lib/gdk-pixbuf-2.0/2.10.0/loaders gdk-pixbuf-query-loaders --update-cache


Solfege is also broken without this. I suppose Open-Scene-Graph might also be. I like your idea @lnxbil of issuing that command to finalize the install of librsvg. Because librsvg depends on gdk-pixbuf, we can run that command after librsvg install. What other libraries can use that command, do you know? Typing brew uses gdk-pixbuf doesn't even list librsvg.


I do not know of any other packages depending on gdk-pixbuf, sorry.

Homebrew member

Anything that directly depends on it could run this I guess.


meld also has gdk-pixbuf as a dependency.


We don't have a framework for post-install tasks. So I wouldn't know where to put this chunk of code. It seems too repetitive to put into multiple formulas, but maybe expressly doing that would be the most instructive.


Repeating it across formulae is a good first step; then we can figure out where to pull the common code into.

@jacknagel jacknagel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.