pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/news/newsbeuter newsbeuter: Fix building on NetBSD HEAD.
details: https://anonhg.NetBSD.org/pkgsrc/rev/af6990af1b2e
branches: trunk
changeset: 771625:af6990af1b2e
user: nia <nia%pkgsrc.org@localhost>
date: Mon Dec 20 07:19:42 2021 +0000
description:
newsbeuter: Fix building on NetBSD HEAD.
diffstat:
news/newsbeuter/distinfo | 3 +-
news/newsbeuter/patches/patch-src_utils.cpp | 31 +++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletions(-)
diffs (49 lines):
diff -r 4beef052c4d2 -r af6990af1b2e news/newsbeuter/distinfo
--- a/news/newsbeuter/distinfo Mon Dec 20 07:09:07 2021 +0000
+++ b/news/newsbeuter/distinfo Mon Dec 20 07:19:42 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:09:35 nia Exp $
+$NetBSD: distinfo,v 1.6 2021/12/20 07:19:42 nia Exp $
BLAKE2s (newsbeuter-2.9.tar.gz) = d42446556199395cf370c229208d52e21fd8d666cc415ae6f4cd2bd92d9ea889
SHA512 (newsbeuter-2.9.tar.gz) = b173008c8c8d3729f8ccef3ce62645a05c1803fb842d5c0afdf9ffd4ed3726030f9c359c20bc817402a6a0ea12af742d0ae7faf9b92d52c11f420f62b430b0aa
@@ -11,3 +11,4 @@
SHA1 (patch-src_feedhq__api.cpp) = 53d2807fc03cc048b6af928d304efcf9c6bd5c70
SHA1 (patch-src_oldreader__api.cpp) = fccad7823870717eab2f0c87e3ab78465dbf8128
SHA1 (patch-src_ttrss__api.cpp) = 60e0f71819c6a91d7d8ab44daf24e1df06029601
+SHA1 (patch-src_utils.cpp) = e153e29a0234901176485e16b92360f1e9bdea7e
diff -r 4beef052c4d2 -r af6990af1b2e news/newsbeuter/patches/patch-src_utils.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/news/newsbeuter/patches/patch-src_utils.cpp Mon Dec 20 07:19:42 2021 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_utils.cpp,v 1.1 2021/12/20 07:19:42 nia Exp $
+
+Adapt to NetBSD iconv prototype change.
+
+--- src/utils.cpp.orig 2015-02-19 10:56:59.000000000 +0000
++++ src/utils.cpp
+@@ -37,6 +37,15 @@ GCRY_THREAD_OPTION_PTHREAD_IMPL;
+ #include <openssl/crypto.h>
+ #endif
+
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#if __NetBSD_Prereq__(9,99,17)
++#define NETBSD_POSIX_ICONV 1
++#else
++#define NETBSD_POSIX_ICONV 0
++#endif
++#endif
++
+ namespace newsbeuter {
+
+ std::vector<std::string> utils::tokenize_quoted(const std::string& str, std::string delimiters) {
+@@ -274,7 +283,7 @@ std::string utils::convert_text(const st
+ * of all the Unix-like systems around there, only Linux/glibc seems to
+ * come with a SuSv3-conforming iconv implementation.
+ */
+-#if !(__linux) && !defined(__GLIBC__) && !defined(__APPLE__) && !defined(__OpenBSD__)
++#if !(__linux) && !defined(__GLIBC__) && !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(NETBSD_POSIX_ICONV)
+ const char * inbufp;
+ #else
+ char * inbufp;
Home |
Main Index |
Thread Index |
Old Index