--- gtk+-2.12.0.ebuild.orig 2007-09-23 14:48:06.000000000 +0200 +++ gtk+-2.12.0.ebuild.orig 2007-09-23 14:11:26.000000000 +0200 @@ -72,10 +72,26 @@ epatch "${FILESDIR}"/${P}-icon-cache-speedup.patch # http://bugzilla.gnome.org/show_bug.cgi?id=478173 epatch "${FILESDIR}/${PN}-2.12.0-libtracker_so.patch" + #Fix Gnome bug 463773: + #http://bugzilla.gnome.org/show_bug.cgi?id=463773 + #These patches were taken from Arch Linux. Ubuntu uses another patch, + #see the Gnome Bug. + #Novell has a good forensic of the problem here: + #https://bugzilla.novell.com/show_bug.cgi?id=294385 + #Description from the Arch Linux commit: + #Fix fix critical assertions with OpenOffice.org and Flashplayer. + #The first one can be fixed, but requires a 100MB package update, + #the 2nd cannot be fixed without help from Adobe. These extra checks + #should be done in the offended packages, but checking it inside GTK + #does no harm to other applications + + epatch "${FILESDIR}/gtkclipboard-check.patch" + epatch "${FILESDIR}/gdkscreen-check.patch" + # -O3 and company cause random crashes in applications. Bug #133469 replace-flags -O3 -O2 strip-flags use ppc64 && append-flags -mminimal-toc