Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644136 - x11-libs/gtk+-3.22.19 with empty/invalid XDG_DATA_DIRS - failed to load "<...>/bullet-symbolic.symbolic.png" : Couldn't recognize the image file format for file <...>/bullet-symbolic.symbolic.png
Summary: x11-libs/gtk+-3.22.19 with empty/invalid XDG_DATA_DIRS - failed to load "<......
Status: RESOLVED DUPLICATE of bug 635040
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-10 16:45 UTC by Ben Kohler
Modified: 2018-01-10 17:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,184.59 KB, text/plain)
2018-01-10 16:45 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kohler gentoo-dev 2018-01-10 16:45:21 UTC
Created attachment 514092 [details]
build.log

If XDG_DATA_DIRS is unset, or if it's set "properly" (eg my working desktop has XDG_DATA_DIRS=/usr/local/share:/usr/share) then gtk+-3.22.19 will build properly.

But if the var is set empty or to an invalid value (can reproduce with XDG_DATA_DIRS="" or XDG_DATA_DIRS=/foo) then the build will fail, error log is attached.
Comment 1 Ben Kohler gentoo-dev 2018-01-10 16:47:57 UTC
FYI it's not that I'm intentionally passing garbage to break the build-- some users have reported their systems have a value already set like XDG_DATA_DIRS=/usr/share/mesa/xdg, which is breaking the build.  I'm not sure where that particular mesa-related path comes from.

If they unset the var, or if they install xdg-utils to provide a better XDG_DATA_DIRS var, then gtk+ builds ok.;
Comment 2 Ben Kohler gentoo-dev 2018-01-10 16:57:53 UTC
The XDG_DATA_DIRS setting is actually affecting how gdk-pixbuf operates, you can reproduce the same failure at a lower level like this:

$ XDG_DATA_DIRS="" /usr/bin/gdk-pixbuf-thumbnailer usage.png test.png

** (gdk-pixbuf-thumbnailer:9248): WARNING **: Could not thumbnail 'usage.png': Unrecognized image file format
$
Comment 3 Ben Kohler gentoo-dev 2018-01-10 17:04:59 UTC
Well I added all that info THEN found the existing report, oops =)

*** This bug has been marked as a duplicate of bug 635040 ***