背景
基于最新 manifest 的dockerfile构建来容器
“bingo”版本:0.5.317
mdb_interface/1.70.99@openUBMC.release/rc
问题现象
构建 mdb_interface 时提示:
Cannot found lua-format, please re-initialize your workspace.
初步分析
- 在
/usr/local/bin/
下有lua-format
ll /usr/local/bin/
total 119872
drwxr-xr-x 1 root root 4096 Apr 18 08:47 ./
drwxr-xr-x 1 root root 4096 Apr 18 06:49 ../
drwxr-xr-x 2 root root 4096 Apr 18 06:43 __pycache__/
-rwxr-xr-x 1 root root 47920 Apr 2 01:16 acxmlgenerator*
-rwxr-xr-x 1 root root 208 Apr 18 08:47 bingo*
-rwxr-xr-x 1 root root 151990 Apr 18 06:43 bottle.py*
-rwxr-xr-x 1 root root 4201 Apr 2 01:16 cms_sign_hpm.sh*
-rwxr-xr-x 1 root root 209 Apr 18 06:44 conan*
-rwxr-xr-x 1 root root 222 Apr 18 06:44 conan_build_info*
-rwxr-xr-x 1 root root 216 Apr 18 06:44 conan_server*
-rwxr-xr-x 1 root root 57976 Apr 2 01:16 converfile*
-rwxr-xr-x 1 root root 1982 Apr 2 01:15 convert_onboard_bma.sh*
-rwxr-xr-x 1 root root 2997 Apr 2 01:15 convert_onboard_sp.sh*
lrwxrwxrwx 1 root root 45 Apr 18 06:49 corepack -> ../lib/node_modules/corepack/dist/corepack.js*
-rwxr-xr-x 1 root root 5140608 Apr 2 01:16 crypto_tool*
-rwxr-xr-x 1 root root 212 Apr 18 06:44 distro*
-rwxr-xr-x 1 root root 73696 Apr 2 01:16 efuse_tool*
-rwxr-xr-x 1 root root 99184 Apr 2 01:16 efuse_tool_1712*
-rw-r--r-- 1 root root 1417 Apr 2 01:16 emmc_header.config
-rw-r--r-- 1 root root 1417 Apr 2 01:16 emmc_header_1712.config
-rw-r--r-- 1 root root 951 Apr 2 01:16 emmc_uboot_header.config
-rw-r--r-- 1 root root 951 Apr 2 01:16 emmc_uboot_header_1712.config
-rwxr-xr-x 1 root root 51632 Apr 2 01:16 filesizecheck*
-rwxr-xr-x 1 root root 5850104 Apr 18 06:35 flatc*
-rwxr-xr-x 1 root root 1167 Apr 2 01:16 get_img_parma_area.sh*
-rwxr-xr-x 1 root root 56984 Apr 2 01:16 gpp_header*
-rw-r--r-- 1 root root 1420 Apr 2 01:16 hpm_header.config
-rw-r--r-- 1 root root 1522 Apr 2 01:16 hpm_header_1712.config
-rwxr-xr-x 1 root root 5320352 Apr 2 01:16 hpm_signer*
-rwxr-xr-x 1 root root 5285360 Apr 2 01:16 hpm_verify*
-rwxr-xr-x 1 root root 65776 Apr 2 01:16 hpmimage*
-rwxr-xr-x 1 root root 213 Apr 18 06:44 jsonschema*
-rwxr-xr-x 1 root root 1905256 Apr 18 06:49 lua-format*
-rwxr-xr-x 1 root root 313 Apr 2 01:15 luajit2luac.sh*
-rwxr-xr-x 1 root root 36152 Apr 2 01:16 make_emmc_flash_bin*
-rwxr-xr-x 1 root root 5814 Apr 2 01:16 make_emmc_gpp.sh*
-rwxr-xr-x 1 root root 1323 Apr 2 01:16 make_linx_gpp.sh*
-rwxr-xr-x 1 root root 1329 Apr 2 01:16 make_uboot_img.sh*
-rwxr-xr-x 1 root root 213 Apr 18 06:44 mako-render*
-rwxr-xr-x 1 root root 219 Apr 18 06:44 meson*
-rwxr-xr-x 1 root root 1095 Apr 2 01:16 mkhpm.sh*
lrwxrwxrwx 1 root root 27 Apr 18 06:49 n -> ../lib/node_modules/n/bin/n*
-rwxr-xr-x 1 root root 98422312 Apr 18 06:49 node*
-rwxr-xr-x 1 root root 226 Apr 18 06:44 normalizer*
lrwxrwxrwx 1 root root 38 Apr 18 06:49 npm -> ../lib/node_modules/npm/bin/npm-cli.js*
lrwxrwxrwx 1 root root 38 Apr 18 06:49 npx -> ../lib/node_modules/npm/bin/npx-cli.js*
-rwxr-xr-x 1 root root 215 Apr 18 06:43 pygmentize*
-rwxr-xr-x 1 root root 238 Apr 18 06:44 pyi-archive_viewer*
-rwxr-xr-x 1 root root 233 Apr 18 06:44 pyi-bindepend*
-rwxr-xr-x 1 root root 236 Apr 18 06:44 pyi-grab_version*
-rwxr-xr-x 1 root root 232 Apr 18 06:44 pyi-makespec*
-rwxr-xr-x 1 root root 235 Apr 18 06:44 pyi-set_version*
-rwxr-xr-x 1 root root 249 Apr 18 06:44 pyinstaller*
-rwxr-xr-x 1 root root 207 Apr 18 06:43 tqdm*
- 在init.py文件中的
lua-format
的配置过程
初步尝试
将lua-format
拷贝到/usr/bin/
cp /usr/local/bin/lua-format /usr/bin/
经过测试,拷贝后就能够构建 mdb_interface 成功
总结
临时方案:将lua-format
从/usr/local/bin/
拷贝到/usr/bin/
问题原因?
1、 init.py
将lua-format
复制到了错误的地址?
2、mdb_interface/1.70.99
的版本使用了lua-format
固定地址?
3、bingo 版本问题?