14
0
forked from pool/micropython

- Update to 1.20.0:

* https://github.com/micropython/micropython/releases/tag/v1.20.0
- Remove 32572439984e5640c6af46fbe7c27400c30112ce.patch, included.
- Disable warning, since it is treated as an error.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=19
This commit is contained in:
2023-04-28 07:11:48 +00:00
committed by Git OBS Bridge
parent 4e6d46e52c
commit b9af718955
5 changed files with 15 additions and 34 deletions

View File

@@ -1,25 +0,0 @@
From 32572439984e5640c6af46fbe7c27400c30112ce Mon Sep 17 00:00:00 2001
From: Damien George <damien@micropython.org>
Date: Tue, 7 Mar 2023 14:46:22 +1100
Subject: [PATCH] mpy-cross/main: Fix return type of mp_import_stat.
Fixes issue #10951.
Signed-off-by: Damien George <damien@micropython.org>
---
mpy-cross/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mpy-cross/main.c b/mpy-cross/main.c
index 13bb17b13dba..8a4dd5bcbed5 100644
--- a/mpy-cross/main.c
+++ b/mpy-cross/main.c
@@ -344,7 +344,7 @@ int main(int argc, char **argv) {
return main_(argc, argv);
}
-uint mp_import_stat(const char *path) {
+mp_import_stat_t mp_import_stat(const char *path) {
(void)path;
return MP_IMPORT_STAT_NO_EXIST;
}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:940e3815e8c425c6eaed3a2aa30d320220cc012a2654b6e086e1b6f0567df350
size 72269360

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:098ef8e40abdc62551b5460d0ffe9489074240c0cb5589ca3c3a425551beb9bf
size 76456372

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Apr 28 07:09:08 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.20.0:
* https://github.com/micropython/micropython/releases/tag/v1.20.0
- Remove 32572439984e5640c6af46fbe7c27400c30112ce.patch, included.
- Disable warning, since it is treated as an error.
-------------------------------------------------------------------
Tue Mar 28 14:42:22 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -17,15 +17,12 @@
Name: micropython
Version: 1.19.1
Version: 1.20.0
Release: 0
Summary: Implementation of Python 3 with very low memory footprint
License: MIT
Group: Development/Languages/Python
URL: https://micropython.org/
Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM: fix build with gcc 13
Patch1: https://github.com/micropython/micropython/commit/32572439984e5640c6af46fbe7c27400c30112ce.patch
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: python3
@@ -45,12 +42,13 @@ sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main
%define make_flags V=1 MICROPY_PY_BTREE=0 MICROPY_PY_USSL=0
%build
export CFLAGS="$CFLAGS -Wno-dangling-pointer"
%make_build -C mpy-cross
%make_build -C ports/unix micropython STRIP=true
%make_build -C ports/unix STRIP=true
%install
install -d %{buildroot}%{_bindir}
install -t %{buildroot}%{_bindir} ports/unix/micropython
install -t %{buildroot}%{_bindir} ports/unix/build-standard/micropython
%check
%ifnarch x86_64