diff --git a/32572439984e5640c6af46fbe7c27400c30112ce.patch b/32572439984e5640c6af46fbe7c27400c30112ce.patch new file mode 100644 index 0000000..66ca195 --- /dev/null +++ b/32572439984e5640c6af46fbe7c27400c30112ce.patch @@ -0,0 +1,25 @@ +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.changes b/micropython.changes index 146363d..1189914 100644 --- a/micropython.changes +++ b/micropython.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 28 14:42:22 UTC 2023 - Dirk Müller + +- add 32572439984e5640c6af46fbe7c27400c30112ce.patch + ------------------------------------------------------------------- Tue Oct 11 15:17:23 UTC 2022 - Andreas Schwab diff --git a/micropython.spec b/micropython.spec index 2a4c1ad..1853b8f 100644 --- a/micropython.spec +++ b/micropython.spec @@ -1,7 +1,7 @@ # # spec file for package micropython # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,8 @@ 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