Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635040 - x11-libs/gtk+:3 emake failed; Can't recognize the image file format for file ....png
Summary: x11-libs/gtk+:3 emake failed; Can't recognize the image file format for file ...
Status: CONFIRMED
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:
: 644136 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-22 04:08 UTC by r3lgar
Modified: 2018-12-29 18:48 UTC (History)
2 users (show)

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


Attachments
gtk+-3.22.19:20171021-125241.log.gz (gtk+-3.22.19:20171021-125241.log.gz,25.13 KB, application/gzip)
2017-10-22 04:11 UTC, r3lgar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description r3lgar 2017-10-22 04:08:28 UTC
 % emerge -pvq x11-libs/gtk+:3

[ebuild  NS   ] x11-libs/gtk+-3.22.19 [2.24.31-r1] USE="X introspection xinerama (-aqua) -broadway -cloudprint -colord -cups -examples {-test} -vim-syntax -wayland" ABI_X86="32 (64) (-x32)" 



 % emerge --info

Portage 2.3.12 (python 3.5.4-final-0, default/linux/amd64/13.0/systemd, gcc-6.4.0, glibc-2.25-r7, 4.13.5-gentoo x86_64)
=================================================================
System uname: Linux-4.13.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.4.1
KiB Mem:    16382436 total,  11441656 free
KiB Swap:   33554428 total,  33554428 free
Head commit of repository gentoo: 737343260a8bdf3e24f849ab748c221dd68419d9

Head commit of repository lua: bdf1175be726a31ab9173df46a0d71282332fa61

Head commit of repository nightmare: f567036b649f16a7f23ab90155a2b53132994acc

sh bash 4.4_p12
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1::gentoo
dev-lang/python:          2.7.14::gentoo, 3.5.4::gentoo
dev-util/cmake:           3.9.4::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            4.9.4::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r7::gentoo
Repositories:

gentoo
    location: /usr/sources/overlays/gentoo
    sync-type: git
    sync-uri: git://github.com/gentoo/gentoo.git
    priority: -1000

lua
    location: /usr/sources/overlays/lua
    sync-type: git
    sync-uri: git://cgit.gentoo.org/proj/lua.git
    masters: gentoo
    priority: 10

nightmare
    location: /usr/sources/overlays/nightmare
    sync-type: git
    sync-uri: git://gitlab.com/r3lgar/nightmare.git
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/sources/dist"
EMERGE_DEFAULT_OPTS="--quiet-build=y --quiet-fail=y --autounmask-keep-masks --with-bdeps=y --keep-going -Aa"
FCFLAGS="-O2 -pipe"
FEATURES="binpkg-logs candy cgroup collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync metadata-transfer multilib-strict network-sandbox news nodoc noinfo notitles parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/etc/conf.d/ /etc/cron.daily/ /etc/init.d/ /etc/runlevels/ /etc/sudoers.d/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/usr/sources/bin"
PORTAGE_COMPRESS="tar"
PORTAGE_COMPRESS_FLAGS="cfJ"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X aac acl aes alsa amd64 avx avx2 awt berkdb bidi bmp bzip2 cacert cairo caps clang cli cracklib crypt curl cxx dbus dmx dri dri3 dv egl expat f2fs faac faad fam fat fbcon ffmpeg fftw filecaps flac fma3 fontconfig fontforge fribidi gcrypt gd gdbm gif git glamor gles gles2 glx gmp gnutls gpg gtkstyle harfbuzz iconv icu idn imagemagick imlib imlib2 introspection ipc jemalloc jit jpeg kmod lame lcms ldns libass libffi libnotify lua luajit lz4 lzma lzo mad magic matroska mime mmx mmxext modules mp3 mp4 mpeg mpfr multilib natspec ncurses nettle nls nptl ntfs ogg opencl openexr opengl openmp orc osmesa pam pango pcf pci pcre pcre2 pie plotutils plugins png policykit popcnt postscript qml quicktime readline sasl sdl seccomp session sndfile sqlite sse sse2 sse3 sse4_1 sse4_2 ssl sslv3 ssse3 stunnel svg syslog systemd theora threads tiff truetype twolame udev unicode unwind upnp ups_drivers_usbhid-ups usb uuid v4l vaapi vdpau vorbis vp8 wav wavpack webp wma x264 xattr xcb xinerama xkb xml xmp xpm xv xvid zlib zsh-completion" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LLVM_TARGETS="AMDGPU BPF X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 r3lgar 2017-10-22 04:11:25 UTC
Created attachment 499604 [details]
gtk+-3.22.19:20171021-125241.log.gz
Comment 2 Mart Raudsepp gentoo-dev 2017-10-30 18:10:23 UTC
Smells like some odd issues with gdk-pixbuf for you, but not sure what's going on exactly. Do you still experience the issue?
Comment 3 r3lgar 2017-11-02 02:43:34 UTC
> Do you still experience the issue?
Yes, even with fresh stage3 with my portage configs.
Comment 4 sul 2017-12-16 00:06:28 UTC
I used this command before running emerge :
> export XDG_DATA_DIRS=/usr/share

GTK+3 now compiles successfully for me.
Comment 5 Ben Kohler gentoo-dev 2018-01-10 17:04:59 UTC
*** Bug 644136 has been marked as a duplicate of this bug. ***
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2018-01-11 08:21:38 UTC
XDG_DATA_DIRS is not reset by xdg-utils.eclass. Not sure it should anyway as having invalid value will probably break more than just gtk+ compilation.

FTR, this variable is managed in Gentoo through /etc/env.d:
/etc/env.d/30xdg-data-local:XDG_DATA_DIRS="/usr/local/share"
/etc/env.d/30xdg-data-local:COLON_SEPARATED="XDG_DATA_DIRS XDG_CONFIG_DIRS"
/etc/env.d/90xdg-data-base:XDG_DATA_DIRS="/usr/share"
/etc/env.d/99xdg-gdm:XDG_DATA_DIRS="/usr/share/gdm"

Could you paste the exact content of the variable on the original system and trace back where it is set ?
Comment 7 Mart Raudsepp gentoo-dev 2018-01-11 09:31:00 UTC
bug 644136 has that info.
The thing is, that xdg-utils isn't installed at that point, and gdk-pixbuf is failing. xdg-utils is what installs the /etc/env.d file for /usr/share and /usr/locale/share XDG_DATA_DIRS.
I guess that might fine to not have it, but if something else installs it, e.g mesa[openmax], then you end up with XDG_DATA_DIRS set, but /usr/share not contained in it.
Of course xdg-utils installs a bunch of perl stuff, and we don't really want that either pulled in too easily.
Comment 8 Mart Raudsepp gentoo-dev 2018-01-11 09:33:23 UTC
(In reply to Mart Raudsepp from comment #7)

> I guess that might fine to not have it, but if something else installs it,
> e.g mesa[openmax], then you end up with XDG_DATA_DIRS set, but /usr/share
> not contained in it.

I meant, if something else installs an env.d file that adds to XDG_DATA_DIRS. mesa[openmax] is one, gdm is another (but for gdm you'll likely to have xdg-users already). That said, now I remember Ben did tests with XDG_DATA_DIRS="" gdk-pixbuf-..., which failed. But maybe these tests should be repeated with an UNset XDG_DATA_DIRS, not set to empty string.
Comment 9 Mart Raudsepp gentoo-dev 2018-01-11 09:52:49 UTC
Actually, it already says that it's fine if it's unset.

So I see various solutions here:

1) Make sure /usr/share and /usr/local/share are always in env.d, via some small package that drops then in and is pulled in much earlier and in RDEPEND of a few important things

2) As 1), but just ensure the base one is pulled in when you are installing your own /etc/env.d with XDG_DATA_DIRS entries, so e.g depended on by mesa[openmax] and gdm and whatever else we find

3) Tweak the /etc/profile env.d apparatus to handle XDG_DATA_DIRS special and always append or prepend /usr/share, and maybe /usr/local/share

4) Your idea here


I like 2), but has the caveat of ideally having to find all the existing ones that do this to env.d and remembering to cover it in the future.
After that I mght like 4) and then 1).
Comment 10 Mart Raudsepp gentoo-dev 2018-01-19 10:53:32 UTC
(In reply to Mart Raudsepp from comment #9)
> 2) As 1), but just ensure the base one is pulled in when you are installing
> your own /etc/env.d with XDG_DATA_DIRS entries, so e.g depended on by
> mesa[openmax] and gdm and whatever else we find

@x11 - maybe we should add xdg-utils to mesa[openmax] RDEPEND until we figure a better solution out?
Comment 11 Andy Mender 2018-02-18 10:04:15 UTC
Emerging x11-misc/xdg-utils provides XDG_DATA_DIRS. Otherwise, the variable is not set and x11-libs/gtk+ fails to build on the before mentioned line.

After emerging x11-misc/xdg-utils and having installed mesa[openmax], the content of XDG_DATA_DIRS is as follows:
/usr/local/share:/usr/share:/usr/share/mesa/xdg

I would add x11-misc/xdg-utils as a possible depend to x11-libs/gtk+:3 to circumvent this issue.
Comment 12 Mart Raudsepp gentoo-dev 2018-02-18 19:39:50 UTC
(In reply to Andy Mender from comment #11)
> I would add x11-misc/xdg-utils as a possible depend to x11-libs/gtk+:3 to
> circumvent this issue.

No, it's not gtk+ related. Other stuff that follows the standard could break just as well. It just happens the gtk stack showed the issue very visibly.
mattst88 ACKed a temporary addition of it to mesa[openmax] until we figure out a better solution (see comment #9). I'll see if he'll do the change himself soon with maybe other batched changes, or I'll commit it soon myself.
Comment 13 Larry the Git Cow gentoo-dev 2018-02-24 10:57:38 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3df07552decade334030ee8b793e40a34a9a2688

commit 3df07552decade334030ee8b793e40a34a9a2688
Author:     Mart Raudsepp <leio@gentoo.org>
AuthorDate: 2018-02-24 10:44:36 +0000
Commit:     Mart Raudsepp <leio@gentoo.org>
CommitDate: 2018-02-24 10:56:49 +0000

    media-libs/mesa: depend on xdg-utils for USE=openmax to not break XDG specs
    
    This is currently necessary due to the installation of 99mesaxdgomx with USE=openmax.
    Ideally we wouldn't depend on xdg-utils as a whole with its perl deps, but
    that's pending changed there. Unbreak things for the not so common case of
    mesa USE=openmax for the time being.
    
    Bug: https://bugs.gentoo.org/635040
    Bug: https://bugs.gentoo.org/264647
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-libs/mesa/mesa-17.1.10.ebuild    | 7 +++++--
 media-libs/mesa/mesa-17.2.8.ebuild     | 5 ++++-
 media-libs/mesa/mesa-17.3.5.ebuild     | 5 ++++-
 media-libs/mesa/mesa-18.0.0_rc4.ebuild | 5 ++++-
 media-libs/mesa/mesa-9999.ebuild       | 5 ++++-
 5 files changed, 21 insertions(+), 6 deletions(-)}
Comment 14 Matt Turner gentoo-dev 2018-12-29 18:48:34 UTC
media-libs/mesa no longer has IUSE=openmax. Removing x11@ from cc.