Openembedded Devel Discussions
 help / color / mirror / Atom feed
* checksums for multiple sources
@ 2014-04-09  8:51 Trevor Woerner
  2014-04-09  8:59 ` Mats Kärrman
  2014-04-09  9:00 ` Javier Viguera
  0 siblings, 2 replies; 4+ messages in thread
From: Trevor Woerner @ 2014-04-09  8:51 UTC (permalink / raw)
  To: openembeded-devel, koen.kooi, Martin Jansa

Is there any way to specify for which source tarball a particular
checksum is referring?

meta-openembedded/meta-oe/recipes-extended/acpica/acpitests_20140114.bb
has 2 source tarballs (and a patch):

    SRC_URI =
    "https://acpica.org/sites/acpica/files/acpitests-unix-${PV}.tar.gz \
              
    https://acpica.org/sites/acpica/files/acpica-unix2-${PV}.tar.gz \
               file://0001-Fixup-aapits-build.patch \
        "

but only one set of checksums:

    SRC_URI[md5sum] = "c72b61e092d2b25726dfff6e455116c9"
    SRC_URI[sha256sum] =
    "368f69296edef5138fd33affa2d50bdcdd1dfd2f6919ba782f8ecf03971a3a2c"


My build fails because it tries to verify the one checksum against both
source tarballs, which fails:

    File: '/home/trevor/devel/Downloads/acpica-unix2-20140114.tar.gz'
    has md5 checksum fcd4b7304f1bfabc7d4b9cfdecc6b0c6 when
    c72b61e092d2b25726dfff6e455116c9 was expected

NOTE: this checksum is correct for the first tarball
(acpitests-unix-${PV}.tar.gz), but not the second
(acpica-unix2-${PV}.tar.gz).


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: checksums for multiple sources
  2014-04-09  8:51 checksums for multiple sources Trevor Woerner
@ 2014-04-09  8:59 ` Mats Kärrman
  2014-04-09  9:00 ` Javier Viguera
  1 sibling, 0 replies; 4+ messages in thread
From: Mats Kärrman @ 2014-04-09  8:59 UTC (permalink / raw)
  To: trevor.woerner@linaro.org,
	openembedded-devel@lists.openembedded.org, koen.kooi@linaro.org,
	Martin Jansa

Hi,

Just copy-pasted from a recipe of mine:

SRC_URI = "${KERNELORG_MIRROR}/linux/kernel/v3.x/linux-${PV}.tar.xz;name=kernel \
           ${KERNELORG_MIRROR}/linux/kernel/v3.x/patch-${PV}.${STABLEV}.xz;apply=yes;name=stablepatch \

           file://defconfig \
          "

SRC_URI[kernel.md5sum] = "cc6ee608854e0da4b64f6c1ff8b6398c"
SRC_URI[kernel.sha256sum] = "2e120ec7fde19fa51dc6b6cc11c81860a0775defcad5a5bf910ed9a50e845a02"
SRC_URI[stablepatch.md5sum] = "3c5fa1eaa0fb0c124d2a2fd074041da1"
SRC_URI[stablepatch.sha256sum] = "4354db5c8ae783ccc0c522835206a3480b99129e95a720272f6f057fae35f453"

I.e. use "name=xxx" and "xxxx.md5sum"

BR // Mats

________________________________________
From: openembedded-devel-bounces@lists.openembedded.org [openembedded-devel-bounces@lists.openembedded.org] on behalf of Trevor Woerner [trevor.woerner@linaro.org]
Sent: Wednesday, April 09, 2014 10:51 AM
To: openembeded-devel; koen.kooi@linaro.org; Martin Jansa
Subject: [oe] checksums for multiple sources

Is there any way to specify for which source tarball a particular
checksum is referring?

meta-openembedded/meta-oe/recipes-extended/acpica/acpitests_20140114.bb
has 2 source tarballs (and a patch):

    SRC_URI =
    "https://acpica.org/sites/acpica/files/acpitests-unix-${PV}.tar.gz \

    https://acpica.org/sites/acpica/files/acpica-unix2-${PV}.tar.gz \
               file://0001-Fixup-aapits-build.patch \
        "

but only one set of checksums:

    SRC_URI[md5sum] = "c72b61e092d2b25726dfff6e455116c9"
    SRC_URI[sha256sum] =
    "368f69296edef5138fd33affa2d50bdcdd1dfd2f6919ba782f8ecf03971a3a2c"


My build fails because it tries to verify the one checksum against both
source tarballs, which fails:

    File: '/home/trevor/devel/Downloads/acpica-unix2-20140114.tar.gz'
    has md5 checksum fcd4b7304f1bfabc7d4b9cfdecc6b0c6 when
    c72b61e092d2b25726dfff6e455116c9 was expected

NOTE: this checksum is correct for the first tarball
(acpitests-unix-${PV}.tar.gz), but not the second
(acpica-unix2-${PV}.tar.gz).
--
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: checksums for multiple sources
  2014-04-09  8:51 checksums for multiple sources Trevor Woerner
  2014-04-09  8:59 ` Mats Kärrman
@ 2014-04-09  9:00 ` Javier Viguera
  2014-04-09  9:11   ` Trevor Woerner
  1 sibling, 1 reply; 4+ messages in thread
From: Javier Viguera @ 2014-04-09  9:00 UTC (permalink / raw)
  To: openembedded-devel

Hi Trevor,

You can put names to the different tarballs and then set the checksums 
for each one of them with following syntax:

SRC_URI = " \
     http://...;name=tarball1 \
     http://...;name=tarball2 \
"

SRC_URI[tarball1.md5sum] = "..."
SRC_URI[tarball1.sha256sum] = "..."

SRC_URI[tarball2.md5sum] = "..."
SRC_URI[tarball2.sha256sum] = "..."

-
Javier Viguera
Software Engineer
Digi International® Spain S.A.U.



On 09/04/14 10:51, Trevor Woerner wrote:
> Is there any way to specify for which source tarball a particular
> checksum is referring?
>
> meta-openembedded/meta-oe/recipes-extended/acpica/acpitests_20140114.bb
> has 2 source tarballs (and a patch):
>
>      SRC_URI =
>      "https://acpica.org/sites/acpica/files/acpitests-unix-${PV}.tar.gz \
>
>      https://acpica.org/sites/acpica/files/acpica-unix2-${PV}.tar.gz \
>                 file://0001-Fixup-aapits-build.patch \
>          "
>
> but only one set of checksums:
>
>      SRC_URI[md5sum] = "c72b61e092d2b25726dfff6e455116c9"
>      SRC_URI[sha256sum] =
>      "368f69296edef5138fd33affa2d50bdcdd1dfd2f6919ba782f8ecf03971a3a2c"
>
>
> My build fails because it tries to verify the one checksum against both
> source tarballs, which fails:
>
>      File: '/home/trevor/devel/Downloads/acpica-unix2-20140114.tar.gz'
>      has md5 checksum fcd4b7304f1bfabc7d4b9cfdecc6b0c6 when
>      c72b61e092d2b25726dfff6e455116c9 was expected
>
> NOTE: this checksum is correct for the first tarball
> (acpitests-unix-${PV}.tar.gz), but not the second
> (acpica-unix2-${PV}.tar.gz).
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: checksums for multiple sources
  2014-04-09  9:00 ` Javier Viguera
@ 2014-04-09  9:11   ` Trevor Woerner
  0 siblings, 0 replies; 4+ messages in thread
From: Trevor Woerner @ 2014-04-09  9:11 UTC (permalink / raw)
  To: openembedded-devel

On 04/09/14 04:59, Mats Kärrman wrote:
On 04/09/14 05:00, Javier Viguera wrote:


Great! Thanks to both of you :-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-09  9:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-09  8:51 checksums for multiple sources Trevor Woerner
2014-04-09  8:59 ` Mats Kärrman
2014-04-09  9:00 ` Javier Viguera
2014-04-09  9:11   ` Trevor Woerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox