[OE-core] in SRC_URI, is "name=" necessary for a single tarball?

Chris Larson clarson at kergoth.com
Thu Dec 13 16:16:51 UTC 2012


On Thu, Dec 13, 2012 at 8:40 AM, Robert P. J. Day <rpjday at crashcourse.ca>wrote:

> just noticed this in busybox_1.20.2.bb:
>
> SRC_URI = "
> http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
>            file://B921600.patch \
>            file://get_header_tar.patch \
>            ... snip ...
>
> SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c"
> SRC_URI[tarball.sha256sum] =
> "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882"
>
>   in the above, does "name=tarball" actually serve any purpose?  i was
> under the impression that if you had just the single tarball, you
> could:
>
> SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
>            file://debian-libjpeg7_7-1.diff \
>            file://fix_for_automake_1.12.1.patch"
>
> SRC_URI[md5sum] = "52654eb3b2e60c35731ea8fc87f1bd29"
> SRC_URI[sha256sum] =
> "00029b1473f0f0ea72fbca3230e8cb25797fbb27e58ae2e46bb8bf5a806fe0b3"
>
>   obviously in the case of busybox, it won't *hurt*, it just looks
> unnecessary.
>


That's correct, if there's only one downloaded file, there's no need to use
the name.
-- 
Christopher Larson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20121213/1d24bdd3/attachment-0002.html>


More information about the Openembedded-core mailing list