[oe] [Bug 4549] A number of xorg dev packages are uninstallable

Phil Blundell pb at reciva.com
Mon Sep 15 09:04:30 UTC 2008


On Sun, 2008-09-14 at 16:59 -0700, Tom Rini wrote:
> So, there's three ways to fix this:
> - Fix these recipes to have RDEPENDS_${PN}-dev = ""
> - Fix these recipes to build empty main packages.
> - Fix package.bbclass to do the 1st option, automatically (not put the
>   dependency in to start with).
> 
> How do we get going ahead with one of these?  I could take a stab at the
> 3rd option, with some hints.

For #3, I would start by looking at populate_packages().  This is where
the files get moved into the individual packages, and is the first point
at which you get to find out whether any given package is going to be
empty or not.  As luck would have it this method also contains some
existing code to bash RDEPENDS around, which you should be able to
extend and adapt for your own purposes.

I suggest an approach along the lines of:

- extend the loop that does the initial population to notice when it is
populating ${PN}, and set a flag according to whether it has any files
in it or not. 

- then, add something along the lines of:

if pn_was_empty and "${PN}" in rdepends:
	rdepends.remove("${PN}")

to the RDEPENDS-processing loop near the bottom of the function.

p.






More information about the Openembedded-devel mailing list