| Summary: | Install-conflict message could be a lot more useful | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Daniel Stone <daniel> |
| Component: | bitbake | Assignee: | Saul Wold <sgw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | Martin.Jansa, poky.bs.watcher, poky.watcher, sgw |
| Version: | unspecified | ||
| Target Milestone: | 1.4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Daniel Stone
2012-09-28 08:06:55 UTC
http://git.openembedded.org/openembedded-core/commit/?id=56268f6e4ed1fc11143173bb1717a8be78c728a5 This patch does not seem to work correctly: Python 2.7.3 >>> sstate_search_cmd = "grep -rl /OE/jansa-test/shr-core/tmp-eglibc/pkgdata/armv7a-vfp-neon-oe-linux-gnueabi/runtime-reverse/vim-common /OE/jansa-test/shr-core/tmp-eglibc/sstate-control --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'" >>> cmd_array = sstate_search_cmd.split(' ') >>> search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0] grep: |: No such file or directory grep: sed: No such file or directory So it never shows any match. (In reply to comment #1) > http://git.openembedded.org/openembedded-core/commit/ > ?id=56268f6e4ed1fc11143173bb1717a8be78c728a5 > > This patch does not seem to work correctly: > > Python 2.7.3 > > >>> sstate_search_cmd = "grep -rl /OE/jansa-test/shr-core/tmp-eglibc/pkgdata/armv7a-vfp-neon-oe-linux-gnueabi/runtime-reverse/vim-common /OE/jansa-test/shr-core/tmp-eglibc/sstate-control --exclude=master.list | sed -e 's:^.*/::' -e 's:\.populate-sysroot::'" > >>> cmd_array = sstate_search_cmd.split(' ') > >>> search_output = subprocess.Popen(cmd_array, stdout=subprocess.PIPE).communicate()[0] > grep: |: No such file or directory > grep: sed: No such file or directory > > So it never shows any match. Adding shell=True makes it work >>> search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] >>> print search_output manifest-armv7a-vfp-neon-gvim.package manifest-armv7a-vfp-neon-vim-tiny.package manifest-armv7a-vfp-neon-vim.package But still isn't 100% reliable, I guess it's caused by some other package being removed from sstate while grep is already running. >>> search_output = subprocess.Popen(sstate_search_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0] grep: /OE/jansa-test/shr-core/tmp-eglibc/sstate-control/manifest-armv7a-vfp-neon-systemtap.package: No such file or directory There's a patch on the list from Enrico also, but it addresses something a little different. http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/031850.html It's been pending for sometime, I will push RP on this patch I am testing with your suggestion (In reply to comment #3) > There's a patch on the list from Enrico also, but it addresses something a > little different. > > http://lists.linuxtogo.org/pipermail/openembedded-core/2012-November/031850. > html > > It's been pending for sometime, I will push RP on this patch > > I am testing with your suggestion I'll send patch tonight https://github.com/shr-distribution/oe-core/commit/70952dc6fb5cd2bb59d25cc246363ab46b9d5999 |