Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] micropython: update to 1.11
Date: Fri, 01 Nov 2019 04:01:52 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16018@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages micropython
https://github.com/void-linux/void-packages/pull/16018

micropython: update to 1.11


A patch file from https://github.com/void-linux/void-packages/pull/16018.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-micropython-16018.patch --]
[-- Type: text/x-diff, Size: 3759 bytes --]

From 36f3ca6d07570b87116582e035b4f070b517e5d0 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens04@gmail.com>
Date: Thu, 31 Oct 2019 21:49:46 -0500
Subject: [PATCH] micropython: update to 1.11

---
 srcpkgs/micropython/patches/i686.patch | 64 --------------------------
 srcpkgs/micropython/template           |  6 +--
 2 files changed, 3 insertions(+), 67 deletions(-)
 delete mode 100644 srcpkgs/micropython/patches/i686.patch

diff --git a/srcpkgs/micropython/patches/i686.patch b/srcpkgs/micropython/patches/i686.patch
deleted file mode 100644
index 666b570e01f..00000000000
--- a/srcpkgs/micropython/patches/i686.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-Source: https://github.com/micropython/micropython/commit/c97607db5ccc03afbccacf853f2cd06305c28251
-Upstream: Yes
-Reason: mpy-cross segfaults on i686
-
-commit c97607db5ccc03afbccacf853f2cd06305c28251
-Author: Damien George <damien.p.george@gmail.com>
-Date:   Tue May 15 11:17:28 2018 +1000
-
-    py/nlrx86: Use naked attribute on nlr_push for gcc 8.0 and higher.
-    
-    gcc 8.0 supports the naked attribute for x86 systems so it can now be used
-    here.  And in fact it is necessary to use this for nlr_push because gcc 8.0
-    no longer generates a prelude for this function (even without the naked
-    attribute).
-
-diff --git py/nlrx86.c py/nlrx86.c
-index 23882cc30..59b97d8ee 100644
---- py/nlrx86.c
-+++ py/nlrx86.c
-@@ -39,15 +39,29 @@ unsigned int nlr_push_tail(nlr_buf_t *nlr) asm("nlr_push_tail");
- __attribute__((used)) unsigned int nlr_push_tail(nlr_buf_t *nlr);
- #endif
- 
-+#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 8
-+// Since gcc 8.0 the naked attribute is supported
-+#define USE_NAKED (1)
-+#define UNDO_PRELUDE (0)
-+#elif defined(__ZEPHYR__) || defined(__ANDROID__)
-+// Zephyr and Android use a different calling convention by default
-+#define USE_NAKED (0)
-+#define UNDO_PRELUDE (0)
-+#else
-+#define USE_NAKED (0)
-+#define UNDO_PRELUDE (1)
-+#endif
-+
-+#if USE_NAKED
-+__attribute__((naked))
-+#endif
- unsigned int nlr_push(nlr_buf_t *nlr) {
-+    #if !USE_NAKED
-     (void)nlr;
-+    #endif
- 
-     __asm volatile (
--    // Check for Zephyr, which uses a different calling convention
--    // by default.
--    // TODE: Better support for various x86 calling conventions
--    // (unfortunately, __attribute__((naked)) is not supported on x86).
--    #if !(defined(__ZEPHYR__) || defined(__ANDROID__))
-+    #if UNDO_PRELUDE
-     "pop    %ebp                \n" // undo function's prelude
-     #endif
-     "mov    4(%esp), %edx       \n" // load nlr_buf
-@@ -61,7 +75,9 @@ unsigned int nlr_push(nlr_buf_t *nlr) {
-     "jmp    nlr_push_tail       \n" // do the rest in C
-     );
- 
-+    #if !USE_NAKED
-     return 0; // needed to silence compiler warning
-+    #endif
- }
- 
- NORETURN void nlr_jump(void *val) {
diff --git a/srcpkgs/micropython/template b/srcpkgs/micropython/template
index e6c8a13fe99..b507422ee63 100644
--- a/srcpkgs/micropython/template
+++ b/srcpkgs/micropython/template
@@ -1,16 +1,16 @@
 # Template file for 'micropython'
 pkgname=micropython
-version=1.9.4
+version=1.11
 revision=1
 build_wrksrc=ports/unix
-hostmakedepends="pkg-config python"
+hostmakedepends="pkg-config python3"
 makedepends="libffi-devel"
 short_desc="Implementation of Python 3.x for microcontrollers"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://micropython.org/"
 distfiles="https://github.com/micropython/micropython/releases/download/v${version}/micropython-${version}.tar.gz"
-checksum=0db042011bffcbd65362b67eb3cca87eaefa9f2a55b747fa75e922c706b8ce1a
+checksum=2edda4ffe283899af6d7b59dd0a0a59f8b845fe0f26017f1a180661338eca35f
 
 pre_configure() {
 	sed -i 's|-Werror||;/^COPT =/d' Makefile

             reply	other threads:[~2019-11-01  3:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-01  3:01 voidlinux-github [this message]
2019-11-01 17:41 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-16018@inbox.vuxu.org \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).