From da181ac2e5f10d67ec3e846e77f1241d0071e057 Mon Sep 17 00:00:00 2001 From: Rob Woolley Date: Tue, 4 Mar 2025 05:45:35 -0800 Subject: [PATCH] solid: Remove buildpaths in preprocessor annotations The QMake build system adds comments to the files to show where code is included from. We remove these references to the build machine to avoid QA warnings about unreproducible builds. Signed-off-by: Rob Woolley --- recipes-kde/kf5/tier1/solid/solid.bb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes-kde/kf5/tier1/solid/solid.bb b/recipes-kde/kf5/tier1/solid/solid.bb index 3201083d..48eea0a6 100644 --- a/recipes-kde/kf5/tier1/solid/solid.bb +++ b/recipes-kde/kf5/tier1/solid/solid.bb @@ -14,6 +14,14 @@ DEPENDS += "bison-native qtdeclarative" PV = "${KF5_VERSION}" SRC_URI[sha256sum] = "7057825d5de721858af9be698a7114cd45e33bee7c06006a8ec68c05bf141a7a" +do_install:prepend() { + # Remove references to buildmachine paths + sed -i -e "s:${S}:${prefix}:g" ${B}/src/solid/predicate_parser.h + sed -i -e "s:${S}:${prefix}:g" ${B}/src/solid/predicate_parser.c + sed -i -e "s:${B}:${prefix}:g" ${B}/src/solid/predicate_lexer.c +} + + FILES:${PN} += "${OE_QMAKE_PATH_QML}" RRECOMMENDS:${PN} += "udisks2"