run_python, run_python_compiler could readlink -f
维护者通常 1 天内回复
评估
调研方向
先从 tools/maint/run_python.sh 和 tools/maint/run_python_compiler.sh 开始,然后复现安装到 /usr/local/bin/emcc 的过程,使 wrapper 与其 Python 伴随文件分离。检查普通路径和 ccache 路径,并考虑所提议的路径解析方式将如何运行。完成的标准是,已安装的 emcc wrapper 能够定位并启动预期的 Python 文件。
由索引模型根据 Issue 内容生成。
描述
Please include the following in your bug report:
Version of emscripten/emsdk:
6.0.1
Failing command line in full:
When installing to /usr/local/bin/emcc the emcc file created by create_entry_point,
it will fail, because it tries to find $0.py, which resolves to
/usr/local/bin/emcc.py, which doesn't exist.
Replacing by readlink -f $0 would make distributors life a bit easier.
Thanks for considering.
--- a/tools/maint/run_python.sh
+++ b/tools/maint/run_python.sh
@@ -30,4 +30,4 @@
exit 1
fi
-exec "$_EM_PY" -E "$0.py" "$@"
+exec "$_EM_PY" -E "$(readlink -f $0).py" "$@"
--- a/tools/maint/run_python_compiler.sh
+++ b/tools/maint/run_python_compiler.sh
@@ -31,7 +31,7 @@
fi
if [ -z "$_EMCC_CCACHE" ]; then
- exec "$_EM_PY" -E "$0.py" "$@"
+ exec "$_EM_PY" -E "$(readlink -f $0).py" "$@"
else
unset _EMCC_CCACHE
exec ccache "$0" "$@"
- 主要语言
- C++
- 星标
- 27.8k
- 派生
- 3.6k
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 177
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
emscripten-core/emscripten 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
emscripten-core/emscripten#27994 · 2 条评论 ·
维护者通常 1 天内回复
-
LEGACY_GL_EMULATION: generated fixed-function fragment shaders use mediump — fp16 overflow where mediump is half precision可能已有人在做 @TheTomBritton 于 14 天前认领。 未关闭Desktop OpenGL emulation
难度 2/5 1-3 小时 新手友好度 78/100
emscripten-core/emscripten#27948 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
emscripten-core/emscripten#27906 · 1 条评论 ·
维护者通常 1 天内回复
-
emscripten_fetch_unpack_response_headers returns header values with leading and trailing whitespace未关闭
难度 2/5 1-3 小时 新手友好度 64/100
emscripten-core/emscripten#27114 · 4 条评论 ·
维护者通常 1 天内回复
-
cwrap with returnType "boolean" returns a number when all args are numeric可能已有人在做 @esgott 于 162 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
emscripten-core/emscripten#27021 · 2 条评论 ·
维护者通常 1 天内回复
查看 emscripten-core/emscripten 的全部 Issue
相似的 Issue
-
libc++ test-suite
难度 2/5 1-3 小时 新手友好度 85/100
llvm/llvm-project#239851 ·
维护者通常 1 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug :bug:
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Testing docs list the `no-backward-compatibility-check` test tag, which no longer exists可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭comp-documentation
难度 1/5 1 小时以内 新手友好度 84/100
ClickHouse/ClickHouse#129829 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
EchoTools/nevr-runtime#2263 ·
维护者通常 1 天内回复