[oe] [PATCH] libplayer: Use `${PN}` instead of `libplayer`.

Paul Menzel paulepanter at users.sourceforge.net
Fri Apr 2 19:41:48 UTC 2010


Am Freitag, den 02.04.2010, 11:21 -0700 schrieb Khem Raj:
> On Fri, Apr 2, 2010 at 8:41 AM, Paul Menzel
> <paulepanter at users.sourceforge.net> wrote:
> >
> > Signed-off-by: Paul Menzel <paulepanter at users.sourceforge.net>
> > ---
> >  recipes/libplayer/libplayer.inc |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/recipes/libplayer/libplayer.inc b/recipes/libplayer/libplayer.inc
> > index 823e4b5..ea74aee 100644
> > --- a/recipes/libplayer/libplayer.inc
> > +++ b/recipes/libplayer/libplayer.inc
> > @@ -6,7 +6,7 @@ DEPENDS = "virtual/libx11 libxcb mplayer gstreamer"
> >
> >  INC_PR = "r1"
> >
> > -SRC_URI = "http://libplayer.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
> > +SRC_URI = "http://${PN}.geexbox.org/releases/${P}.tar.bz2;name=${PN}"
> 
> is there any advantage of using PN here ?

I guess it is mostly taste.

But I see two small advantages in rare use cases.

1. If the recipe is taken as a template for another one, less
adaptations have to be made.
2. If they should rename the program you only have to change the recipe
name.

[…]


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20100402/cf8fcbda/attachment-0002.sig>


More information about the Openembedded-devel mailing list