[OE-core] [PATCH] bc: use update-alternatives to make dc play nice with busybox

Richard Purdie rpurdie at rpsys.net
Thu Mar 29 09:50:10 UTC 2012


On Wed, 2012-03-28 at 19:35 -0400, Denys Dmytriyenko wrote:
> On Wed, Mar 28, 2012 at 09:38:04AM +0100, Richard Purdie wrote:
> > On Wed, 2012-03-28 at 02:11 -0400, Denys Dmytriyenko wrote:
> > > -inherit autotools
> > > +do_install_append () {
> > > +	mv ${D}${bindir}/dc ${D}${bindir}/dc.${PN}
> > > +}
> > > +
> > > +inherit autotools update-alternatives
> > > +
> > > +ALTERNATIVE_NAME = "dc"
> > > +ALTERNATIVE_LINK = "${bindir}/dc"
> > > +ALTERNATIVE_PATH = "${bindir}/dc.${PN}"
> > > +ALTERNATIVE_PRIORITY = "100"
> > 
> > 
> > I think you should just be able to do:
> > 
> > """
> > ALTERNATIVE_LINKS = "${bindir}/dc"
> > ALTERNATIVE_PRIORITY = "100"
> > 
> > inherit autotools update-alternatives
> > """

> Yes, quite right. I see plenty of other recipes do it the hard way though...


All the more reason to get some better examples out there! :)

Thanks for resending.

Cheers,

Richard






More information about the Openembedded-core mailing list