summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorSana Kazi <sanakazi720@gmail.com>2025-03-14 14:57:55 +0530
committerSteve Sakoman <steve@sakoman.com>2025-03-19 07:25:56 -0700
commit8f74fa4073d4b2ba8e0d9559aa654f3cafcf373a (patch)
tree1efc9943390075590128452c2a25c2f97e7dd7b0 /meta/recipes-devtools/gcc
parent8f52a92dbb664155a1969ca443912c40b257cb8e (diff)
downloadpoky-8f74fa4073d4b2ba8e0d9559aa654f3cafcf373a.tar.gz
gcc-cross-canadian.inc: Fix buildpaths error for pthread.h
Replace the hardcoded path with /not/exist as used for other options[--with-sysroot] to ensure pthread.h does not contain hardocded references to TMPDIR: ERROR: gcc-cross-canadian-x86-64-13.3.0-r0 do_package_qa: QA Issue: File /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-pokysdk-linux/ usr/lib/x86_64-poky-linux/gcc/x86_64-poky-linux/13.3.0/include-fixed/ pthread.h in package gcc-cross-canadian-x86-64 contains reference to TMPDIR [buildpaths] (From OE-Core rev: d3c294ee0afe4d2eb46320945d41064ebfb5cbff) Signed-off-by: Sana Kazi <sanakazi720@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-canadian.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index adcaef2b0f..06f0cef864 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -118,6 +118,11 @@ do_install () {
118 # We don't care about the gcc-<version> copies 118 # We don't care about the gcc-<version> copies
119 rm -f ${D}${bindir}/*gcc-${BINV}* 119 rm -f ${D}${bindir}/*gcc-${BINV}*
120 120
121 # Remove buildpaths from pthread.h
122 sed -i -e "s|${RECIPE_SYSROOT_NATIVE}|/not/exist|g" \
123 -e "s|${RECIPE_SYSROOT}|/not/exist|g" \
124 ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include-fixed/pthread.h
125
121 # Cleanup empty directories which are not shipped 126 # Cleanup empty directories which are not shipped
122 # we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted 127 # we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted
123 # ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686 128 # ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686