In case "tests" PACKAGECONFIG is not included, do_configure fails
with the following error message:

 ../git/ndctl/meson.build:51:4: ERROR: Problem encountered: 
'-D=destructive=enabled' requires '-Dtest=enabled'

Since "destructive" option only enables an extra set of tests, it only
makes sense to use along with including the tests. In case tests
are not required, this option can be left on its default value (disabled).

Signed-off-by: Gyorgy Sarvari <[email protected]>
---
 meta-oe/recipes-core/ndctl/ndctl_v79.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-oe/recipes-core/ndctl/ndctl_v79.bb 
b/meta-oe/recipes-core/ndctl/ndctl_v79.bb
index 9a4bc49d1..90f6d13fd 100644
--- a/meta-oe/recipes-core/ndctl/ndctl_v79.bb
+++ b/meta-oe/recipes-core/ndctl/ndctl_v79.bb
@@ -20,11 +20,11 @@ DEPENDS = "kmod udev json-c keyutils iniparser 
libtraceevent libtracefs"
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMESON += "-Ddestructive=enabled 
-Diniparserdir=${STAGING_INCDIR}/iniparser"
+EXTRA_OEMESON += "-Diniparserdir=${STAGING_INCDIR}/iniparser"
 
 PACKAGECONFIG ??= "tests 
${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
 PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
-PACKAGECONFIG[tests] = "-Dtest=enabled, -Dtest=disabled,"
+PACKAGECONFIG[tests] = "-Dtest=enabled -Ddestructive=enabled, -Dtest=disabled,"
 PACKAGECONFIG[docs] = "-Ddocs=enabled -Dasciidoctor=enabled,-Ddocs=disabled 
-Dasciidoctor=disabled, asciidoc-native"
 
 SYSTEMD_PACKAGES = 
"${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
-- 
2.48.1

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

  • [oe] [meta-oe][PATCH 1/2] ndctl:... Gyorgy Sarvari via lists.openembedded.org

Reply via email to