1 |
commit: e07139da48c0af29a4ef56ac62168245b8b69991 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 9 15:51:44 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 9 16:03:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e07139da |
7 |
|
8 |
kde-frameworks/knewstuff: Fix certain tars not being recognized |
9 |
|
10 |
...as valid archives |
11 |
|
12 |
Upstream commit 82f04bff174a4bb307aa9b39aedf271c200b0545 |
13 |
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=450662 |
14 |
|
15 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
16 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
17 |
|
18 |
...newstuff-5.92.0-fix-valid-tar-recognition.patch | 27 +++++++++++ |
19 |
.../knewstuff/knewstuff-5.92.0-r2.ebuild | 54 ++++++++++++++++++++++ |
20 |
2 files changed, 81 insertions(+) |
21 |
|
22 |
diff --git a/kde-frameworks/knewstuff/files/knewstuff-5.92.0-fix-valid-tar-recognition.patch b/kde-frameworks/knewstuff/files/knewstuff-5.92.0-fix-valid-tar-recognition.patch |
23 |
new file mode 100644 |
24 |
index 000000000000..7926b3cee8fa |
25 |
--- /dev/null |
26 |
+++ b/kde-frameworks/knewstuff/files/knewstuff-5.92.0-fix-valid-tar-recognition.patch |
27 |
@@ -0,0 +1,27 @@ |
28 |
+From 82f04bff174a4bb307aa9b39aedf271c200b0545 Mon Sep 17 00:00:00 2001 |
29 |
+From: Alexander Lohnau <alexander.lohnau@×××.de> |
30 |
+Date: Mon, 7 Mar 2022 21:27:09 +0100 |
31 |
+Subject: [PATCH] Fix certain tars not being recognized as valid archives |
32 |
+ |
33 |
+KArchive can handle those too. |
34 |
+ |
35 |
+BUG: 450662 |
36 |
+--- |
37 |
+ src/core/installation.cpp | 1 + |
38 |
+ 1 file changed, 1 insertion(+) |
39 |
+ |
40 |
+diff --git a/src/core/installation.cpp b/src/core/installation.cpp |
41 |
+index c3ba0e15..45694465 100644 |
42 |
+--- a/src/core/installation.cpp |
43 |
++++ b/src/core/installation.cpp |
44 |
+@@ -566,6 +566,7 @@ QStringList Installation::installDownloadedFileAndUncompress(const KNSCore::Entr |
45 |
+ archive.reset(new KZip(payloadfile)); |
46 |
+ // clang-format off |
47 |
+ } else if (mimeType.inherits(QStringLiteral("application/tar")) |
48 |
++ || mimeType.inherits(QStringLiteral("application/x-tar")) // BUG 450662 |
49 |
+ || mimeType.inherits(QStringLiteral("application/x-gzip")) |
50 |
+ || mimeType.inherits(QStringLiteral("application/x-bzip")) |
51 |
+ || mimeType.inherits(QStringLiteral("application/x-lzma")) |
52 |
+-- |
53 |
+GitLab |
54 |
+ |
55 |
|
56 |
diff --git a/kde-frameworks/knewstuff/knewstuff-5.92.0-r2.ebuild b/kde-frameworks/knewstuff/knewstuff-5.92.0-r2.ebuild |
57 |
new file mode 100644 |
58 |
index 000000000000..44c32f027192 |
59 |
--- /dev/null |
60 |
+++ b/kde-frameworks/knewstuff/knewstuff-5.92.0-r2.ebuild |
61 |
@@ -0,0 +1,54 @@ |
62 |
+# Copyright 1999-2022 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=8 |
66 |
+ |
67 |
+ECM_TEST="false" |
68 |
+PVCUT=$(ver_cut 1-2) |
69 |
+QTMIN=5.15.2 |
70 |
+inherit ecm kde.org |
71 |
+ |
72 |
+DESCRIPTION="Framework for downloading and sharing additional application data" |
73 |
+ |
74 |
+LICENSE="LGPL-2+" |
75 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
76 |
+IUSE="opds" |
77 |
+ |
78 |
+DEPEND=" |
79 |
+ >=dev-qt/qtdeclarative-${QTMIN}:5 |
80 |
+ >=dev-qt/qtgui-${QTMIN}:5 |
81 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
82 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
83 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
84 |
+ =kde-frameworks/attica-${PVCUT}*:5 |
85 |
+ =kde-frameworks/karchive-${PVCUT}*:5 |
86 |
+ =kde-frameworks/kcompletion-${PVCUT}*:5 |
87 |
+ =kde-frameworks/kconfig-${PVCUT}*:5 |
88 |
+ =kde-frameworks/kcoreaddons-${PVCUT}*:5 |
89 |
+ =kde-frameworks/ki18n-${PVCUT}*:5 |
90 |
+ =kde-frameworks/kiconthemes-${PVCUT}*:5 |
91 |
+ =kde-frameworks/kio-${PVCUT}*:5 |
92 |
+ =kde-frameworks/kitemviews-${PVCUT}*:5 |
93 |
+ =kde-frameworks/kpackage-${PVCUT}*:5 |
94 |
+ =kde-frameworks/kservice-${PVCUT}*:5 |
95 |
+ =kde-frameworks/ktextwidgets-${PVCUT}*:5 |
96 |
+ =kde-frameworks/kwidgetsaddons-${PVCUT}*:5 |
97 |
+ =kde-frameworks/kxmlgui-${PVCUT}*:5 |
98 |
+ opds? ( =kde-frameworks/syndication-${PVCUT}*:5 ) |
99 |
+" |
100 |
+RDEPEND="${DEPEND} |
101 |
+ >=kde-frameworks/kirigami-${PVCUT}:5 |
102 |
+" |
103 |
+ |
104 |
+PATCHES=( |
105 |
+ "${FILESDIR}/${P}-KDEBUG-451165.patch" |
106 |
+ "${FILESDIR}/${P}-fix-valid-tar-recognition.patch" # KDE-bug 450662 |
107 |
+) |
108 |
+ |
109 |
+src_configure() { |
110 |
+ local mycmakeargs=( |
111 |
+ $(cmake_use_find_package opds KF5Syndication) |
112 |
+ ) |
113 |
+ |
114 |
+ ecm_src_configure |
115 |
+} |