pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/micropython Remove illegal cpp abuse that fails t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e731b8fe1765
branches:  trunk
changeset: 373385:e731b8fe1765
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon Jan 01 00:47:42 2018 +0000

description:
Remove illegal cpp abuse that fails the clang build.

diffstat:

 lang/micropython/distinfo                  |   3 ++-
 lang/micropython/patches/patch-py_nlrx64.c |  19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)

diffs (40 lines):

diff -r be2783f7bd9d -r e731b8fe1765 lang/micropython/distinfo
--- a/lang/micropython/distinfo Sun Dec 31 21:55:18 2017 +0000
+++ b/lang/micropython/distinfo Mon Jan 01 00:47:42 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2017/11/30 14:41:30 hauke Exp $
+$NetBSD: distinfo,v 1.7 2018/01/01 00:47:42 dholland Exp $
 
 SHA1 (micropython-1.9.2/micropython-1.9.2.tar.xz) = c14b2e7ebaefe86e60f4b11cf738947cf8204fba
 RMD160 (micropython-1.9.2/micropython-1.9.2.tar.xz) = 9c22131546c3e49bfa28b5f71994b20ee819d094
@@ -7,6 +7,7 @@
 SHA1 (patch-lib_utils_printf.c) = 6c152cd10a5fb0091d1149a0a50b202df6a6e931
 SHA1 (patch-mpy-cross_mpconfigport.h) = 78cf0865c60bf8fbbecb318e4f0597662076459e
 SHA1 (patch-py_mkenv.mk) = ff844cd4bcb6f9a2a27e02a62a066b4b70899c88
+SHA1 (patch-py_nlrx64.c) = 3aa81065c6357e42ff6a659f7b198d95711c5b2f
 SHA1 (patch-unix_Makefile) = 459483caf54b9180f67bd07bbfa7fcf6088de1cc
 SHA1 (patch-unix_main.c) = 8c199a25aaf5bef34a86754b1e492554903dad5b
 SHA1 (patch-unix_mpconfigport.h) = 544c0217ffcc8755adbb8c63a4b325af9b7ff8a2
diff -r be2783f7bd9d -r e731b8fe1765 lang/micropython/patches/patch-py_nlrx64.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/micropython/patches/patch-py_nlrx64.c        Mon Jan 01 00:47:42 2018 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-py_nlrx64.c,v 1.1 2018/01/01 00:47:42 dholland Exp $
+
+Remove illegal cpp abuse that fails the clang build.
+
+--- py/nlrx64.c~       2017-08-23 01:50:10.000000000 +0000
++++ py/nlrx64.c
+@@ -34,7 +34,11 @@
+ // x86-64 callee-save registers are:
+ //  rbx, rbp, rsp, r12, r13, r14, r15
+ 
+-#define NLR_OS_WINDOWS (defined(_WIN32) || defined(__CYGWIN__))
++#if (defined(_WIN32) || defined(__CYGWIN__))
++#define NLR_OS_WINDOWS 1
++#else
++#define NLR_OS_WINDOWS 0
++#endif
+ 
+ __attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);
+ 



Home | Main Index | Thread Index | Old Index