]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python3-cython: drop PE, PR from /usr/src/debug paths
authorMartin Jansa <martin.jansa@gmail.com>
Thu, 16 Nov 2023 22:48:35 +0000 (23:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Nov 2023 15:30:46 +0000 (15:30 +0000)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-devtools/python/python3-cython_0.29.36.bb

index 78be2b94edb18efeb7cbc47a7678ee862e1fd09b..07638d7ad789cf3cf5fb307ad013683990ea3a71 100644 (file)
@@ -20,17 +20,17 @@ do_install:append() {
 PACKAGESPLITFUNCS =+ "cython_fix_sources"
 
 cython_fix_sources () {
-       for f in ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/FlowControl.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/FusedNode.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/Scanning.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/Visitor.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Plex/Actions.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Plex/Scanners.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Runtime/refnanny.c \
-               ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Tempita/_tempita.c \
+       for f in ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FlowControl.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FusedNode.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Scanning.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Visitor.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Actions.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Scanners.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Runtime/refnanny.c \
+               ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Tempita/_tempita.c \
                ${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do
                if [ -e $f ]; then
-                       sed -i -e 's#${WORKDIR}/Cython-${PV}#/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}#g' $f
+                       sed -i -e 's#${WORKDIR}/Cython-${PV}#${TARGET_DBGSRC_DIR}#g' $f
                fi
        done
 }