As a follow up to this discussion, I came with the attached patch. It
appears to work ok for regular merges and binpkg merges with
FEATURES="collision-protect".

Per my reading of PMS it does not appear to violate anything so I guess
it is ok.

-- 
Gilles Dartiguelongue <e...@gentoo.org>
Gentoo
Index: gdk-pixbuf-2.28.2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-libs/gdk-pixbuf/gdk-pixbuf-2.28.2.ebuild,v
retrieving revision 1.3
diff -u -B -r1.3 gdk-pixbuf-2.28.2.ebuild
--- gdk-pixbuf-2.28.2.ebuild	3 Sep 2013 21:59:11 -0000	1.3
+++ gdk-pixbuf-2.28.2.ebuild	9 Sep 2013 22:28:20 -0000
@@ -67,6 +67,15 @@
 
 pkg_preinst() {
 	gnome2_gdk_pixbuf_savelist
+
+	# Make sure loaders.cache belongs to gdk-pixbuf alone
+	local cache="usr/$(get_libdir)/${PN}-2.0/2.10.0/loaders.cache"
+
+	if [[ -e ${ROOT}${cache} ]]; then
+		cp "${ROOT}"${cache} "${D}"/${cache} || die
+	else
+		touch "${D}"/${cache} || die
+	fi
 }
 
 pkg_postinst() {

Reply via email to