pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

neko: avoid uselocale on netbsd



Module Name:	pkgsrc-wip
Committed By:	Maya Rashish <maya%NetBSD.org@localhost>
Pushed By:	coypu
Date:		Sat Nov 2 17:00:14 2019 +0200
Changeset:	110db68b65464efb5338df23d6ed7c7f949a4b1e

Modified Files:
	neko/distinfo
Added Files:
	neko/patches/patch-libs_std_sys.c

Log Message:
neko: avoid uselocale on netbsd

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=110db68b65464efb5338df23d6ed7c7f949a4b1e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 neko/distinfo                     |  1 +
 neko/patches/patch-libs_std_sys.c | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diffs:
diff --git a/neko/distinfo b/neko/distinfo
index ac0631c445..80b1515929 100644
--- a/neko/distinfo
+++ b/neko/distinfo
@@ -5,3 +5,4 @@ RMD160 (neko-2.2.0.tar.gz) = a91e97a7234e4d8d54156f38cb6192d61296d399
 SHA512 (neko-2.2.0.tar.gz) = 4bc89fddf4a5ae94e73843b06a3b6fe8de59d72922764276a5bd9d56daf6570525e842039bf704598b41e1de4a5fe08931adc4ca9730fe3333be0beb7a1ccaed
 Size (neko-2.2.0.tar.gz) = 510643 bytes
 SHA1 (patch-CMakeLists.txt) = 76c56efa8c8f5a2f6d04932085592c606dee03c5
+SHA1 (patch-libs_std_sys.c) = a4fd0296d8716ced3e62b041ffa3caf44278bd73
diff --git a/neko/patches/patch-libs_std_sys.c b/neko/patches/patch-libs_std_sys.c
new file mode 100644
index 0000000000..5867a819eb
--- /dev/null
+++ b/neko/patches/patch-libs_std_sys.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Workaround no uselocale on netbsd. (there's setlocale, though)
+
+--- libs/std/sys.c.orig	2017-12-19 06:38:08.000000000 +0000
++++ libs/std/sys.c
+@@ -133,7 +133,7 @@ static value sys_sleep( value f ) {
+ 	<doc>Set the locale for LC_TIME, returns true on success</doc>
+ **/
+ static value set_time_locale( value l ) {
+-#ifdef NEKO_POSIX
++#if defined(NEKO_POSIX) && !defined(__NetBSD__)
+ 	locale_t lc, old;
+ 	val_check(l,string);
+ 	lc = newlocale(LC_TIME_MASK,val_string(l),NULL);


Home | Main Index | Thread Index | Old Index