mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
f0f02434c8
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. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
62 lines
2.1 KiB
BlitzBasic
62 lines
2.1 KiB
BlitzBasic
SUMMARY = "Management suite for extremely large and complex data collections"
|
|
DESCRIPTION = "Unique technology suite that makes possible the management of \
|
|
extremely large and complex data collections"
|
|
HOMEPAGE = "https://www.hdfgroup.org/"
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "BSD-3-Clause"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=71a191398102f76050a4e56e78cb4891"
|
|
|
|
inherit cmake pkgconfig siteinfo qemu multilib_header multilib_script
|
|
|
|
DEPENDS += "qemu-native zlib"
|
|
|
|
# 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] = "f4c2edc5668fb846627182708dbe1e16c60c467e63177a75b0b9f12c19d7efed"
|
|
|
|
FILES:${PN} += "${libdir}/libhdf5.settings ${datadir}/*"
|
|
|
|
EXTRA_OECMAKE = " \
|
|
-DHDF5_INSTALL_CMAKE_DIR=${libdir}/cmake \
|
|
-DCMAKE_INSTALL_PREFIX='${prefix}' \
|
|
-DHDF5_INSTALL_LIB_DIR='${baselib}' \
|
|
"
|
|
EXTRA_OECMAKE:prepend:class-target = "-DCMAKE_CROSSCOMPILING_EMULATOR=${WORKDIR}/qemuwrapper "
|
|
|
|
gen_emu() {
|
|
# Write out a qemu wrapper that will be used by cmake
|
|
# so that it can run target helper binaries through that.
|
|
qemu_binary="${@qemu_wrapper_cmdline(d, d.getVar('STAGING_DIR_HOST'), [d.expand('${STAGING_DIR_HOST}${libdir}'),d.expand('${STAGING_DIR_HOST}${base_libdir}')])}"
|
|
cat > ${WORKDIR}/qemuwrapper << EOF
|
|
#!/bin/sh
|
|
$qemu_binary "\$@"
|
|
EOF
|
|
chmod +x ${WORKDIR}/qemuwrapper
|
|
}
|
|
gen_emu:class-native = ""
|
|
|
|
do_unpack[postfuncs] += "gen_emu"
|
|
|
|
do_configure:append() {
|
|
sed -i -e 's|${WORKDIR}||g' ${B}/src/libhdf5.settings
|
|
sed -i -e 's|${WORKDIR}||g' ${B}/src/H5build_settings.c
|
|
}
|
|
|
|
do_install:append() {
|
|
# Used for generating config files on target
|
|
oe_multilib_header H5pubconf.h
|
|
sed -i -e 's|${RECIPE_SYSROOT_NATIVE}||g' ${D}${bindir}/h5cc
|
|
}
|
|
|
|
MULTILIB_SCRIPTS += "${PN}:${bindir}/h5cc"
|
|
|
|
BBCLASSEXTEND = "native"
|
|
|
|
# h5fuse.sh script needs bash
|
|
RDEPENDS:${PN} += "bash"
|