From b9af718955213719a51623ac8e0c9040c3000ea44f3a02ab2e6353c21bf95c4f Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 28 Apr 2023 07:11:48 +0000 Subject: [PATCH] - 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 --- ...2439984e5640c6af46fbe7c27400c30112ce.patch | 25 ------------------- micropython-1.19.1.tar.xz | 3 --- micropython-1.20.0.tar.xz | 3 +++ micropython.changes | 8 ++++++ micropython.spec | 10 +++----- 5 files changed, 15 insertions(+), 34 deletions(-) delete mode 100644 32572439984e5640c6af46fbe7c27400c30112ce.patch delete mode 100644 micropython-1.19.1.tar.xz create mode 100644 micropython-1.20.0.tar.xz diff --git a/32572439984e5640c6af46fbe7c27400c30112ce.patch b/32572439984e5640c6af46fbe7c27400c30112ce.patch deleted file mode 100644 index 66ca195..0000000 --- a/32572439984e5640c6af46fbe7c27400c30112ce.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 32572439984e5640c6af46fbe7c27400c30112ce Mon Sep 17 00:00:00 2001 -From: Damien George -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 ---- - 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; - } diff --git a/micropython-1.19.1.tar.xz b/micropython-1.19.1.tar.xz deleted file mode 100644 index 5b8cfe7..0000000 --- a/micropython-1.19.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:940e3815e8c425c6eaed3a2aa30d320220cc012a2654b6e086e1b6f0567df350 -size 72269360 diff --git a/micropython-1.20.0.tar.xz b/micropython-1.20.0.tar.xz new file mode 100644 index 0000000..18203fd --- /dev/null +++ b/micropython-1.20.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:098ef8e40abdc62551b5460d0ffe9489074240c0cb5589ca3c3a425551beb9bf +size 76456372 diff --git a/micropython.changes b/micropython.changes index 1189914..42681cd 100644 --- a/micropython.changes +++ b/micropython.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Apr 28 07:09:08 UTC 2023 - Steve Kowalik + +- 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 diff --git a/micropython.spec b/micropython.spec index 1853b8f..e5b108a 100644 --- a/micropython.spec +++ b/micropython.spec @@ -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