[packages/micropython] - fix building on x86 without sse2
baggins
baggins at pld-linux.org
Sat Dec 28 15:47:04 CET 2024
commit b4a2e11646deaa3a941efb4b74a0296458d1446d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Dec 28 16:07:00 2024 +0100
- fix building on x86 without sse2
micropython.spec | 2 ++
x86.patch | 11 +++++++++++
2 files changed, 13 insertions(+)
---
diff --git a/micropython.spec b/micropython.spec
index 648506b..0c7d49e 100644
--- a/micropython.spec
+++ b/micropython.spec
@@ -10,6 +10,7 @@ License: MIT
Group: Development/Languages/Python
Source0: http://micropython.org/resources/source/%{name}-%{version}.tar.xz
# Source0-md5: 1086e0af7127fc5021ca91f882c985f7
+Patch0: x86.patch
URL: http://micropython.org/
BuildRequires: libffi-devel
BuildRequires: mbedtls-devel
@@ -28,6 +29,7 @@ Implementation of Python 3 with very low memory footprint.
%prep
%setup -q
+%patch -P 0 -p1
%build
diff --git a/x86.patch b/x86.patch
new file mode 100644
index 0000000..358ddd6
--- /dev/null
+++ b/x86.patch
@@ -0,0 +1,11 @@
+--- micropython-1.24.1/py/mpconfig.h~ 2024-11-30 00:49:28.000000000 +0100
++++ micropython-1.24.1/py/mpconfig.h 2024-12-28 16:04:16.466664907 +0100
+@@ -843,7 +843,7 @@
+
+ // Whether to use the native _Float16 for 16-bit float support
+ #ifndef MICROPY_FLOAT_USE_NATIVE_FLT16
+-#ifdef __FLT16_MAX__
++#if defined(__FLT16_MAX__) && !defined(__i386__)
+ #define MICROPY_FLOAT_USE_NATIVE_FLT16 (1)
+ #else
+ #define MICROPY_FLOAT_USE_NATIVE_FLT16 (0)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/micropython.git/commitdiff/b4a2e11646deaa3a941efb4b74a0296458d1446d
More information about the pld-cvs-commit
mailing list