| Summary: | Failure when get_srcrev runs from fakeroot tasks | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Keegan Morrow <keegan.morrow> | ||||
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | Medium+ | CC: | peter.kjellerstedt, poky.bs.watcher, poky.watcher, ross.burton | ||||
| Version: | 2.4 | ||||||
| Target Milestone: | 2.5 M2 | ||||||
| Hardware: | x86 | ||||||
| OS: | x86_64 | ||||||
| Whiteboard: | Backport 2.2.4, 2.3.4, and 2.4.2? | ||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Keegan Morrow
2018-01-03 19:21:22 UTC
Patch queued to master-next. Happier now I understand how to reproduce this issue and what the approximate cause is. Nice to see this finally making it onto master. I had forgotten I even sent the patch, since we have been using a workaround (which basically does the same as the patch) in our distro.conf for all these years. Thanks for getting this in the queue Richard! Peter - any chance that you could share the distro.conf workaround? And of course thank you for coming up with the patch. Sure. This is what we have in our configuration:
# There is a problem with BitBake that uncder certain circumstances (involving
# ${SRCPV}) can cause git to be called when pseudo is active (from
# do_package_write_rpm). Since we use ssh to access our repositories, this will
# cause ssh to hang when it tries to access the real root's configuration files
# for ssh, which of course is not allowed...
FETCHCMD_git = "export PSEUDO_DISABLED=1; git -c core.fsyncobjectfiles=0"
Thanks very much! Fixed in bitbake ceaca281cafa662aa2385b95641bce309dce843d. |