5 Commits

Author SHA256 Message Date
594aac1953 Accepting request 1313856 from devel:languages:python
- Version 1.26.1
  * esp32: update esp_tinyusb component to v1.7.6
  * tools: add an environment variable MICROPY_MAINTAINER_BUILD
  * esp32: add IDF Component Lockfiles to git repo
  * shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
  * shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
  * tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev

- Fix building on single core systems
  * Skip tests/thread/stress_schedule.py when single core system detected

OBS-URL: https://build.opensuse.org/request/show/1313856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=24
2025-10-28 13:46:15 +00:00
36fded7970 - Version 1.26.1
* esp32: update esp_tinyusb component to v1.7.6
  * tools: add an environment variable MICROPY_MAINTAINER_BUILD
  * esp32: add IDF Component Lockfiles to git repo
  * shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
  * shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
  * tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=59
2025-10-27 13:59:09 +00:00
a00206d42c - Fix building on single core systems
* Skip tests/thread/stress_schedule.py when single core system detected

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=58
2025-10-27 12:51:10 +00:00
3ca66751b3 Accepting request 1313040 from devel:languages:python
- Build with mbedtls-3.6.5 instead of bundled 3.6.2 to fix CVE-2025-59438

OBS-URL: https://build.opensuse.org/request/show/1313040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=23
2025-10-23 14:35:50 +00:00
c328f134d3 - Build with mbedtls-3.6.5 instead of bundled 3.6.2 to fix CVE-2025-59438
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=56
2025-10-22 12:22:55 +00:00
6 changed files with 38 additions and 6 deletions

BIN
mbedtls-3.6.5.tar.bz2 LFS Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44e52136c2685cabe33a4a74267d4aacddc7ebe89c9142558a8bc8a80f209c9c
size 16188668

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Mon Oct 27 13:58:27 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Version 1.26.1
* esp32: update esp_tinyusb component to v1.7.6
* tools: add an environment variable MICROPY_MAINTAINER_BUILD
* esp32: add IDF Component Lockfiles to git repo
* shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
* shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
* tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev
-------------------------------------------------------------------
Mon Oct 27 12:49:06 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Fix building on single core systems
* Skip tests/thread/stress_schedule.py when single core system detected
-------------------------------------------------------------------
Wed Oct 22 12:19:48 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Build with mbedtls-3.6.5 instead of bundled 3.6.2 to fix CVE-2025-59438
-------------------------------------------------------------------
Fri Aug 15 08:13:39 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -20,13 +20,14 @@
%{?sle15_python_module_pythons}
Name: micropython
Version: 1.26.0
Version: 1.26.1
Release: 0
Summary: Implementation of Python 3 with very low memory footprint
License: MIT
URL: https://micropython.org/
Source0: %{name}-%{version}.tar.xz
Source1: prepare.sh
Source2: https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-3.6.5/mbedtls-3.6.5.tar.bz2#/mbedtls-3.6.5.tar.bz2
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: python3
@@ -65,12 +66,15 @@ MicroPython tools like the mpy-cross compiler for compiling.py files to .mpy fil
Also mpy-tool for inspecting .mpy files.
%prep
%autosetup -p1
%autosetup -p1 -a2
sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main.c"
%define make_flags V=1 MICROPY_PY_BTREE=0 MICROPY_PY_USSL=0
rm -rf lib/mbedtls
mv mbedtls-3.6.5 lib/mbedtls
%build
# micropython
export CFLAGS="%optflags -Wno-dangling-pointer"
@@ -109,6 +113,8 @@ install -m755 -D -v tools/mpy-tool.py %{buildroot}%{_bindir}/mpy-tool
# https://github.com/micropython/micropython/pull/6024
rm -f tests/float/float_parse.py
rm -f tests/float/float_parse_doubleprec.py
# fails on single core systems
[ "$(grep core.id /proc/cpuinfo | wc -l)" == 1 ] && rm -f tests/thread/stress_schedule.py
%endif
export MICROPY_CPYTHON3=python%python_version
make -C ports/unix PYTHON=%{_bindir}/python%python_version V=1 test

View File

@@ -7,7 +7,7 @@ set -e
version=$(rpmspec --query micropython.spec | head -1 | cut -d- -f2)
rm -fv micropython-*.tar.xz
osc rm -fv micropython-*.tar.xz
wget "https://micropython.org/resources/source/micropython-${version}.tar.xz" -O "micropython-${version}.tar.xz"
tar xf "micropython-${version}.tar.xz"
pushd "micropython-${version}"
@@ -34,3 +34,4 @@ popd
popd
tar caf "micropython-${version}.tar.xz" "micropython-${version}"
rm -r "micropython-${version}"
osc add micropython-*.tar.xz