Paths in DEBUG_PREFIX_MAP are not being removed from sysconfigdata
files correctly as they are split into line separated values. Update
the sed command so that it uses any matching patern from
DEBUG_PREFIX_MAP instead an exact match of the full variable.

Signed-off-by: Jorge Sanjuan Garcia <[email protected]>
---
 meta/recipes-devtools/python/python3_3.13.2.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3_3.13.2.bb 
b/meta/recipes-devtools/python/python3_3.13.2.bb
index 52fac76c00..656a73f501 100644
--- a/meta/recipes-devtools/python/python3_3.13.2.bb
+++ b/meta/recipes-devtools/python/python3_3.13.2.bb
@@ -291,10 +291,12 @@ SSTATE_HASHEQUIV_FILEMAP = " \
     "
 PACKAGE_PREPROCESS_FUNCS += "py_package_preprocess"
 
+DEBUG_PREFIX_MAP_REGEX = "${@'\\|'.join(d.getVar('DEBUG_PREFIX_MAP').split())}"
+
 py_package_preprocess () {
         # Remove references to buildmachine paths in target Makefile and 
_sysconfigdata
         sed -i -e 's:--sysroot=${STAGING_DIR_TARGET}::g' -e 
s:'--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \
-                -e 's|${DEBUG_PREFIX_MAP}||g' \
+                -e 's:${DEBUG_PREFIX_MAP_REGEX}::g' \
                 -e 's:${HOSTTOOLS_DIR}/::g' \
                 -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
                 -e 's:${RECIPE_SYSROOT}::g' \
-- 
2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#211707): 
https://lists.openembedded.org/g/openembedded-core/message/211707
Mute This Topic: https://lists.openembedded.org/mt/111268642/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] [PATCH] ... Sanjuán García , Jorge via lists . openembedded . org
    • Re: [OE-core]... Alexander Kanavin via lists.openembedded.org
      • Re: [OE-c... Sanjuán García , Jorge via lists . openembedded . org
        • Re: [... Alexander Kanavin via lists.openembedded.org
          • R... Sanjuán García , Jorge via lists . openembedded . org
            • ... Alexander Kanavin via lists.openembedded.org

Reply via email to