[epiphany] Add patch to disable DRI3

catanzaro catanzaro at fedoraproject.org
Thu Nov 13 17:10:27 UTC 2014


commit 40b74aaa23b05921dee8cffb66b5d91fe2f28339
Author: Michael Catanzaro <mcatanzaro at gnome.org>
Date:   Thu Nov 13 11:10:22 2014 -0600

    Add patch to disable DRI3

 epiphany-disable-DRI3.patch |   27 +++++++++++++++++++++++++++
 epiphany.spec               |    8 +++++++-
 2 files changed, 34 insertions(+), 1 deletions(-)
---
diff --git a/epiphany-disable-DRI3.patch b/epiphany-disable-DRI3.patch
new file mode 100644
index 0000000..385b646
--- /dev/null
+++ b/epiphany-disable-DRI3.patch
@@ -0,0 +1,27 @@
+From 64454729e88d3cb5888657e16666c2f62619f6e6 Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mcatanzaro at igalia.com>
+Date: Thu, 13 Nov 2014 10:57:36 -0600
+Subject: [PATCH] Disable DRI3
+
+DRI3 is broken in Fedora, so we need this workaround.
+---
+ src/ephy-main.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/ephy-main.c b/src/ephy-main.c
+index 12704ea..2dd214c 100644
+--- a/src/ephy-main.c
++++ b/src/ephy-main.c
+@@ -238,6 +238,9 @@ main (int argc,
+   int status;
+   EphyFileHelpersFlags flags;
+ 
++  /* Fedora enables DRI3 which breaks many web sites, e.g. DuckDuckGo and YouTube. */
++  g_setenv ("LIBGL_DRI3_DISABLE", "1", FALSE);
++
+ #ifdef ENABLE_NLS
+   /* Initialize the i18n stuff */
+   bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+-- 
+1.9.3
+
diff --git a/epiphany.spec b/epiphany.spec
index 076a395..7858abe 100644
--- a/epiphany.spec
+++ b/epiphany.spec
@@ -1,7 +1,7 @@
 Name: epiphany
 Epoch: 1
 Version: 3.14.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: Web browser for GNOME
 
 License: GPLv2+ and CC-BY-SA
@@ -10,6 +10,8 @@ Source0: http://download.gnome.org/sources/epiphany/3.14/%{name}-%{version}.tar.
 
 # Fedora bookmarks
 Patch0: epiphany-default-bookmarks.patch
+# DRI3 is currently only used in Fedora. It breaks DuckDuckGo, YouTube, et. al.
+Patch1: epiphany-disable-DRI3.patch
 
 BuildRequires: desktop-file-utils
 BuildRequires: gcr-devel >= 3.5.5
@@ -60,6 +62,7 @@ installing the epiphany application itself.
 %prep
 %setup -q
 %patch0 -p1 -b .default-bookmarks
+%patch1 -p1 -b .disable-dri3
 
 %build
 %configure --with-distributor-name=Fedora
@@ -105,6 +108,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %{_mandir}/man*/*
 
 %changelog
+* Thu Nov 13 2014 Michael Catanzaro <mcatanzaro at gnome.org> - 1:3.14.2-2
+- Add patch to disable DRI3
+
 * Mon Nov 10 2014 Kalev Lember <kalevlember at gmail.com> - 1:3.14.2-1
 - Update to 3.14.2
 


More information about the scm-commits mailing list