Skip to content

Loading…

librsvg and gdk-pixbuf #13786

Closed
lnxbil opened this Issue · 9 comments

6 participants

@lnxbil

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.

Best,
Andreas

@2bits

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

@mikemcquaid
Homebrew member

What software does this break?

@lnxbil

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

@2bits

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.

@lnxbil

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

@mikemcquaid
Homebrew member

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

@paulp

meld also has gdk-pixbuf as a dependency.

@2bits

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.

@adamv

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.