Bug#1019126: emscripten: Emscripten provides obsolete argument to closure-compiler
Package: emscripten
Version: 3.1.6~dfsg-5
Severity: normal
It is well-known (or quickly becomes known) that if you pass --closure=1 to
emcc, you will run up against the issue that Debian's closure-compiler was
last updated in 2013. However, if you download your own copy of the jar you
can use JAVA_JARPATH to get it to work with Debian's wrapper script, and
that's where this bug starts.
The Debian patch "1004_acorn_ecmaVersion.patch" changes the --language-in
value from ECMASCRIPT_2020 to ECMASCRIPT_NEXT_IN. Unfortunately, the latter is
no longer valid: It was documented as such over a year ago in
https://github.com/google/closure-compiler/commit/6a8e50ea7847063689fd33417d0a7fe67276a623
, and actually removed 5 months ago in
https://github.com/google/closure-compiler/commit/ee4b9d512c323026b975bec9cf5dd2bb7f908a7e
The proper value to use here (if you insist on changing these values) would be
ECMASCRIPT_NEXT.
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (501, 'testing'), (100, 'stable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.9.0-5-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages emscripten depends on:
ii binaryen 108-1
ii clang-14 1:14.0.6-2
ii lld-14 1:14.0.6-2
ii llvm-14 1:14.0.6-2
ii node-acorn 8.8.0+ds+~cs24.17.6-2
ii nodejs 18.7.0+dfsg-1
ii python3 3.10.6-1
Versions of packages emscripten recommends:
ii libjs-d3 3.5.17-4
ii python3-numpy 1:1.21.5-1+b1
Versions of packages emscripten suggests:
pn adb <none>
ii automake 1:1.16.5-1.3
ii closure-compiler 20130227+dfsg1-10.1
pn cmake <none>
pn emscripten-doc <none>
ii make 4.3-4.1
pn python3-ply <none>
pn scons <none>
ii wabt 1.0.29-1
-- no debconf information
Reply to: