Skip to content

Commit 41b47b5

Browse files
authored
Emscripten 3.1.73 (pyodide#5401)
1 parent 3520c92 commit 41b47b5

8 files changed

+23
-41
lines changed

Makefile.envs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export PYVERSION ?= 3.12.7
2-
export PYODIDE_EMSCRIPTEN_VERSION ?= 3.1.72
2+
export PYODIDE_EMSCRIPTEN_VERSION ?= 3.1.73
33
export PYODIDE_VERSION ?= 0.28.0.dev0
44
export PYODIDE_ABI_VERSION ?= 2025_0
55

emsdk/patches/0001-Add-back-fs.findObject-and-fs.readFile-in-loadLibDat.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From de71d75de3f99cf57bccbf821b458c054dd6bf4a Mon Sep 17 00:00:00 2001
1+
From 103f41ba386105f3b123e5201a039c1d508edb59 Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Fri, 2 Jun 2023 11:59:32 -0700
44
Subject: [PATCH 1/5] Add back fs.findObject and fs.readFile in loadLibData

emsdk/patches/0002-Add-useful-error-when-symbol-resolution-fails.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 030753bef38328b5b1a691d96823de60ff509182 Mon Sep 17 00:00:00 2001
1+
From 24a5f3ece314cf5bc1074e167f8b549d80a12718 Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Fri, 19 May 2023 12:19:00 -0700
44
Subject: [PATCH 2/5] Add useful error when symbol resolution fails

emsdk/patches/0003-Changes-for-JSPI.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From d4210b8a3a483bef0edce7cf6fed1c889e447e05 Mon Sep 17 00:00:00 2001
1+
From 3d483b35ff7ed6dbb8c438f08e5a3579725fe304 Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Thu, 22 Jun 2023 18:53:22 -0700
44
Subject: [PATCH 3/5] Changes for JSPI
@@ -11,10 +11,10 @@ Subject: [PATCH 3/5] Changes for JSPI
1111
4 files changed, 9 insertions(+), 3 deletions(-)
1212

1313
diff --git a/src/library.js b/src/library.js
14-
index 59f530db8..8c8121624 100644
14+
index c7f26d291..caca8ff7d 100644
1515
--- a/src/library.js
1616
+++ b/src/library.js
17-
@@ -494,7 +494,7 @@ addToLibrary({
17+
@@ -492,7 +492,7 @@ addToLibrary({
1818
#if EXCEPTION_STACK_TRACES
1919
throw new EmscriptenSjLj;
2020
#else

emsdk/patches/0004-Raise-when-no-argument-is-given.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From ef90544089aa65f89f3924ff8b212c767a084b02 Mon Sep 17 00:00:00 2001
1+
From 4a203cf07ee0fa0006f27b8bd1979412d2fc0099 Mon Sep 17 00:00:00 2001
22
From: ryanking13 <[email protected]>
33
Date: Sat, 20 Jan 2024 19:02:32 +0900
44
Subject: [PATCH 4/5] Raise when no argument is given
@@ -13,10 +13,10 @@ Upstream issue: https://github.com/emscripten-core/emscripten/issues/21116
1313
1 file changed, 3 insertions(+)
1414

1515
diff --git a/emcc.py b/emcc.py
16-
index 520ad4041..daa296864 100644
16+
index dfe088e7b..b2f0fe4cb 100644
1717
--- a/emcc.py
1818
+++ b/emcc.py
19-
@@ -660,6 +660,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P
19+
@@ -661,6 +661,9 @@ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P
2020
print(libname)
2121
return 0
2222

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,37 @@
1-
From 37539a89a25855f8c524f9d4f8ae6c27b49ed5a7 Mon Sep 17 00:00:00 2001
1+
From f917723823e81581edf8d6554edb054d28761fec Mon Sep 17 00:00:00 2001
22
From: Hood Chatham <[email protected]>
33
Date: Fri, 31 Jan 2025 11:42:59 +0100
44
Subject: [PATCH 5/5] sdl2_image wasm-sjlj variant
55

66
Upstream PR:
77
https://github.com/emscripten-core/emscripten/pull/23554
88
---
9-
tools/ports/sdl2_image.py | 15 ++++++++++-----
10-
1 file changed, 10 insertions(+), 5 deletions(-)
9+
tools/ports/sdl2_image.py | 5 +++++
10+
1 file changed, 5 insertions(+)
1111

1212
diff --git a/tools/ports/sdl2_image.py b/tools/ports/sdl2_image.py
13-
index c72ef576b..0d3b758bd 100644
13+
index 70fa1499a..ed5ad679b 100644
1414
--- a/tools/ports/sdl2_image.py
1515
+++ b/tools/ports/sdl2_image.py
16-
@@ -42,6 +42,8 @@ def get_lib_name(settings):
17-
libname = 'libSDL2_image'
18-
if formats != '':
19-
libname += '_' + formats
16+
@@ -46,6 +46,8 @@ def get_lib_name(settings):
17+
libname += '-' + formats
18+
if settings.PTHREADS:
19+
libname += '-mt'
2020
+ if settings.SUPPORT_LONGJMP == 'wasm':
2121
+ libname += '-wasm-sjlj'
2222
return libname + '.a'
2323

2424

25-
@@ -58,20 +60,23 @@ def get(ports, settings, shared):
26-
IMG_tif.c IMG_xcf.c IMG_xpm.c IMG_xv.c IMG_webp.c IMG_ImageIO.m
27-
IMG_avif.c IMG_jxl.c IMG_svg.c IMG_qoi.c'''.split()
25+
@@ -78,6 +80,9 @@ def get(ports, settings, shared):
26+
if settings.PTHREADS:
27+
flags += ['-pthread']
2828

29-
- defs = ['-O2', '-sUSE_SDL=2', '-Wno-format-security']
30-
+ flags = ['-O2', '-sUSE_SDL=2', '-Wno-format-security']
31-
32-
formats = get_formats(settings)
33-
34-
for fmt in formats:
35-
- defs.append('-DLOAD_' + fmt.upper())
36-
+ flags.append('-DLOAD_' + fmt.upper())
37-
38-
if 'png' in formats:
39-
- defs += ['-sUSE_LIBPNG']
40-
+ flags += ['-sUSE_LIBPNG']
41-
42-
if 'jpg' in formats:
43-
- defs += ['-sUSE_LIBJPEG']
44-
+ flags += ['-sUSE_LIBJPEG']
45-
46-
- ports.build_port(src_dir, final, 'sdl2_image', flags=defs, srcs=srcs)
4729
+ if settings.SUPPORT_LONGJMP == 'wasm':
4830
+ flags.append('-sSUPPORT_LONGJMP=wasm')
4931
+
50-
+ ports.build_port(src_dir, final, 'sdl2_image', flags=flags, srcs=srcs)
32+
ports.build_port(src_dir, final, 'sdl2_image', flags=flags, srcs=srcs)
5133

5234
return [shared.cache.get_lib(libname, create, what='port')]
53-
5435
--
5536
2.34.1
5637

packages/pygame-ce/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ build:
6868
${SIDE_MODULE_LDFLAGS} \
6969
-fPIC \
7070
-lSDL2 \
71-
-lSDL2_image_bmp-gif-jpg-png \
71+
-lSDL2_image-bmp-gif-jpg-png \
7272
-lSDL2_ttf \
7373
-lSDL2_mixer_mid-mod-mpg-ogg \
7474
-lSDL2_gfx \

src/js/struct_info_generated.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@
447447
"S_IRWXUGO": 511,
448448
"S_ISVTX": 512,
449449
"S_IWUGO": 146,
450+
"S_IWUSR": 128,
450451
"S_IXUGO": 73,
451452
"TCFLSH": 21515,
452453
"TCGETA": 21509,

0 commit comments

Comments
 (0)