On 09/09/13 08:29 PM, Gilles Dartiguelongue wrote:
> 
> 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() {

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() {

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to