All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Cc: Denys Dmytriyenko <denys@ti.com>
Subject: Re: [PATCH] bc: use update-alternatives to make dc play nice with busybox
Date: Thu, 29 Mar 2012 10:50:10 +0100	[thread overview]
Message-ID: <1333014610.14983.4.camel@ted> (raw)
In-Reply-To: <20120328233549.GD32193@denix.org>

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





      reply	other threads:[~2012-03-29  9:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28  6:11 [PATCH] bc: use update-alternatives to make dc play nice with busybox Denys Dmytriyenko
2012-03-28  8:38 ` Richard Purdie
2012-03-28 23:35   ` Denys Dmytriyenko
2012-03-29  9:50     ` Richard Purdie [this message]

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=1333014610.14983.4.camel@ted \
    --to=rpurdie@rpsys.net \
    --cc=denys@ti.com \
    --cc=openembedded-core@lists.openembedded.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.