summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/kde/ark/ark-18.04.0.exheres-04
-rw-r--r--packages/kde/ark/files/ark-libzipplugin-Add-missing-memory-header.patch37
2 files changed, 41 insertions, 0 deletions
diff --git a/packages/kde/ark/ark-18.04.0.exheres-0 b/packages/kde/ark/ark-18.04.0.exheres-0
index 5949d03..6f2d3e8 100644
--- a/packages/kde/ark/ark-18.04.0.exheres-0
+++ b/packages/kde/ark/ark-18.04.0.exheres-0
@@ -13,3 +13,7 @@ MYOPTIONS="
)
"
+DEFAULT_SRC_PREPARE_PATCHES+=(
+ "${FILES}"/${PN}-libzipplugin-Add-missing-memory-header.patch
+)
+
diff --git a/packages/kde/ark/files/ark-libzipplugin-Add-missing-memory-header.patch b/packages/kde/ark/files/ark-libzipplugin-Add-missing-memory-header.patch
new file mode 100644
index 0000000..75b189c
--- /dev/null
+++ b/packages/kde/ark/files/ark-libzipplugin-Add-missing-memory-header.patch
@@ -0,0 +1,37 @@
+Upstream: under review, https://phabricator.kde.org/D12374
+
+From aa7bacb9380e968b7e12c46862102ff589addc8d Mon Sep 17 00:00:00 2001
+From: Marco Genasci <fedeliallalinea@gmail.com>
+Date: Fri, 20 Apr 2018 22:52:03 +0200
+Subject: [PATCH] libzipplugin: Add missing <memory> header
+
+Summary:
+Build fails on some setups for use of std::unique_ptr.
+See also: https://bugs.gentoo.org/653546
+
+Reviewers: #ark
+
+Subscribers: kde-utils-devel
+
+Tags: #ark
+
+Differential Revision: https://phabricator.kde.org/D12374
+---
+ plugins/libzipplugin/libzipplugin.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/plugins/libzipplugin/libzipplugin.cpp b/plugins/libzipplugin/libzipplugin.cpp
+index 5641c97b..be260b39 100644
+--- a/plugins/libzipplugin/libzipplugin.cpp
++++ b/plugins/libzipplugin/libzipplugin.cpp
+@@ -41,6 +41,7 @@
+
+ #include <utime.h>
+ #include <zlib.h>
++#include <memory>
+
+ K_PLUGIN_FACTORY_WITH_JSON(LibZipPluginFactory, "kerfuffle_libzip.json", registerPlugin<LibzipPlugin>();)
+
+--
+2.17.0
+