Bug 8879 - opkg-utils is built when build lib32-image
Summary: opkg-utils is built when build lib32-image
Status: IN PROGRESS IMPLEMENTATION
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium major
Target Milestone: 6.99
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
: 8882 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-01-06 07:01 UTC by Robert Yang
Modified: 2026-01-15 15:20 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2016-01-06 07:01:33 UTC
For example:
bitbake lib32-core-image-minimal

Both lib32-opkg-utils and opkg-utils have been built, this is incorrect, only lib32-opkg-utils should be built.
Comment 1 Robert Yang 2016-01-06 07:10:17 UTC
And opkg-utils would cause python bash, bc, openssl and other pgks to be built, this makes the build very slow.
Comment 2 Richard Purdie 2016-01-07 16:10:22 UTC
*** Bug 8882 has been marked as a duplicate of this bug. ***
Comment 3 Richard Purdie 2017-02-09 13:28:52 UTC
The issue is that images need to contain run-postinsts which depends on initscripts which depends on update-alternatives which comes from opkg-utils.

opkg-utils depends on python since it contains python scripts and python has a large set of dependencies.

The only real way to solve this would be to separate out the build of update-alternatives from opkg-utils itself, much as we used to do from opkg:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=44b538eedab7c255051fa3375f9f2439cd2db3dd
[dropped by Marcin back in 2008].

Torn on whether this is worth while or we just accept that lib32 builds build a bit more...
Comment 4 Gregor Zatko 2020-06-02 12:19:12 UTC
I submitted a patch trying to solve the issue:
https://patchwork.openembedded.org/series/24442/#
However, I am afraid that I need a help with this one.

I tried to generate dependency graphs:
- update-alternatives has almost no deps at all
- update-alternatives without bash dependency still does have quite a big bunch of them, with e.g. python3-native included
- update-alternatives with bash dependency - I was not even able to display the graph by xdot... but a fast dep file check shows that e.g. python3 dependent tasks are still present there

Any suggestions welcome.
Comment 5 Randy MacLeod 2023-10-24 14:24:38 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 6 Randy MacLeod 2025-11-27 16:21:28 UTC
Robert, is this fixed?
Comment 7 Ross Burton 2025-11-27 16:23:46 UTC
My hunch is it is not.

I have this in a local branch that I never got around to finishing/testing:

https://git.yoctoproject.org/poky-contrib/commit/?h=ross/ua&id=ac03d59a0b6d30515159ab7f3dfe9f8c41474263

I can't recall if I didn't send it because it wasn't finished, or if it was just a bad time in the cycle to submit.