From 4b2e478a902ec824204da70b52fdbde8342d26a0 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 17 Oct 2026 15:34:28 -0700 Subject: [PATCH] tcmu-runner: Make tcmalloc support a PACKAGECONFIG gperftools is incompatible with mips, riscv32 and riscv64, which made tcmu-runner unbuildable there. Make tcmalloc an optional PACKAGECONFIG, enabled by default, and disable it on those architectures. Signed-off-by: Khem Raj --- .../recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb b/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb index 3643f87cd3..3a61b92630 100644 --- a/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb +++ b/meta-filesystems/recipes-utils/tcmu-runner/tcmu-runner_1.6.2.bb @@ -15,16 +15,20 @@ SRC_URI = "git://github.com/open-iscsi/tcmu-runner.git;protocol=https;branch=mai inherit cmake pkgconfig systemd -DEPENDS = "gtk4 libnl gperftools glib-2.0-native" +DEPENDS = "gtk4 libnl glib-2.0-native" EXTRA_OECMAKE = "-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ -Dwith-rbd=false \ -Dwith-glfs=false \ " -PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" +PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} tcmalloc" +PACKAGECONFIG:remove:mipsarch = "tcmalloc" +PACKAGECONFIG:remove:riscv32 = "tcmalloc" +PACKAGECONFIG:remove:riscv64 = "tcmalloc" PACKAGECONFIG[systemd] = "-DSUPPORT_SYSTEMD=ON,," +PACKAGECONFIG[tcmalloc] = "-Dwith-tcmalloc=ON,-Dwith-tcmalloc=OFF,gperftools" SYSTEMD_SERVICE:${PN} = "tcmu-runner.service" SYSTEMD_AUTO_ENABLE = "enable"