1 |
commit: 034be77f8fd376a0d7f3782694c1a94dd61b31e7 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 16:00:32 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 16:08:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=034be77f |
7 |
|
8 |
kde-apps/konqueror: Fix runtime crash |
9 |
|
10 |
Gentoo-bug: 604310 |
11 |
See also: https://bugs.kde.org/show_bug.cgi?id=373781 |
12 |
|
13 |
Package-Manager: portage-2.3.0 |
14 |
|
15 |
.../files/konqueror-16.12.0-crashfix.patch | 29 ++++++ |
16 |
kde-apps/konqueror/konqueror-16.12.0-r1.ebuild | 109 +++++++++++++++++++++ |
17 |
2 files changed, 138 insertions(+) |
18 |
|
19 |
diff --git a/kde-apps/konqueror/files/konqueror-16.12.0-crashfix.patch b/kde-apps/konqueror/files/konqueror-16.12.0-crashfix.patch |
20 |
new file mode 100644 |
21 |
index 00000000..dd4fc75 |
22 |
--- /dev/null |
23 |
+++ b/kde-apps/konqueror/files/konqueror-16.12.0-crashfix.patch |
24 |
@@ -0,0 +1,29 @@ |
25 |
+From 4c6575a9852e3dfcf85bd849fa953dcc083029d9 Mon Sep 17 00:00:00 2001 |
26 |
+From: David Faure <faure@×××.org> |
27 |
+Date: Wed, 21 Dec 2016 08:51:10 +0100 |
28 |
+Subject: Set Qt::AA_ShareOpenGLContexts like what Qt tells me to do: |
29 |
+ |
30 |
+"initialize: Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before |
31 |
+constructing QGuiApplication." |
32 |
+--- |
33 |
+ src/konqmain.cpp | 3 ++- |
34 |
+ 1 file changed, 2 insertions(+), 1 deletion(-) |
35 |
+ |
36 |
+diff --git a/src/konqmain.cpp b/src/konqmain.cpp |
37 |
+index 774225e..73c6a2f 100644 |
38 |
+--- a/src/konqmain.cpp |
39 |
++++ b/src/konqmain.cpp |
40 |
+@@ -58,7 +58,8 @@ static KonqPreloadingHandler s_preloadingHandler; |
41 |
+ |
42 |
+ extern "C" Q_DECL_EXPORT int kdemain(int argc, char **argv) |
43 |
+ { |
44 |
+- KonquerorApplication app(argc, argv); |
45 |
++ QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); // says QtWebEngine |
46 |
++ KonquerorApplication app(argc, argv); |
47 |
+ KLocalizedString::setApplicationDomain("konqueror"); |
48 |
+ |
49 |
+ KAboutData aboutData("konqueror", i18n("Konqueror"), KONQUEROR_VERSION); |
50 |
+-- |
51 |
+cgit v0.11.2 |
52 |
+ |
53 |
+ |
54 |
|
55 |
diff --git a/kde-apps/konqueror/konqueror-16.12.0-r1.ebuild b/kde-apps/konqueror/konqueror-16.12.0-r1.ebuild |
56 |
new file mode 100644 |
57 |
index 00000000..3a49a33 |
58 |
--- /dev/null |
59 |
+++ b/kde-apps/konqueror/konqueror-16.12.0-r1.ebuild |
60 |
@@ -0,0 +1,109 @@ |
61 |
+# Copyright 1999-2017 Gentoo Foundation |
62 |
+# Distributed under the terms of the GNU General Public License v2 |
63 |
+# $Id$ |
64 |
+ |
65 |
+EAPI=6 |
66 |
+ |
67 |
+KDE_HANDBOOK="forceoptional" # not optional until !kdelibs4support |
68 |
+KDE_TEST="true" |
69 |
+VIRTUALX_REQUIRED="test" |
70 |
+inherit flag-o-matic kde5 |
71 |
+ |
72 |
+DESCRIPTION="Web browser and file manager based on KDE Frameworks" |
73 |
+HOMEPAGE=" |
74 |
+ https://www.kde.org/applications/internet/konqueror/ |
75 |
+ https://konqueror.org/ |
76 |
+" |
77 |
+KEYWORDS="~amd64 ~x86" |
78 |
+IUSE="activities speech tidy X" |
79 |
+# 4 of 4 tests fail. Last checked for 4.0.3 |
80 |
+RESTRICT+=" test" |
81 |
+ |
82 |
+# drop qtwebengine subslot operator when QT_MINIMAL >= 5.8.0 |
83 |
+COMMON_DEPEND=" |
84 |
+ $(add_frameworks_dep karchive) |
85 |
+ $(add_frameworks_dep kbookmarks) |
86 |
+ $(add_frameworks_dep kcmutils) |
87 |
+ $(add_frameworks_dep kcodecs) |
88 |
+ $(add_frameworks_dep kcompletion) |
89 |
+ $(add_frameworks_dep kconfig) |
90 |
+ $(add_frameworks_dep kconfigwidgets) |
91 |
+ $(add_frameworks_dep kcoreaddons) |
92 |
+ $(add_frameworks_dep kcrash) |
93 |
+ $(add_frameworks_dep kdbusaddons) |
94 |
+ $(add_frameworks_dep kded) |
95 |
+ $(add_frameworks_dep kdelibs4support) |
96 |
+ $(add_frameworks_dep kdesu) |
97 |
+ $(add_frameworks_dep kguiaddons) |
98 |
+ $(add_frameworks_dep khtml) |
99 |
+ $(add_frameworks_dep ki18n) |
100 |
+ $(add_frameworks_dep kiconthemes) |
101 |
+ $(add_frameworks_dep kio) |
102 |
+ $(add_frameworks_dep kitemviews) |
103 |
+ $(add_frameworks_dep kjobwidgets) |
104 |
+ $(add_frameworks_dep kparts) |
105 |
+ $(add_frameworks_dep kservice) |
106 |
+ $(add_frameworks_dep kwidgetsaddons) |
107 |
+ $(add_frameworks_dep kwindowsystem) |
108 |
+ $(add_frameworks_dep kxmlgui) |
109 |
+ $(add_qt_dep qtdbus) |
110 |
+ $(add_qt_dep qtgui) |
111 |
+ $(add_qt_dep qtwebengine 'widgets' '' '5=') |
112 |
+ $(add_qt_dep qtwidgets) |
113 |
+ $(add_qt_dep qtxml) |
114 |
+ sys-libs/zlib |
115 |
+ speech? ( $(add_qt_dep qtspeech) ) |
116 |
+ tidy? ( app-text/htmltidy ) |
117 |
+ X? ( $(add_qt_dep qtx11extras) ) |
118 |
+" |
119 |
+DEPEND="${COMMON_DEPEND} |
120 |
+ activities? ( $(add_frameworks_dep kactivities) ) |
121 |
+" |
122 |
+RDEPEND="${COMMON_DEPEND} |
123 |
+ $(add_kdeapps_dep kfind) |
124 |
+ $(add_plasma_dep kde-cli-tools) |
125 |
+ !kde-apps/kfmclient:4 |
126 |
+ !kde-apps/konq-plugins |
127 |
+ !kde-apps/libkonq:5 |
128 |
+" |
129 |
+ |
130 |
+PATCHES=( "${FILESDIR}/${PN}-16.12.0-crashfix.patch" ) |
131 |
+ |
132 |
+src_prepare() { |
133 |
+ [[ ${CHOST} == *-solaris* ]] && append-ldflags -lmalloc |
134 |
+ |
135 |
+ kde5_src_prepare |
136 |
+} |
137 |
+ |
138 |
+src_configure() { |
139 |
+ local mycmakeargs=( |
140 |
+ $(cmake-utils_use_find_package activities KF5Activities) |
141 |
+ $(cmake-utils_use_find_package speech Qt5TextToSpeech) |
142 |
+ $(cmake-utils_use_find_package tidy LibTidy) |
143 |
+ $(cmake-utils_use_find_package X X11) |
144 |
+ ) |
145 |
+ kde5_src_configure |
146 |
+} |
147 |
+ |
148 |
+pkg_postinst() { |
149 |
+ kde5_pkg_postinst |
150 |
+ |
151 |
+ if ! has_version kde-apps/keditbookmarks:${SLOT} ; then |
152 |
+ elog "For bookmarks support, install keditbookmarks:" |
153 |
+ elog "kde-apps/keditbookmarks:${SLOT}" |
154 |
+ fi |
155 |
+ |
156 |
+ if ! has_version kde-apps/dolphin:${SLOT} ; then |
157 |
+ elog "If you want to use konqueror as a filemanager, install the dolphin kpart:" |
158 |
+ elog "kde-apps/dolphin:${SLOT}" |
159 |
+ fi |
160 |
+ |
161 |
+ if ! has_version kde-apps/svg:${SLOT} ; then |
162 |
+ elog "For konqueror to view SVGs, install the svg kpart:" |
163 |
+ elog "kde-apps/svgpart:${SLOT}" |
164 |
+ fi |
165 |
+ |
166 |
+ if ! has_version virtual/jre ; then |
167 |
+ elog "To use Java on webpages install virtual/jre." |
168 |
+ fi |
169 |
+} |