Skip to contentSkip to conversation

hdf5: add pkgconfig-native as DEPENDS explicitly

PATCH In review [email protected] 2 participants 3 messages Dec 1, 2025 – Dec 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hdf5: add pkgconfig-native as DEPENDS explicitly

From: Changqing Li <[email protected]>

Add pkgconfig-native as DEPENDS explicitly, this can avoid install conflict when enable multilib when pkgconfig is installed on host, and also improve build reproducibility

---
 meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta-oe/recipes-support/hdf5/hdf5_2.0.0.bb +5 -2
index 798ca1b83f..9f77028ce1 100644
@@ -7,9 +7,9 @@ SECTION = "libs"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=71a191398102f76050a4e56e78cb4891"
 
-inherit cmake siteinfo qemu multilib_header
+inherit cmake siteinfo qemu multilib_header multilib_script
 
-DEPENDS += "qemu-native zlib"
+DEPENDS += "qemu-native zlib pkgconfig-native"
 
 SRC_URI = "https://support.hdfgroup.org/releases/hdf5/v2_0/v2_0_0/downloads/${BPN}-${PV}.tar.gz \
            file://0002-Remove-suffix-shared-from-shared-library-name.patch \
@@ -48,8 +48,11 @@ do_configure:append() {
 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
Signature · 1 line
2.34.1
#1 lore raw
Quoted 6 lines · Changqing Li via lists.openembedded.org

From: Changqing Li <[email protected]>

Add pkgconfig-native as DEPENDS explicitly, this can avoid install conflict when enable multilib when pkgconfig is installed on host, and also improve build reproducibility

Convention is to inherit pkgconfig.

Ross

#2 lore raw
Quoted 10 lines · Ross Burton

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 5 lines · Changqing Li via lists.openembedded.org

From: Changqing Li<[email protected]>

Add pkgconfig-native as DEPENDS explicitly, this can avoid install conflict when enable multilib when pkgconfig is installed on host, and also improve build reproducibility

Convention is to inherit pkgconfig.

Thanks Ross,  I will resend the patch with subject "hdf5: inherit pkgconfig"

Changqing

Quoted 2 lines

Ross