[oe] [2011.03-maintenance][PATCH v2 1/2] gnutls: update SRC_URI

Apelete Seketeli apelete at seketeli.net
Thu Mar 14 09:43:58 UTC 2013


Le 13-Mar-13, Martin Jansa a écrit:
> On Sat, Mar 09, 2013 at 08:54:24PM +0100, Apelete Seketeli wrote:
> > Le 09-Mar-13, Khem Raj a écrit:
> > > 
> > > On Mar 9, 2013, at 4:38 AM, Apelete Seketeli <apelete at seketeli.net> wrote:
> > > 
> > > > -SRC_URI = "ftp://ftp.gnutls.org/pub/gnutls/gnutls-${PV}.tar.bz2;name=gnutls"
> > > > +SRC_URI = "ftp://ftp.gnutls.org/gcrypt/gnutls/v2.10/gnutls-${PV}.tar.bz2;name=gnutls"
> > > 
> > > can we use PV instead of 2.10 ? if not then move SRC_URI out of .inc into .bb
> > 
> > PV is actually 2.10.4 here, it can't be used instead of 2.10 it seems.
> > I'll move SRC_URI into .bb then.
> 
> In couple of recipes we're using:
> SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
> SRC_URI = "http://download.gnome.org/sources/${PN}/${SHRT_VER}/${PN}-${PV}.tar.gz"
> 
> This could be applied here too.

When I updated this SRC_URI I actually wondered if there was a way to
filter the version in a generic fashion, but couldn't come up with
any. This is it, thanks for the tip. I will fix SRC_URI in .inc then,
instead of moving it into .bb like I did.

Cheers.
-- 
        Apelete




More information about the Openembedded-devel mailing list