| Summary: | PACKAGE_EXCLUDE doesn't work with opkg 0.5 | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] opkg | Reporter: | Samuli Piippo <samuli.piippo> |
| Component: | opkg | Assignee: | Samuli Piippo <samuli.piippo> |
| Status: | RESOLVED NOTABUG | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | alex.stewart, randy.macleod |
| Version: | 0.5 | ||
| Target Milestone: | next-patch | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Samuli Piippo
2022-02-11 15:09:43 UTC
Regression, can you work on this Alex? Alex, I may have botched the Product, Component, Milestone for this bug. The intent is that this should be fixed ASAP since M3 is early next week. @rmacleod, @spiippo I would guess that this bug is almost certainly hitting the behavior added in opkg commit 4517d1bc87e9bfc0877d565230a4aeb42c474ba9 [1]. Previously, packages given to opkg via the `--add-exclude` argument were not propagated to libsolv, meaning that you could end up with an invalid set of installed packages in cases where the 'excluded' package conflicts. So in the BB output capture, libsolv/opkg is saying "you have asked me to install packages, but some of them depend on `base-files-dev` - which you have said is supposed to be 'excluded' from the solution". My reading of the `PACKAGE_EXCLUDE` BB var [2] suggests that is a correct interpretation of the variable. So I believe that opkg's behavior has changed since 0.4.5, but I'm not convinced that opkg is incorrect here. Some arguments which would change my mind: (1) If none of the packages which are being 'installed' have a dependency on `base-files-dev`, then opkg shouldn't be complaining. Is that the case? (2) If my interpretation of the `PACKAGE_EXCLUDE` BB variable is incongruous with the rest of the community, and everyone else reads it as: "these are files which should be included in the package-solve, but not installed by opkg afterwards." (which could leave opkg in an invalid state; I don't like that.) Thoughts? --- [1] https://git.yoctoproject.org/opkg/commit/?id=4517d1bc87e9bfc0877d565230a4aeb42c474ba9 [2] https://docs.yoctoproject.org/current/ref-manual/variables.html?highlight=package_exclude#term-PACKAGE_EXCLUDE Thanks for the explaination Alex. I don't have time right now to develop an opinion.... Samuli? Looks like this is user error after all. When using the IMAGE_FEATURES globs, PACKAGE_EXCLUDE_COMPLEMENTARY should be used instead of PACKAGE_EXCLUDE. |