android-tools: drop ${PE}, ${PR} from /usr/src/debug paths
PATCH 1/8 android-tools: drop ${PE}, ${PR} from /usr/src/debug paths
--- .../recipes-devtools/android-tools/android-tools_5.1.1.r37.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb +1 -1
@@ -92,7 +92,7 @@ do_compile() { # Setting both variables below causing our makefiles to not work with # implicit make rules - CFLAGS="-ffile-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" + CFLAGS="-ffile-prefix-map=${S}=${TARGET_DBGSRC_DIR}" unset CPPFLAGS export SRCDIR=${S}
Signature · 1 line
2.42.1
PATCH 2/8 minifi-cpp: drop ${PE}, ${PR} from /usr/src/debug paths
--- meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/minifi-cpp/minifi-cpp_0.7.0.bb +1 -1
@@ -66,7 +66,7 @@ EXTRA_OECMAKE += " \ -DGCC_RANLIB=${STAGING_BINDIR_TOOLCHAIN}/${RANLIB} \ -DDISABLE_PYTHON_SCRIPTING=ON \ -DFLEX_TARGET_ARG_COMPILE_FLAGS='--noline' \ - -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines --file-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}' \ + -DBISON_TARGET_ARG_COMPILE_FLAGS='--no-lines --file-prefix-map=${S}=${TARGET_DBGSRC_DIR}' \ -DOPENSSLDIR=${sysconfdir}/libressl \ "
Signature · 1 line
2.42.1
PATCH 3/8 xmlrcp-c: drop ${PE}, ${PR} from /usr/src/debug paths
In reply to Martin Jansa--- meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c_1.59.01.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-devtools/xmlrpc-c/xmlrpc-c_1.59.01.bb +1 -1
@@ -41,7 +41,7 @@ do_configure() { } do_install:append:class-target() { - sed -i 's,${WORKDIR},/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR},g' ${D}${bindir}/xmlrpc-c-config + sed -i 's,${WORKDIR},${TARGET_DBGSRC_DIR},g' ${D}${bindir}/xmlrpc-c-config } BBCLASSEXTEND = "native"
Signature · 1 line
2.42.1
PATCH 4/8 fluentbit: drop ${PE}, ${PR} from /usr/src/debug paths
In reply to Martin Jansa--- meta-oe/recipes-extended/fluentbit/fluentbit_1.9.7.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/fluentbit/fluentbit_1.9.7.bb +2 -2
@@ -45,7 +45,7 @@ DEPENDS:append:libc-musl = " fts " # flex hardcodes the input file in #line directives leading to TMPDIR contamination of debug sources. do_compile:append() { - find ${B} -name '*.c' -or -name '*.h' | xargs sed -i -e 's|${TMPDIR}|/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/|g' + find ${B} -name '*.c' -or -name '*.h' | xargs sed -i -e 's|${TMPDIR}|${TARGET_DBGSRC_DIR}/|g' } PACKAGECONFIG ?= "yaml"
@@ -88,5 +88,5 @@ inherit cmake systemd pkgconfig SYSTEMD_SERVICE:${PN} = "td-agent-bit.service" -EXTRA_OECMAKE += "-DCMAKE_DEBUG_SRCDIR=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/" +EXTRA_OECMAKE += "-DCMAKE_DEBUG_SRCDIR=${TARGET_DBGSRC_DIR}/" TARGET_CC_ARCH += " ${SELECTED_OPTIMIZATION}"
Signature · 1 line
2.42.1
PATCH 5/8 ntpsec, net-snmp: drop ${PE}, ${PR} from /usr/src/debug paths
In reply to Martin Jansa--- meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb | 2 +- meta-networking/recipes-support/ntpsec/ntpsec_1.2.2a.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.3.bb +1 -1
@@ -178,7 +178,7 @@ do_install_ptest() { } SYSROOT_PREPROCESS_FUNCS += "net_snmp_sysroot_preprocess" -SNMP_DBGDIR = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" +SNMP_DBGDIR = "${TARGET_DBGSRC_DIR}" net_snmp_sysroot_preprocess () { if [ -e ${D}${bindir}/net-snmp-config ]; then
meta-networking/recipes-support/ntpsec/ntpsec_1.2.2a.bb +1 -1
@@ -70,7 +70,7 @@ EXTRA_OEWAF_BUILD ?= "-v" NTP_USER_HOME ?= "/var/lib/ntp" -BISONFLAGS = "--file-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" +BISONFLAGS = "--file-prefix-map=${WORKDIR}=${TARGET_DBGSRC_DIR}" do_configure:prepend() { export BISONFLAGS="${BISONFLAGS}"
Signature · 1 line
2.42.1
PATCH 6/8 aom, x265: drop ${PE}, ${PR} from /usr/src/debug paths
In reply to Martin Jansa--- meta-multimedia/recipes-multimedia/aom/aom_3.7.0.bb | 2 +- meta-multimedia/recipes-multimedia/x265/x265_3.2.1.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-multimedia/recipes-multimedia/aom/aom_3.7.0.bb +1 -1
@@ -23,5 +23,5 @@ CFLAGS:append:libc-musl = " -D_GNU_SOURCE" EXTRA_OECMAKE:append:arm = " -DENABLE_NEON=OFF" do_generate_toolchain_file:append() { - echo "set(AOM_AS_FLAGS --debug-prefix-map ${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR})" >> ${WORKDIR}/toolchain.cmake + echo "set(AOM_AS_FLAGS --debug-prefix-map ${S}=${TARGET_DBGSRC_DIR})" >> ${WORKDIR}/toolchain.cmake }
meta-multimedia/recipes-multimedia/x265/x265_3.2.1.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI[sha256sum] = "fb9badcf92364fd3567f8b5aa0e5e952aeea7a39a2b864387cec31e3b5 inherit lib_package pkgconfig cmake do_generate_toolchain_file:append() { - echo "set(CMAKE_ASM_NASM_FLAGS --debug-prefix-map ${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR})" >> ${WORKDIR}/toolchain.cmake + echo "set(CMAKE_ASM_NASM_FLAGS --debug-prefix-map ${S}=${TARGET_DBGSRC_DIR})" >> ${WORKDIR}/toolchain.cmake } EXTRA_OECMAKE:append:x86 = " -DENABLE_ASSEMBLY=OFF"
Signature · 1 line
2.42.1
PATCH 7/8 python3-{h5py,pandas}: drop ${PE}, ${PR} from /usr/src/debug paths
In reply to Martin Jansa--- meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb | 2 +- meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-python/recipes-devtools/python/python3-h5py_3.10.0.bb +1 -1
@@ -24,7 +24,7 @@ DEPENDS = "python3-pkgconfig-native \ PACKAGESPLITFUNCS =+ "fix_cythonized_sources" fix_cythonized_sources() { - for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do + for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}${TARGET_DBGSRC_DIR}`; do if [ -e $f ]; then sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f fi
meta-python/recipes-devtools/python/python3-pandas_2.0.3.bb +1 -1
@@ -19,7 +19,7 @@ DEPENDS += " \ PACKAGESPLITFUNCS =+ "fix_cythonized_sources" fix_cythonized_sources() { - for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}`; do + for f in `grep -l -r -e '\/* Generated by Cython.*/$' ${PKGD}${TARGET_DBGSRC_DIR}`; do if [ -e $f ]; then sed -i -e 's#${RECIPE_SYSROOT_NATIVE}##g' $f fi
Signature · 1 line
2.42.1
PATCH 8/8 evince, gnome-calendar, tracker: drop ${PE}, ${PR} from /usr/src/debug paths
In reply to Martin Jansa--- meta-gnome/recipes-gnome/evince/evince_45.0.bb | 4 ++-- .../recipes-gnome/gnome-calendar/gnome-calendar_45.1.bb | 4 ++-- meta-gnome/recipes-gnome/tracker/tracker_3.6.0.bb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
meta-gnome/recipes-gnome/evince/evince_45.0.bb +2 -2
@@ -46,8 +46,8 @@ RRECOMMENDS:${PN} = "adwaita-icon-theme" PACKAGES =+ "${PN}-nautilus-extension" do_install:prepend() { - sed -i -e 's|${B}/../${PN}-${PV}|/usr/src/debug/${PN}/${PV}-${PR}|g' ${B}/libview/ev-view-type-builtins.c - sed -i -e 's|${B}/../${PN}-${PV}|/usr/src/debug/${PN}/${PV}-${PR}|g' ${B}/libdocument/ev-document-type-builtins.c + sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/libview/ev-view-type-builtins.c + sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/libdocument/ev-document-type-builtins.c } FILES:${PN} += "${datadir}/dbus-1 \
meta-gnome/recipes-gnome/gnome-calendar/gnome-calendar_45.1.bb +2 -2
@@ -25,8 +25,8 @@ REQUIRED_DISTRO_FEATURES = "x11 opengl" SRC_URI[archive.sha256sum] = "7fa8507543865aa7432bb5319830c87158b5447ca09cca45b607dc6796c71008" do_install:prepend() { - sed -i -e 's|${S}/src|/usr/src/debug/${PN}/${PV}-${PR}/src|g' ${B}/src/gcal-enum-types.h - sed -i -e 's|${S}/src|/usr/src/debug/${PN}/${PV}-${PR}/src|g' ${B}/src/gcal-enum-types.c + sed -i -e 's|${S}/src|${TARGET_DBGSRC_DIR}/src|g' ${B}/src/gcal-enum-types.h + sed -i -e 's|${S}/src|${TARGET_DBGSRC_DIR}/src|g' ${B}/src/gcal-enum-types.c } FILES:${PN} += " \
meta-gnome/recipes-gnome/tracker/tracker_3.6.0.bb +2 -2
@@ -44,8 +44,8 @@ EXTRA_OEMESON = " \ " do_install:prepend() { - sed -i -e 's|${B}/../${PN}-${PV}|/usr/src/debug/${PN}/${PV}-${PR}|g' ${B}/src/libtracker-sparql/tracker-sparql-enum-types.c - sed -i -e 's|${B}/../${PN}-${PV}|/usr/src/debug/${PN}/${PV}-${PR}|g' ${B}/src/libtracker-sparql/core/tracker-data-enum-types.c + sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/src/libtracker-sparql/tracker-sparql-enum-types.c + sed -i -e 's|${B}/../${PN}-${PV}|${TARGET_DBGSRC_DIR}|g' ${B}/src/libtracker-sparql/core/tracker-data-enum-types.c } GIR_MESON_ENABLE_FLAG = 'enabled'
Signature · 1 line
2.42.1
All these depend on TARGET_DBGSRC_DIR variable added in pending oe-core change:
https://lists.openembedded.org/g/openembedded-core/message/190815
Quoted 25 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- .../recipes-devtools/android-tools/android-tools_5.1.1.r37.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0android-tools_5.1.1.r37.bb b/meta-oe/recipes-devtools/android-tools/ android-tools_5.1.1.r37.bb
index 9278146702..1c66ea4997 100644meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb +0
-1@@ -92,7 +92,7 @@ do_compile() { # Setting both variables below causing our makefiles to not work with # implicit make rules -CFLAGS="-ffile-prefix-map=${S}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}"
+ CFLAGS="-ffile-prefix-map=${S}=${TARGET_DBGSRC_DIR}"unset CPPFLAGS export SRCDIR=${S}--
2.42.1
Khem Raj
AppliedQuoted 1 line · Martin Jansa
Applied, thanks!
[1/8] android-tools: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 3c20415c1a77336cfc23550ab89e424737fc0710
[2/8] minifi-cpp: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 54689e1468356e41d7ad5ae69fd588e4ca93ab73
[3/8] xmlrcp-c: drop ${PE}, ${PR} from /usr/src/debug paths
commit: dd0676e657e2f7dc84c8af7d97be01a2233f7496
[4/8] fluentbit: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 4f84234a272666e49579bc7468d67b257260c221
[5/8] ntpsec, net-snmp: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 2487442cfb7158183d868c1022d5183bc85aa166
[6/8] aom, x265: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 5d577748ca8b24e2408bda51a464ed3d7207cc6b
[7/8] python3-{h5py,pandas}: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 445b33e9b33ef56d517cb892b871b2272a4becf4
[8/8] evince, gnome-calendar, tracker: drop ${PE}, ${PR} from /usr/src/debug paths
commit: 09142fe47984bd7ae0e00697404131dcd18f712fBest regards,
Signature · 1 line
Khem Raj <[email protected]>