Source: emscripten Version: 7.0.1+dfsg+~1.41.6-1 Severity: normal Tags: patch User: [email protected] Usertags: randomness X-Debbugs-Cc: [email protected]
The em-config.1 manpage contains output in an arbitrary order, but apparently also does not support the --help argument used by the help2man tool that generates it: │ │ │ ├── ./usr/share/man/man1/em-config.1.gz │ │ │ │ ├── em-config.1 │ │ │ │ │┄ Ordering differences only │ │ │ │ │ @@ -1,19 +1,19 @@ │ │ │ │ │ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. │ │ │ │ │ .TH EM-CONFIG "1" "November 2026" "em-config 7.0.1+dfsg+~1.41.6" "User Commands" │ │ │ │ │ .SH NAME │ │ │ │ │ em-config \- helper tool to read emscripten configuration variables │ │ │ │ │ .SH DESCRIPTION │ │ │ │ │ Invalid config key: \fB\-\-help\fR │ │ │ │ │ .IP │ │ │ │ │ -CLOSURE_COMPILER │ │ │ │ │ -CLANG_ADD_VERSION │ │ │ │ │ -PORTS │ │ │ │ │ NODE_JS │ │ │ │ │ -BINARYEN_ROOT │ │ │ │ │ -FROZEN_CACHE │ │ │ │ │ -LLVM_ADD_VERSION │ │ │ │ │ -COMPILER_WRAPPER │ │ │ │ │ LLVM_ROOT │ │ │ │ │ +LLVM_ADD_VERSION │ │ │ │ │ CACHE │ │ │ │ │ +COMPILER_WRAPPER │ │ │ │ │ +FROZEN_CACHE │ │ │ │ │ +CLANG_ADD_VERSION │ │ │ │ │ +BINARYEN_ROOT │ │ │ │ │ +PORTS │ │ │ │ │ +CLOSURE_COMPILER │ │ │ │ │ .PP │ │ │ │ │ Valid keys: This has been observed on both reproduce.debian.net and tests.reproducible-builds.org: https://reproduce.debian.net/excuses.html?source_name=emscripten https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/emscripten.html The attached patches fix this by sorting the order of the output keys and adding support for the --help argument. live well, vagrant
From 776af7c5ac942ececbe29d68219ad55a88799e17 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Wed, 2 Dec 2026 11:54:42 -0800 Subject: [PATCH 1/2] em-config.py: Sort keys before printing. --- em-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/em-config.py b/em-config.py index 2b7e8c7aa..7fd167c03 100755 --- a/em-config.py +++ b/em-config.py @@ -29,7 +29,7 @@ def get_config_setting(key): if key not in config.CONFIG_KEYS: print(f'Invalid config key: {key}', file=sys.stderr) print('Valid keys:') - for k in config.CONFIG_KEYS: + for k in sorted(config.CONFIG_KEYS): print(f' {k}', file=sys.stderr) sys.exit(1) -- 2.47.3
From 72268b8bbb4c592c750b93ef9a73cc4eb6d78146 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Wed, 2 Dec 2026 11:38:46 -0800 Subject: [PATCH 2/2] em-config.py: Support --help argument. --- em-config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/em-config.py b/em-config.py index 7fd167c03..a4094e97b 100755 --- a/em-config.py +++ b/em-config.py @@ -42,6 +42,12 @@ def main(): sys.exit(1) key = sys.argv[1] + if key == '--help': + print('Usage: em-config VAR_NAME') + print('Valid keys:') + for k in sorted(config.CONFIG_KEYS): + print(f' {k}') + sys.exit(0) value = get_config_setting(key) print(value) return 0 -- 2.47.3
signature.asc
Description: PGP signature

