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

Phil Blundell pb at reciva.com
Fri Sep 12 20:10:46 UTC 2008


On Fri, 2008-09-12 at 12:21 -0700, Tom Rini wrote:
> On Fri, Sep 12, 2008 at 09:04:07PM +0200, Koen Kooi wrote:
> > Tom Rini wrote:
> >> [ This is all also available at
> >> http://bugs.openembedded.net/show_bug.cgi?id=4549 ]
> >>
> >> A number of xorg dev packages (both literally -dev and util-macros) are
> >> uninstallable on the target.  The problem is that by default (with ipk)
> >> any given -dev package will depend on the main package, for example
> >> xproto-dev depends on xproto.  But in these packages case, there is no
> >> main package (no xproto).  The following patch fixes the issue.
> >
> > No, it doesn't, your patch actually *breaks* the depends chaining, the  
> > real fix would be to do ALLOW_EMPTY_${PN} = "1" in the recipes.
> 
> Well, they did all suddenly actually install.  I'll rework the patch per
> your suggestion, make sure that works too and re-post.  Thanks.

Actually, I think your original patch was the right thing.  I can't
think of any benefit from having a pile of empty ??proto packages; they
obviously don't contain any files, and they won't have any meaningful
dependencies either, so it seems like they would just be a waste of
space.

Of course, even better would be to teach package.bbclass to spot this
situation and not output the spurious dependency in the first place.  I
don't think that should be terribly difficult to arrange, since it knows
by the time population is finished whether it is going to generate a
binary for ${PN} or not, and this gives plenty of time to adjust the
dependencies on ${PN}-dev.

p.





More information about the Openembedded-devel mailing list