summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZamarin Arthur <arthurzam@gmail.com>2020-06-16 20:49:23 +0300
committerAndreas Sturmlechner <asturm@gentoo.org>2020-06-16 20:59:36 +0200
commitebd2cc940f853c1d6aa9e0b20ef8970b75e51253 (patch)
treec8928d03aabbaa430a31134b645457ff29bdc13c /app-text/sigil
parentapp-text/sigil: remove old versions (diff)
downloadgentoo-ebd2cc940f853c1d6aa9e0b20ef8970b75e51253.tar.gz
gentoo-ebd2cc940f853c1d6aa9e0b20ef8970b75e51253.tar.bz2
gentoo-ebd2cc940f853c1d6aa9e0b20ef8970b75e51253.zip
app-text/sigil: fix compatibility with qtwebengine-5.15.0
use upstream patch which fixes compatibility problems with qtwebengine-5.15.0 Closes: https://bugs.gentoo.org/728240 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Zamarin Arthur <arthurzam@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-text/sigil')
-rw-r--r--app-text/sigil/files/sigil-1.2.1-qt5.15-fix.patch22
-rw-r--r--app-text/sigil/sigil-1.2.1-r1.ebuild (renamed from app-text/sigil/sigil-1.2.1.ebuild)2
2 files changed, 24 insertions, 0 deletions
diff --git a/app-text/sigil/files/sigil-1.2.1-qt5.15-fix.patch b/app-text/sigil/files/sigil-1.2.1-qt5.15-fix.patch
new file mode 100644
index 000000000000..f15cfd4e9639
--- /dev/null
+++ b/app-text/sigil/files/sigil-1.2.1-qt5.15-fix.patch
@@ -0,0 +1,22 @@
+From 50280fae48717e76d56685bf0fda19783c8904e1 Mon Sep 17 00:00:00 2001
+From: Doug Massay <douglaslmassay@gmail.com>
+Date: Fri, 5 Jun 2020 20:25:41 -0400
+Subject: [PATCH] Fix Qt5.15.x behavior-change breakage
+
+---
+ src/MainUI/MainWindow.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/MainUI/MainWindow.cpp b/src/MainUI/MainWindow.cpp
+index 64202e113..de7e7f97f 100644
+--- a/src/MainUI/MainWindow.cpp
++++ b/src/MainUI/MainWindow.cpp
+@@ -4289,7 +4289,7 @@ void MainWindow::ReadSettings()
+ web_settings->setAttribute(QWebEngineSettings::JavascriptCanOpenWindows, false);
+ web_settings->setAttribute(QWebEngineSettings::JavascriptCanAccessClipboard, false);
+ web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, (settings.remoteOn() == 1));
+- web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, false);
++ web_settings->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, true);
+ web_settings->setAttribute(QWebEngineSettings::PluginsEnabled, false);
+ web_settings->setAttribute(QWebEngineSettings::AutoLoadIconsForPage, false);
+ web_settings->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, true);
diff --git a/app-text/sigil/sigil-1.2.1.ebuild b/app-text/sigil/sigil-1.2.1-r1.ebuild
index 6b67b65a3825..e7b02c1eea76 100644
--- a/app-text/sigil/sigil-1.2.1.ebuild
+++ b/app-text/sigil/sigil-1.2.1-r1.ebuild
@@ -53,6 +53,8 @@ S="${WORKDIR}/Sigil-${PV}"
DOCS=( ChangeLog.txt README.md )
+PATCHES=( "${FILESDIR}/${P}-qt5.15-fix.patch" )
+
src_configure() {
local mycmakeargs=(
-DINSTALL_BUNDLED_DICTS=0