aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authororbea <orbea@riseup.net>2020-10-28 10:42:08 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-31 11:15:45 +0700
commit57154cf137315b66e67a31dd07414a18c096e76c (patch)
treeb86466d60bd3c51fe147dfec33bed906dfb94b75 /libraries
parentae6fb7ebe1c4dc485a92713cd1747abaec4b56e6 (diff)
libraries/libetonyek: Fix build on current.
Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/libetonyek/0001-add-missing-include-for-std-for_each.patch32
-rw-r--r--libraries/libetonyek/libetonyek.SlackBuild8
2 files changed, 38 insertions, 2 deletions
diff --git a/libraries/libetonyek/0001-add-missing-include-for-std-for_each.patch b/libraries/libetonyek/0001-add-missing-include-for-std-for_each.patch
new file mode 100644
index 000000000000..6a77e0677b40
--- /dev/null
+++ b/libraries/libetonyek/0001-add-missing-include-for-std-for_each.patch
@@ -0,0 +1,32 @@
+From 4b4d879a6db69ea05b89fdf99df8cb5d902d16b6 Mon Sep 17 00:00:00 2001
+From: Roland Illig <roland.illig@gmx.de>
+Date: Tue, 19 May 2020 08:43:39 +0200
+Subject: [PATCH] add missing include for std::for_each
+
+On NetBSD 8.0 x86_64, gcc complains:
+ NUM3Parser.cpp: In member function 'virtual bool libetonyek::NUM3Parser::parseDocument()':
+ NUM3Parser.cpp:46:3: error: 'for_each' is not a member of 'std'
+ std::for_each(sheetListRefs.begin(), sheetListRefs.end(), std::bind(&NUM3Parser::parseSheet, this, std::placeholders::_1));
+
+Change-Id: I723ba1bcbd10ed9215ceea8c5b224fdc5242be65
+Reviewed-on: https://gerrit.libreoffice.org/c/libetonyek/+/94450
+Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
+Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
+---
+ src/lib/NUM3Parser.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lib/NUM3Parser.cpp b/src/lib/NUM3Parser.cpp
+index 66fb195..c19b611 100644
+--- a/src/lib/NUM3Parser.cpp
++++ b/src/lib/NUM3Parser.cpp
+@@ -7,6 +7,7 @@
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
++#include <algorithm>
+ #include <functional>
+
+ #include "NUM3Parser.h"
+--
+2.26.2
diff --git a/libraries/libetonyek/libetonyek.SlackBuild b/libraries/libetonyek/libetonyek.SlackBuild
index 4eeb23a12dbc..9fbf5f5636a4 100644
--- a/libraries/libetonyek/libetonyek.SlackBuild
+++ b/libraries/libetonyek/libetonyek.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libetonyek
-# Copyright 2015-2019 Hunter Sezen California, USA
+# Copyright 2015-2020 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=libetonyek
VERSION=${VERSION:-0.1.9}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -80,6 +80,10 @@ else
cppunit='--disable-tests'
fi
+# add missing include for std::for_each
+# https://gerrit.libreoffice.org/c/libetonyek/+/94450
+patch -p1 < $CWD/0001-add-missing-include-for-std-for_each.patch
+
autoreconf -fi
CFLAGS="$SLKCFLAGS" \