From: Krupal Ka Patel Date: Mon, 9 Mar 2026 05:31:15 +0000 (-0700) Subject: tcl8: fix tclConfig.sh after UNPACKDIR change X-Git-Tag: uninative-5.1~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afb1765ef3d936c82c66166e85d2aa0d4fcd15cd;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git tcl8: fix tclConfig.sh after UNPACKDIR change Adapt the sed command that edits TCL_SRC_DIR in tclConfig.sh This is needed so that tk in meta-oe is capable of reading the required header file Remove buildpath from TCL_BUILD_STUB_LIB_PATH in tclConfig.sh Signed-off-by: Krupal Ka Patel Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/tcltk8/tcl8_8.6.17.bb b/meta/recipes-devtools/tcltk8/tcl8_8.6.17.bb index 0a8d6ea1bf..968cd6778e 100644 --- a/meta/recipes-devtools/tcltk8/tcl8_8.6.17.bb +++ b/meta/recipes-devtools/tcltk8/tcl8_8.6.17.bb @@ -53,7 +53,7 @@ do_install() { ln -sf ./tclsh${VER} ${D}${bindir}/tclsh8 ln -sf tclsh8.6 ${D}${bindir}/tclsh${VER} sed -i "s;-L${B};-L${STAGING_LIBDIR};g" tclConfig.sh - sed -i "s;'${WORKDIR};'${STAGING_INCDIR};g" tclConfig.sh + sed -i "s;'${UNPACKDIR};'${STAGING_INCDIR};g" tclConfig.sh install -d ${D}${bindir_crossscripts} install -m 0755 tclConfig.sh ${D}${bindir_crossscripts} install -m 0755 tclConfig.sh ${D}${libdir} @@ -107,6 +107,7 @@ tcl_package_preprocess() { -e "s;-L${STAGING_LIBDIR};-L${libdir};g" \ -e "s;${STAGING_INCDIR};${includedir};g" \ -e "s;--sysroot=${RECIPE_SYSROOT};;g" \ + -e "s;${B};${libdir};g" ${PKGD}${libdir}/tclConfig.sh \ ${PKGD}${libdir}/tclConfig.sh rm -f ${PKGD}${bindir_crossscripts}/tclConfig.sh