Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] gdk-pixbuf-query-loaders usage in tree
Date: Tue, 18 Oct 2011 18:22:20
Message-Id: 1318962092.21882.1.camel@belkin4
In Reply to: [gentoo-dev] gdk-pixbuf-query-loaders usage in tree by Fabio Erculiani
1 El dom, 09-10-2011 a las 10:48 +0200, Fabio Erculiani escribió:
2 > gdk-pixbuf-query-loaders has a long history of segfaults.
3 > Not to blame anybody here, but still segfaults there can happen quite easily.
4 >
5 > A nice example is:
6 > export __GL_NO_DSO_FINALIZER=1
7 > $ gdk-pixbuf-query-loaders
8 > When nvidia.ko is in use.
9 >
10 > The __GL_NO_DSO_FINALIZER is a hack that made buggy nvidia-drivers (or
11 > buggy gl threads usage?) work.
12 > The problem with our ebuilds is that everybody did something like this
13 > (in pkg_postinst):
14 >
15 > gdk-pixbuf-query-loaders > "${ROOT}usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
16 >
17 > 1) exit status is not even considered
18 > 2) output redirection truncates the destination file as soon as the
19 > executable is spawned
20 >
21 > This is very bad, because in case of segfaults, loaders.cache is
22 > totalled, resulting in gtk+ apps dying miserably.
23 >
24 > Please don't do that, never ever. We don't live in a perfect world.
25 >
26 > x11-libs/gdk-pixbuf got fixed already.
27 >
28 > Others affected:
29 > app-emulation/emul-linux-x86-gtklibs
30 > gnome-base/librsvg
31 > media-libs/libwmf
32 > others?
33 >
34
35 I would really appreciate if you could fix this three yourself :-)
36
37 Thanks a lot

Attachments

File name MIME type
signature.asc application/pgp-signature