summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorentin Guillevic <corentin.guillevic@smile.fr>2025-10-10 17:29:35 +0200
committerKhem Raj <raj.khem@gmail.com>2025-10-10 19:24:38 -0700
commit3fd372d79b400569ed09c68735c25c87bd476135 (patch)
treeb00d46063b3cd127bc275e1a032c02318bf8b7cb
parentd47510d4175010802b361bcfc8e1ad55599d5590 (diff)
downloadmeta-openembedded-3fd372d79b400569ed09c68735c25c87bd476135.tar.gz
libblockdev: improve reproducibility
The --with-smart option behind the feature "smart" relies on the drivedb.h header, provided by smartmontools package (/usr/share/smartmontools/drivedb.h). However the dependencies (DEPENDS) miss this package. Furthermore, if the --with-drivedb option is not used, the configuration step will search for the file first on the host's rootfs. This may result in the wrong header being picked, or the --with-smart option being silently disabled due to incomplete dependencies (causing missing header). The header is now guaranteed to be present due to an added dependency in the "smart" feature, and its location is specified by the --with-drivedb option. Signed-off-by: Corentin Guillevic <corentin.guillevic@smile.fr> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-extended/libblockdev/libblockdev_3.2.1.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_3.2.1.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_3.2.1.bb
index 48e6971d1a..e4078d6862 100644
--- a/meta-oe/recipes-extended/libblockdev/libblockdev_3.2.1.bb
+++ b/meta-oe/recipes-extended/libblockdev/libblockdev_3.2.1.bb
@@ -35,7 +35,7 @@ PACKAGECONFIG[crypto] = "--with-crypto,--without-crypto,cryptsetup keyutils nss
35PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize" 35PACKAGECONFIG[mdraid] = "--with-mdraid,--without-mdraid,libbytesize"
36PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2" 36PACKAGECONFIG[mpath] = "--with-mpath,--without-mpath, multipath-tools, lvm2"
37PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper" 37PACKAGECONFIG[tools] = "--with-tools,--without-tools,libbytesize libdevmapper"
38PACKAGECONFIG[smart] = "--with-smart,--without-smart,libatasmart" 38PACKAGECONFIG[smart] = "--with-smart --with-drivedb=${RECIPE_SYSROOT}${datadir}/smartmontools,--without-smart,libatasmart smartmontools"
39PACKAGECONFIG[smartmontools] = "--with-smartmontools,--without-smartmontools,json-glib,smartmontools" 39PACKAGECONFIG[smartmontools] = "--with-smartmontools,--without-smartmontools,json-glib,smartmontools"
40 40
41export GIR_EXTRA_LIBS_PATH = "${B}/src/utils/.libs" 41export GIR_EXTRA_LIBS_PATH = "${B}/src/utils/.libs"