From 7fc2c51275694161318812dd9b11dd04ae5f1a07 Mon Sep 17 00:00:00 2001 From: ryoon Date: Thu, 5 Nov 2020 09:17:53 +0000 Subject: libcdr: Fix build with textproc/icu-68.1 --- converters/libcdr/distinfo | 3 ++- converters/libcdr/patches/patch-src_lib_libcdr__utils.cpp | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 converters/libcdr/patches/patch-src_lib_libcdr__utils.cpp (limited to 'converters') diff --git a/converters/libcdr/distinfo b/converters/libcdr/distinfo index bc3d3f21dce..cf2b6109169 100644 --- a/converters/libcdr/distinfo +++ b/converters/libcdr/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.11 2020/02/09 14:03:38 wiz Exp $ +$NetBSD: distinfo,v 1.12 2020/11/05 09:17:53 ryoon Exp $ SHA1 (libcdr-0.1.6.tar.xz) = 8850232e2a8415910188d287c68cd3322a9dcbe9 RMD160 (libcdr-0.1.6.tar.xz) = f16f1f1b6857b4da1110e3ac681dc9fca11a7864 SHA512 (libcdr-0.1.6.tar.xz) = 629d55da71c7333f41f60a32e2880deffcf80088096af1bbc8c572b80ef21d851102fdebce56f77245ed60822ca98e02c0867b192abef496a2313fde54a97bb6 Size (libcdr-0.1.6.tar.xz) = 612068 bytes +SHA1 (patch-src_lib_libcdr__utils.cpp) = 2b3f190289bc6b2278c4a6c0ca5bd75effc8684c diff --git a/converters/libcdr/patches/patch-src_lib_libcdr__utils.cpp b/converters/libcdr/patches/patch-src_lib_libcdr__utils.cpp new file mode 100644 index 00000000000..b92c05eaad6 --- /dev/null +++ b/converters/libcdr/patches/patch-src_lib_libcdr__utils.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_lib_libcdr__utils.cpp,v 1.1 2020/11/05 09:17:53 ryoon Exp $ + +* Fix build with textproc/icu-68.1. + +--- src/lib/libcdr_utils.cpp.orig 2020-02-02 15:30:44.000000000 +0000 ++++ src/lib/libcdr_utils.cpp +@@ -108,7 +108,7 @@ static unsigned short getEncoding(const + csd = ucsdet_open(&status); + if (U_FAILURE(status) || !csd) + return 0; +- ucsdet_enableInputFilter(csd, TRUE); ++ ucsdet_enableInputFilter(csd, true); + ucsdet_setText(csd, (const char *)buffer, bufferLength, &status); + if (U_FAILURE(status)) + throw libcdr::EncodingException(); -- cgit v1.2.3