All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Gary Thomas <gary@mlbassoc.com>
Cc: poky@yoctoproject.org
Subject: Re: How can a package I didn't ask for get included in my image?
Date: Tue, 06 Mar 2012 19:26:56 +0000	[thread overview]
Message-ID: <3919600.C6p42ZJ0so@helios> (raw)
In-Reply-To: <4F564BBE.6030404@mlbassoc.com>

On Tuesday 06 March 2012 10:39:10 Gary Thomas wrote:
> On 2012-03-06 10:05, Gary Thomas wrote:
> > I'm trying to figure out why a particular package is ending up
> > in my final image. If I build something like this:
> > % bitbake my-image
> > If I then look, I find packages that were installed that I'm
> > never mentioning:
> > % grep firmware tmp/work/my-board/my-image/temp/log.do_rootfs
> > Installing linux-firmware-wl12xx
> > (0.0+git1+09c949f6d3196a7199eb2c7015bfa5d34ed723b5-r0) to root... so I
> > tried to figure out how this is getting in
> > % bitbake my-image -g
> > % grep firmware *.dot
> > ... comes up empty
> > 
> > To be fair, I had originally built this image with this in <my-board>.conf
> > MACHINE_EXTRA_RRECOMMENDS = " kernel-modules linux-firmware-wl12xx "
> > but that has since been removed. Somehow, it's ghost lingers on...
> > 
> > How can this be?
> > How can I get rid of it, short of a complete rebuild?
> > 
> > Thanks for any insight into this mystery.
> 
> Found it myself - the variable MACHINE_EXTRA_RRECOMMENDS was referenced
> by my core task, something like this:
>    RRECOMMENDS_task-my-distro-boot = "\
>      ${MACHINE_EXTRA_RRECOMMENDS} \
>    "
> I hadn't rebuilt that task, so the reference remained.  I'm still not
> sure why it didn't end up in the .dot graphs though.

The dot graphs produced by bitbake -g will include what's projected by the 
recipes, not already built packages; thus why after your change it no longer 
appeared in the graphs. The answer is not to effectively make changes to the 
tasks without bumping the task recipe's PR (or alternatively enable 
BasicHash).

FYI you can enable buildhistory (without enabling BUILDHISTORY_COMMIT if you 
don't need that) and this will produce some dependency graphs directly from 
the packages used to construct the rootfs. These graphs are more focused and 
thus can be a bit more useful when you're trying to figure out how a package 
got into your image; however producing them is part of do_rootfs so you have 
to go through the entire process of building the image in order to get them.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2012-03-06 19:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-06 17:05 How can a package I didn't ask for get included in my image? Gary Thomas
2012-03-06 17:39 ` Gary Thomas
2012-03-06 19:26   ` Paul Eggleton [this message]
2012-03-06 20:15     ` Foinel
2012-03-06 21:50       ` Khem Raj
2012-03-06 22:38         ` Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3919600.C6p42ZJ0so@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=gary@mlbassoc.com \
    --cc=poky@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.