summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-04-20 11:50:22 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-04-20 11:50:44 +0200
commitb670e0269c34832d398378dfca371c7572ae680c (patch)
treedb96a620a3791422614b978327775fb81e9807a7 /kde-apps
parentsys-apps/coreutils-8.28-r1: arm64 stable (bug #638176) (diff)
downloadgentoo-b670e0269c34832d398378dfca371c7572ae680c.tar.gz
gentoo-b670e0269c34832d398378dfca371c7572ae680c.tar.bz2
gentoo-b670e0269c34832d398378dfca371c7572ae680c.zip
kde-apps/ark: Fix build (missing header)
Thanks-to: Marco Genasci <fedeliallalinea@gmail.com> Closes: https://bugs.gentoo.org/653546 Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'kde-apps')
-rw-r--r--kde-apps/ark/ark-18.04.0.ebuild2
-rw-r--r--kde-apps/ark/files/ark-18.04.0-missing-memory-include.patch35
2 files changed, 37 insertions, 0 deletions
diff --git a/kde-apps/ark/ark-18.04.0.ebuild b/kde-apps/ark/ark-18.04.0.ebuild
index eb5ba8737873..273b2b1ad902 100644
--- a/kde-apps/ark/ark-18.04.0.ebuild
+++ b/kde-apps/ark/ark-18.04.0.ebuild
@@ -47,6 +47,8 @@ DEPEND="${RDEPEND}
# bug #560548, last checked with 16.04.1
RESTRICT+=" test"
+PATCHES=( "${FILESDIR}/${P}-missing-memory-include.patch" )
+
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_find_package bzip2 BZip2)
diff --git a/kde-apps/ark/files/ark-18.04.0-missing-memory-include.patch b/kde-apps/ark/files/ark-18.04.0-missing-memory-include.patch
new file mode 100644
index 000000000000..1935fc4ccaeb
--- /dev/null
+++ b/kde-apps/ark/files/ark-18.04.0-missing-memory-include.patch
@@ -0,0 +1,35 @@
+From 23ce7f8c727d76d4532b8949c383c3f17b64a539 Mon Sep 17 00:00:00 2001
+From: Marco Genasci <fedeliallalinea@gmail.com>
+Date: Fri, 20 Apr 2018 11:40:30 +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
+