1 |
commit: 3f184f52495f3f7ffb33b69aa2ae7530810d82ee |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 6 15:12:47 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 6 21:45:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=3f184f52 |
7 |
|
8 |
kde-apps/kitinerary: Fix build against poppler-20.08 |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../files/kitinerary-20.04.3-poppler-20.08.patch | 32 ++++++++++++++++++++++ |
14 |
kde-apps/kitinerary/kitinerary-20.07.90.ebuild | 4 +++ |
15 |
2 files changed, 36 insertions(+) |
16 |
|
17 |
diff --git a/kde-apps/kitinerary/files/kitinerary-20.04.3-poppler-20.08.patch b/kde-apps/kitinerary/files/kitinerary-20.04.3-poppler-20.08.patch |
18 |
new file mode 100644 |
19 |
index 0000000000..768cf5dc50 |
20 |
--- /dev/null |
21 |
+++ b/kde-apps/kitinerary/files/kitinerary-20.04.3-poppler-20.08.patch |
22 |
@@ -0,0 +1,32 @@ |
23 |
+From 7098c8be9a5e7fabf74543308bfaf11a2ebe5484 Mon Sep 17 00:00:00 2001 |
24 |
+From: Volker Krause <vkrause@×××.org> |
25 |
+Date: Wed, 5 Aug 2020 17:18:13 +0200 |
26 |
+Subject: [PATCH] Fix build with latest Poppler |
27 |
+ |
28 |
+That now has a leading 0 in its minor version number. |
29 |
+--- |
30 |
+ CMakeLists.txt | 8 ++++---- |
31 |
+ 1 file changed, 4 insertions(+), 4 deletions(-) |
32 |
+ |
33 |
+diff --git a/CMakeLists.txt b/CMakeLists.txt |
34 |
+index e4d40f2..37787d8 100644 |
35 |
+--- a/CMakeLists.txt |
36 |
++++ b/CMakeLists.txt |
37 |
+@@ -71,10 +71,10 @@ if(TARGET Poppler::Core) |
38 |
+ endif() |
39 |
+ endif() |
40 |
+ if (HAVE_POPPLER) |
41 |
+- string(REPLACE "." ";" _poppler_version_components ${Poppler_VERSION}) |
42 |
+- list(GET _poppler_version_components 0 POPPLER_VERSION_MAJOR) |
43 |
+- list(GET _poppler_version_components 1 POPPLER_VERSION_MINOR) |
44 |
+- list(GET _poppler_version_components 2 POPPLER_VERSION_PATCH) |
45 |
++ string(REGEX MATCH "([0-9]+)\.0*([0-9]+)\.0*([0-9]+)" _match ${Poppler_VERSION}) |
46 |
++ set(POPPLER_VERSION_MAJOR ${CMAKE_MATCH_1}) |
47 |
++ set(POPPLER_VERSION_MINOR ${CMAKE_MATCH_2}) |
48 |
++ set(POPPLER_VERSION_PATCH ${CMAKE_MATCH_3}) |
49 |
+ endif() |
50 |
+ |
51 |
+ if (TARGET ZXing::ZXing OR TARGET ZXing::Core) |
52 |
+-- |
53 |
+GitLab |
54 |
+ |
55 |
|
56 |
diff --git a/kde-apps/kitinerary/kitinerary-20.07.90.ebuild b/kde-apps/kitinerary/kitinerary-20.07.90.ebuild |
57 |
index 092a4e4d18..a9fb37254e 100644 |
58 |
--- a/kde-apps/kitinerary/kitinerary-20.07.90.ebuild |
59 |
+++ b/kde-apps/kitinerary/kitinerary-20.07.90.ebuild |
60 |
@@ -35,6 +35,10 @@ RDEPEND="${DEPEND} |
61 |
!<kde-apps/kdepim-addons-18.07.80 |
62 |
" |
63 |
|
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${PN}-20.04.3-poppler-20.08.patch" # bug 735800, in 20.08.0 |
66 |
+) |
67 |
+ |
68 |
src_configure() { |
69 |
local mycmakeargs=( |
70 |
$(cmake_use_find_package barcode ZXing) |