Skip to content

Commit adbee85

Browse files
committed
readme: document build error with devtool modify
1 parent 6ad4a7a commit adbee85

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,30 @@ Activate the buildtools in current shell:
247247
248248
When using buildtools on ubuntu 24.04, also apply the workaround described above updating uninative.
249249
250+
### After `devtool modify` some packages fail to build with obscure git errors
251+
252+
When package sources are in the devtool workspace, yocto uses externalsrc.bbclass which uses deprecated `git submodule--helper` command:
253+
254+
```
255+
...
256+
File "/usr/lib64/python3.6/subprocess.py", line 438, in run(input=None, timeout=None, check=True, *popenargs=(['git', 'submodule--helper', 'list'],), **kwargs={'stdout': -1, 'cwd': '/opt/workspace/YOCTO/imx8-kirkstone/build/workspace/sources/gpsd', 'env': {'HOME': '/home/josua-sr', 'LOGNAME': 'josua-sr', 'PATH': '/opt/workspace/YOCTO/imx8-kirkstone/sources/poky/scripts:/opt/workspace/YOCTO/imx8-kirkstone/sources/poky/bitbake/bin:/home/josua-sr/.local/bin:/home/josua-sr/.local/bin:/home/josua-sr/bin:/usr/local/bin:/usr/bin:/bin', 'PWD': '/opt/workspace/YOCTO/imx8-kirkstone/build', 'SHELL': '/usr/bin/zsh', 'USER': 'josua-sr', 'SSH_AUTH_SOCK': '/run/user/1001/gnupg/S.gpg-agent.ssh', 'BBPATH': '/opt/workspace/YOCTO/imx8-kirkstone/build', 'BB_ENV_PASSTHROUGH_ADDITIONS': 'ALL_PROXY BBPATH_EXTRA BB_LOGCONFIG BB_NO_NETWORK BB_NUMBER_THREADS BB_SETSCENE_ENFORCE BB_SRCREV_POLICY DISTRO FTPS_PROXY FTP_PROXY GIT_PROXY_COMMAND HTTPS_PROXY HTTP_PROXY MACHINE NO_PROXY PARALLEL_MAKE SCREENDIR SDKMACHINE SOCKS5_PASSWD SOCKS5_USER SSH_AGENT_PID SSH_AUTH_SOCK STAMPS_DIR TCLIBC TCMODE all_proxy ftp_proxy ftps_proxy http_proxy https_proxy no_proxy ', 'LC_ALL': 'en_US.UTF-8', 'GIT_INDEX_FILE': '/tmp/oe-devtool-indexs5pjg_rm'}}):
257+
raise CalledProcessError(retcode, process.args,
258+
> output=stdout, stderr=stderr)
259+
return CompletedProcess(process.args, retcode, stdout, stderr)
260+
bb.data_smart.ExpansionError: Failure expanding variable do_compile[file-checksums], expression was ${@srctree_hash_files(d)} which triggered exception CalledProcessError: Command '['git', 'submodule--helper', 'list']' returned non-zero exit status 129.
261+
The variable dependency chain for the failure is: do_compile[file-checksums]
262+
263+
ERROR: Parsing halted due to errors, see error messages above
264+
```
265+
266+
This can be resolved locally by cherry-picking the [upstream fix in poky](https://git.yoctoproject.org/poky/commit/?id=0533edac277080e1bd130c14df0cbac61ba01a0c):
267+
268+
```
269+
pushd sources/poky
270+
git cherry-pick 0533edac277080e1bd130c14df0cbac61ba01a0c
271+
popd
272+
```
273+
250274
## Maintainer Notes
251275
252276
### Patching Linux / U-Boot / ATF / RCW / DPL / DPC / etc.:

0 commit comments

Comments
 (0)