mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
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>
This commit is contained in:
@@ -118,6 +118,11 @@ do_install () {
|
|||||||
# We don't care about the gcc-<version> copies
|
# We don't care about the gcc-<version> copies
|
||||||
rm -f ${D}${bindir}/*gcc-${BINV}*
|
rm -f ${D}${bindir}/*gcc-${BINV}*
|
||||||
|
|
||||||
|
# Remove buildpaths from pthread.h
|
||||||
|
sed -i -e "s|${RECIPE_SYSROOT_NATIVE}|/not/exist|g" \
|
||||||
|
-e "s|${RECIPE_SYSROOT}|/not/exist|g" \
|
||||||
|
${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include-fixed/pthread.h
|
||||||
|
|
||||||
# Cleanup empty directories which are not shipped
|
# Cleanup empty directories which are not shipped
|
||||||
# we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted
|
# we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted
|
||||||
# ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686
|
# ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686
|
||||||
|
|||||||
Reference in New Issue
Block a user