pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/mono6
Module Name: pkgsrc
Committed By: kamil
Date: Wed Feb 12 13:43:31 UTC 2020
Modified Files:
pkgsrc/lang/mono6: distinfo
Added Files:
pkgsrc/lang/mono6/patches: patch-mono_eglib_giconv.c
Log Message:
mono6: Fix build on modern NetBSD with POSIX iconv(3)
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/mono6/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/mono6/patches/patch-mono_eglib_giconv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/mono6/distinfo
diff -u pkgsrc/lang/mono6/distinfo:1.5 pkgsrc/lang/mono6/distinfo:1.6
--- pkgsrc/lang/mono6/distinfo:1.5 Thu Jan 9 15:26:36 2020
+++ pkgsrc/lang/mono6/distinfo Wed Feb 12 13:43:31 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2020/01/09 15:26:36 ryoon Exp $
+$NetBSD: distinfo,v 1.6 2020/02/12 13:43:31 kamil Exp $
SHA1 (mono-6.6.0.161.tar.xz) = e67eb01dc72db45bcc40169c65b54f17f64ddadb
RMD160 (mono-6.6.0.161.tar.xz) = 36f11f69fe7530ccf2c745fee787e48c6e737f32
@@ -13,6 +13,7 @@ SHA1 (patch-data_net__4__0_Makefile.am)
SHA1 (patch-data_net__4__5_Browsers_Makefile.am) = 80bd57a2ac3fc95adef18acd9cfd7744ca112b01
SHA1 (patch-data_net__4__5_Makefile.am) = d7591e835bfdd27fa0fba4b669b778924c811be4
SHA1 (patch-mcs_class_corlib_Test_Mono_MonoNativePlatformType.cs) = 226b2638ba0106539e8ab5d9698803c6421147f0
+SHA1 (patch-mono_eglib_giconv.c) = 04d2559d3868605194efd6267da010870f53d961
SHA1 (patch-mono_metadata_icall.c) = b326c16e9aa8f9ee154d937128e5e09fd31b235a
SHA1 (patch-mono_metadata_mono-config.c) = 510fc7a2dde144f593ebccb0258c3753dfe5ce52
SHA1 (patch-mono_metadata_threads.c) = e1432cced0dafce1a2712869ce79e12a2ab35973
Added files:
Index: pkgsrc/lang/mono6/patches/patch-mono_eglib_giconv.c
diff -u /dev/null pkgsrc/lang/mono6/patches/patch-mono_eglib_giconv.c:1.1
--- /dev/null Wed Feb 12 13:43:31 2020
+++ pkgsrc/lang/mono6/patches/patch-mono_eglib_giconv.c Wed Feb 12 13:43:31 2020
@@ -0,0 +1,30 @@
+$NetBSD: patch-mono_eglib_giconv.c,v 1.1 2020/02/12 13:43:31 kamil Exp $
+
+Support POSIX iconv(3) on modern NetBSD.
+
+--- mono/eglib/giconv.c.orig 2019-12-10 07:50:32.000000000 +0000
++++ mono/eglib/giconv.c
+@@ -37,6 +37,14 @@
+ #define FORCE_INLINE(RET_TYPE) inline RET_TYPE __attribute__((always_inline))
+ #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
+
+ #define UNROLL_DECODE_UTF8 0
+ #define UNROLL_ENCODE_UTF8 0
+@@ -196,7 +204,7 @@ g_iconv (GIConv cd, gchar **inbytes, gsi
+ } else {
+ outleftptr = NULL;
+ }
+-#if defined(__NetBSD__)
++#if defined(__NetBSD__) && !NETBSD_POSIX_ICONV
+ return iconv (cd->cd, (const gchar **)inbytes, inleftptr, outbytes, outleftptr);
+ #else
+ return iconv (cd->cd, inbytes, inleftptr, outbytes, outleftptr);
Home |
Main Index |
Thread Index |
Old Index