<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8879</bug_id>
          
          <creation_ts>2016-01-06 07:01:33 +0000</creation_ts>
          <short_desc>opkg-utils is built when build lib32-image</short_desc>
          <delta_ts>2026-01-15 15:20:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS IMPLEMENTATION</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>gzatko</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57551</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-01-06 07:01:33 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57552</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2016-01-06 07:10:17 +0000</bug_when>
    <thetext>And opkg-utils would cause python bash, bc, openssl and other pgks to be built, this makes the build very slow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57637</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-01-07 16:10:22 +0000</bug_when>
    <thetext>*** Bug 8882 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70580</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-02-09 13:28:52 +0000</bug_when>
    <thetext>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...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87388</commentid>
    <comment_count>4</comment_count>
    <who name="Gregor Zatko">gzatko</who>
    <bug_when>2020-06-02 12:19:12 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96894</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:38 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103419</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-11-27 16:21:28 +0000</bug_when>
    <thetext>Robert, is this fixed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103420</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-11-27 16:23:46 +0000</bug_when>
    <thetext>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&amp;id=ac03d59a0b6d30515159ab7f3dfe9f8c41474263

I can&apos;t recall if I didn&apos;t send it because it wasn&apos;t finished, or if it was just a bad time in the cycle to submit.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>