| Summary: | Recipes fail to rebuild from sstate-cache | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Stoicescu Cornel <corneliux.stoicescu> | ||||
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | alexandrux.palalau, jessica.zhang, poky.bs.watcher, poky.watcher | ||||
| Version: | 1.6 | ||||||
| Target Milestone: | 1.6 M4 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Stoicescu Cornel
2014-01-30 13:11:48 UTC
Patch out for review which likely fixes libtool-cross eglibc-initial gcc-cross-initial. iptables make e2fsprogs-native dpkg-native oprofile remain as needing investigation It appears all the other packages listed are fixed by this patch too! Mark as in review. Fixed in master, http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=e4ef6bbc21949957d9009757fe24ffd57bcd83b9. We probably need to retest this now as this was a significant change. I ran the tests and indeed most packages have been fixed but one remains: dpkg-native. For the record, this is my test environment: Distro: Ubuntu 13.10 poky master:72576e2d04dc8b43ae0d7f31cddd74318f52103e Command used: 'oe-selftest _sstatetests_noauto' NOTE: the above command takes a lot of time, aprox. 1.5 days on my case on a i7 system, as it checks 2 scenarios and a lot of packages. I am admittedly testing this outside of the script since I don't have 1.5 days of build time to spare. Can you: a) confirm if this can be reproduced outside the script by cleansstate of dpkg-native then rebuilding b) Attach the error log of the failed build to this bug so we can see how it failed I've tried to reproduce locally and cannot. It may be there is a specific sequence that has to be used to reproduce it. I did notice one odd thing about dpkg-native, it has a RDEPENDS on the target xz (not the native one). I've sent out a patch for this, it may or may not be the issue, unsure. I'm wondering if xz is missing on your test machine yet its installed on the one I'm testing on. That would explain the different behaviour, at least potentially. The steps to reproduce this are: 1) set MACHINE = "qemux86" in local.conf 2) 'bitbake dpkg-native' 3) 'rm -R tmp' 4) 'bitbake -ccleansstate dpkg-native' 5) 'bitbake dpkg-native' See attached text output. Created attachment 1789 [details]
dpkg-nativegit do_configure error
Issue is still present on latest master: commit 5ab9d7e28f987fba8bab03bb7851c263f746c208 Author: Richard Purdie <richard.purdie@linuxfoundation.org> Date: Wed Feb 26 13:40:41 2014 +0000 security-flags: Avoid lttng-tools issue on arm (From OE-Core rev: 010d5b437413156c3f4dc90a14698231bb195c2e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Also I have xz-utils installed. Do you need further information? The log helps *massively*, its bzip2-native which is the problem, mainly due to it being in ASSUME_PROVIDED.
We probably need something like:
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index c0c897c..471151e 100644
--- a/meta/recipes-devtools/dpkg/dpkg.inc
+++ b/meta/recipes-devtools/dpkg/dpkg.inc
@@ -6,7 +6,7 @@ SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.xz \
file://ignore_extra_fields.patch"
DEPENDS = "zlib bzip2 perl ncurses"
-DEPENDS_class-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native perl-native"
+DEPENDS_class-native = "bzip2-replacement-native zlib-native virtual/update-alternatives-native gettext-native perl-native"
RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} xz"
RDEPENDS_${PN}_class-native = "xz-native"
Patch in review on the mailing list. I have the same behavior for glib-2.0-native. Master branch, Commit ID: 49aad7da07e187f206e963001844605731b01247 This was tested also outside the oe-selftest script. I've posted a patch for this. In future, please do include the logs of the failure. This bug shouldn't get reopened each time we have one of these kinds of failures either, they should move to new specific bugs in future. Fixes merged into master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=0d47ab74b115802c4b35c203abc7befcca2ebdba http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d777d4a276feecbbd79238d3f86c5e91c55bf7a9 Verified in poky master:8210928e847fda7dbc145a94372b0beaf653a4f9 |