| Summary: | Some valid image configurations can not be made into SDK configurations | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Mark Hatle <mark.hatle> |
| Component: | core | Assignee: | Paul Eggleton <bluelightning> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | bluelightning, meta.mr.watcher, meta.watcher |
| Version: | 1.5 | ||
| Target Milestone: | 1.5.1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Mark Hatle
2013-10-03 20:39:30 UTC
Workaround for this issue:
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 05de1ff..98aa98b 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -478,7 +478,7 @@ EOF
echo "Note: see `dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}"
translate_oe_to_smart ${sdk_mode} --attemptonly $package_attemptonly
echo "Attempting $pkgs_to_install" >> "`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}"
- smart --data-dir=${target_rootfs}/var/lib/smart install --attempt -y ${pkgs_to_install} >> "`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}" 2>&1
+ smart --data-dir=${target_rootfs}/var/lib/smart install --attempt -y ${pkgs_to_install} >> "`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}" 2>&1 || :
fi
}
This will workaround the problem by ignoring the --attempt install. However, this is not the proper fix because it means certain components may not end up in the image or SDK.
The underlying cause of this is related to bug 5057, although this bug is really about smart being capable of ignoring the conflict when it comes to installing the complementary packages. Fix merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e9c1191da4f84c9743b053e7030ab28b48f57c44 This wasn't a trivial fix so I'd rather not backport this to dora for the moment, unless it's desperately needed. Please re-open if that's the case. |