Skip to contentSkip to conversation

hdf5: fix shasum, downloadfilename

PATCH In review Gyorgy Sarvari 2 participants 3 messages Feb 1 – Feb 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 hdf5: fix shasum, downloadfilename

From: Trevor Gamblin <[email protected]>

Fixes #1023

Upstream seems to have regenerated the archive, as the checksum no longer matches the one specified in the recipe:

|WARNING: hdf5-2.0.0-r0 do_fetch: Checksum failure encountered with download of https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/hdf5-2.0.0.tar.gz - will attempt other sources if available
|WARNING: hdf5-2.0.0-r0 do_fetch: Checksum mismatch for local file /buildcache/downloads/hdf5-2.0.0.tar.gz
|Cleaning and trying again.
|WARNING: hdf5-2.0.0-r0 do_fetch: Renaming /buildcache/downloads/hdf5-2.0.0.tar.gz to /buildcache/downloads/hdf5-2.0.0.tar.gz_bad-checksum_a7a8f43e76e825ea22234bc735d5b184e880d305e33e4c9bb93a3912421c9973
|ERROR: hdf5-2.0.0-r0 do_fetch: Checksum failure fetching https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/hdf5-2.0.0.tar.gz
|ERROR: hdf5-2.0.0-r0 do_fetch: Bitbake Fetcher Error: ChecksumError('Checksum mismatch!\nFile: \'/buildcache/downloads/hdf5-2.0.0.tar.gz\' has sha256 checksum \'a7a8f43e76e825ea22234bc735d5b184e880d305e33e4c9bb93a3912421c9973\' when \'6e45a4213cb11bb5860)
|ERROR: Logfile of failure stored in: /home/tgamblin/workspace/yocto/openembedded-core/build/tmp/work/x86-64-v3-poky-linux/hdf5/2.0.0/temp/log.do_fetch.2054297

However, the tarballs look identical. Update the hash and be explicit about downloadfilename to avoid any mirroring issues. A note has been left that this measure can be removed with a future upgrade.

(cherry picked from commit f0f02434c892769a307edc6728dd667f9c31a1d1)
---
 meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +4 -2
index 93fe352b99..350be8dc0e 100644
@@ -11,11 +11,13 @@ inherit cmake pkgconfig siteinfo qemu multilib_header multilib_script
 
 DEPENDS += "qemu-native zlib"
 
-SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BPN}-${PV}.tar.gz \
+# set downloadfilename to workaround mirroring test issues. When hdf5 is
+# upgraded beyond 2.0.0 this can likely be removed
+SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BPN}-${PV}.tar.gz;downloadfilename=${BPN}-${PV}-1.tar.gz \
            file://0002-Remove-suffix-shared-from-shared-library-name.patch \
            file://0001-cmake-remove-build-flags.patch \
            "
-SRC_URI[sha256sum] = "6e45a4213cb11bb5860e1b0a7645688ab55562cc2d55c6ff9bcb0984ed12b22b"
+SRC_URI[sha256sum] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
 
 FILES:${PN} += "${libdir}/libhdf5.settings ${datadir}/*"
 
#1 lore raw

PATCH 2/2 unicode-ucd: adjust to correct checksum values.

From: Tom Geelen <[email protected]>

The checksums are wrong and thus this fails to build.

(cherry picked from commit dc5132edf7c7464371122ea9af871406fa66635a)
---
 meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb +2 -2
index 890568d727..7a1b463c5d 100644
@@ -1,14 +1,14 @@
 SUMMARY = "Unicode Character Database"
 HOMEPAGE = "https://unicode.org/ucd/"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${UNPACKDIR}/ucd-license-v3.txt;md5=ea17640caddb659394df50e5db6efd69"
+LIC_FILES_CHKSUM = "file://${UNPACKDIR}/ucd-license-v3.txt;md5=3049f4ad14be1ebf8c80a93d9d32b2d6"
 
 SRC_URI = " \
     https://www.unicode.org/Public/zipped/${PV}/UCD.zip;name=ucd;subdir=ucd;downloadfilename=unicode-ucd-${PV}.zip \
     https://www.unicode.org/license.txt;downloadfilename=ucd-license-v3.txt;name=ucd-license \
 "
 SRC_URI[ucd.sha256sum] = "033a5276b5d7af8844589f8e3482f3977a8385e71d107d375055465178c23600"
-SRC_URI[ucd-license.sha256sum] = "abf84f74dea2812799e1dbef7f0581adf7db244881e4febb8684f441568da0ad"
+SRC_URI[ucd-license.sha256sum] = "e7a93b009565cfce55919a381437ac4db883e9da2126fa28b91d12732bc53d96"
 
 inherit allarch
 
#2 lore raw

Re: [oe] [meta-oe][whinlatter][PATCH 2/2] unicode-ucd: adjust to correct checksum values.

Quoted 18 lines · Gyorgy Sarvari via lists.openembedded.org

From: Tom Geelen <[email protected]>

The checksums are wrong and thus this fails to build.

(cherry picked from commit dc5132edf7c7464371122ea9af871406fa66635a)
---
 meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb +0 -0
index 890568d727..7a1b463c5d 100644

meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb line 4

Quoted 5 lines
meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb +1 -1
@@ -1,14 +1,14 @@
 SUMMARY = "Unicode Character Database"
 HOMEPAGE = "https://unicode.org/ucd/"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://${UNPACKDIR}/ucd-license-v3.txt;md5=ea17640caddb659394df50e5db6efd69"
+LIC_FILES_CHKSUM = "file://${UNPACKDIR}/ucd-license-v3.txt;md5=3049f4ad14be1ebf8c80a93d9d32b2d6"

Though the new checksum is correct, it gives a warning in case a previously downloaded file is already present:

| WARNING: unicode-ucd-14.0.0-r0 do_fetch: Checksum mismatch for local
file /local/mnt/workspace/open/downloads/ucd-license-v3.txt
| Cleaning and trying again.
| WARNING: unicode-ucd-14.0.0-r0 do_fetch: Renaming
/local/mnt/workspace/open/downloads/ucd-license-v3.txt to /local/mnt/workspace/open/downloads/ucd-license-v3.txt_bad-checksum_abf84f74dea2812799e1dbef7f0581adf7db244881e4febb8684f441568da0ad

Should the file be renamed as well?

Quoted 20 lines
meta-oe/recipes-support/unicode-ucd/unicode-ucd_14.0.0.bb +1 -2
 SRC_URI = " \
     https://www.unicode.org/Public/zipped/${PV}/UCD.zip;name=ucd;subdir=ucd;downloadfilename=unicode-ucd-${PV}.zip \
     https://www.unicode.org/license.txt;downloadfilename=ucd-license-v3.txt;name=ucd-license \
 "
 SRC_URI[ucd.sha256sum] = "033a5276b5d7af8844589f8e3482f3977a8385e71d107d375055465178c23600"
-SRC_URI[ucd-license.sha256sum] = "abf84f74dea2812799e1dbef7f0581adf7db244881e4febb8684f441568da0ad"
+SRC_URI[ucd-license.sha256sum] = "e7a93b009565cfce55919a381437ac4db883e9da2126fa28b91d12732bc53d96"
 
 inherit allarch
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#124039): https://lists.openembedded.org/g/openembedded-devel/message/124039
Mute This Topic: https://lists.openembedded.org/mt/117578158/3616702
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-