<?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>661</bug_id>
          
          <creation_ts>2011-01-18 06:13:14 +0000</creation_ts>
          <short_desc>util-linux ends up in images due to problematic dependencies</short_desc>
          <delta_ts>2011-01-29 21:49:02 +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>0.9</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksandr Koltsoff">aleksandr.koltsoff</reporter>
          <assigned_to name="Qing He">qing.he</assigned_to>
          <cc>aleksandr.koltsoff</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11519</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksandr Koltsoff">aleksandr.koltsoff</who>
    <bug_when>2011-01-18 06:13:14 +0000</bug_when>
    <thetext>(Sorry for the vague summary, feel free to fix once root cause is identified, also the subcomponent might be also devtools, but since util-linux is in core, using that).

When building very small images, util-linux is still explicitly part of the image, growing its size considerably, especially since busybox could be used in place of many of the tools instead.

For example, a minimal image only containing e2fsck and busybox yields very interesting results.

The following recipe:
--
DESCRIPTION = &quot;fsck-image&quot;
LICENSE = &quot;MIT&quot;
IMAGE_INSTALL = &quot;busybox e2fsprogs-e2fsck&quot;
export IMAGE_BASENAME = &quot;fsck-image-small&quot;
IMAGE_LINGUAS = &quot;&quot;

inherit poky-image
--

The above yields an image which will contain busybox, but also a large number of util-linux programs, and also the fsck binaries will be included 4-5 times (depending on how you count, probably because of partially static linking).

Tracing the dependencies of util-linux/e2fsprogs is non-trivial, for example, blkid is taken from util-linux by the recipe of e2fsprogs (explicitly, via DEPENDS), when it probably shouldn&apos;t be renamed that way at all as util-linux-blkid would be the more logical way (however, I&apos;m by far not an expert in OE). Also, libuuid (from util-linux) is used as a build-time dependency for e2fsprogs, separating this into a separate package might make sense. As well as any other libs that util-linux currently carries.

--

So, ideally, the above recipe would produce an image with busybox, *libc and e2fsck. Now it contains a large number of additional binaries which end up taking quite a bit of space compared to the rest of the system.

A similar micro-recipe with just busybox in it works correctly (no extra cruft is included except for the modules dir for the kernel with the various maps).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11525</commentid>
    <comment_count>1</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2011-01-18 18:00:19 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; (Sorry for the vague summary, feel free to fix once root cause is identified,
&gt; also the subcomponent might be also devtools, but since util-linux is in core,
&gt; using that).
&gt; When building very small images, util-linux is still explicitly part of the
&gt; image, growing its size considerably, especially since busybox could be used in
&gt; place of many of the tools instead.
&gt; For example, a minimal image only containing e2fsck and busybox yields very
&gt; interesting results.
&gt; The following recipe:
&gt; --
&gt; DESCRIPTION = &quot;fsck-image&quot;
&gt; LICENSE = &quot;MIT&quot;
&gt; IMAGE_INSTALL = &quot;busybox e2fsprogs-e2fsck&quot;
&gt; export IMAGE_BASENAME = &quot;fsck-image-small&quot;
&gt; IMAGE_LINGUAS = &quot;&quot;
&gt; inherit poky-image
&gt; --
&gt; The above yields an image which will contain busybox, but also a large number
&gt; of util-linux programs, and also the fsck binaries will be included 4-5 times
&gt; (depending on how you count, probably because of partially static linking).
&gt; Tracing the dependencies of util-linux/e2fsprogs is non-trivial, for example,
&gt; blkid is taken from util-linux by the recipe of e2fsprogs (explicitly, via
&gt; DEPENDS), when it probably shouldn&apos;t be renamed that way at all as
&gt; util-linux-blkid would be the more logical way (however, I&apos;m by far not an
&gt; expert in OE). Also, libuuid (from util-linux) is used as a build-time
&gt; dependency for e2fsprogs, separating this into a separate package might make
&gt; sense. As well as any other libs that util-linux currently carries.
&gt; --
&gt; So, ideally, the above recipe would produce an image with busybox, *libc and
&gt; e2fsck. Now it contains a large number of additional binaries which end up
&gt; taking quite a bit of space compared to the rest of the system.
&gt; A similar micro-recipe with just busybox in it works correctly (no extra cruft
&gt; is included except for the modules dir for the kernel with the various maps).

Thanks for the reporting, and yes, at least libuuid and libblkid should be packaged separately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11591</commentid>
    <comment_count>2</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2011-01-29 21:49:02 +0000</bug_when>
    <thetext>fixed in commit 036e4a920fe1dd97c521eb44dcb50bf3df29e43b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>