diff mbox series

tcl8: fix headers path

Message ID 20241119173943.1887974-1-yoann.congal@smile.fr
State Accepted, archived
Commit dd8461f27b4a55dbf79baa4a71dc08b127801181
Headers show
Series tcl8: fix headers path | expand

Commit Message

Yoann Congal Nov. 19, 2024, 5:39 p.m. UTC
From: Yoann Congal <yoann.congal@smile.fr>

During the tcl_8.x removal[0] and its reintegration as tcl8_x[1], BPN
has changed from tcl to tcl8. But, recipes that depends on tcl headers
search the tcl8.6.15 directory where the current recipe generate a
tcl88.6.15 ($BPN+$VERSION) directory.

Fix this by hardcoding the base part of the directory name to "tcl".

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
This bug was found while fixing the tk recipe from meta-oe. I've checked
that "expect" from OE-Core still build properly.
---
 meta/recipes-devtools/tcltk8/tcl8_8.6.15.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/tcltk8/tcl8_8.6.15.bb b/meta/recipes-devtools/tcltk8/tcl8_8.6.15.bb
index 3902b3fe76..9d1c724d64 100644
--- a/meta/recipes-devtools/tcltk8/tcl8_8.6.15.bb
+++ b/meta/recipes-devtools/tcltk8/tcl8_8.6.15.bb
@@ -57,8 +57,8 @@  do_install() {
 	install -m 0755 tclConfig.sh ${D}${bindir_crossscripts}
 	install -m 0755 tclConfig.sh ${D}${libdir}
 	for dir in compat generic unix; do
-		install -d ${D}${includedir}/${BPN}${VER}/$dir
-		install -m 0644 ${S}/$dir/*.h ${D}${includedir}/${BPN}${VER}/$dir/
+		install -d ${D}${includedir}/tcl${VER}/$dir
+		install -m 0644 ${S}/$dir/*.h ${D}${includedir}/tcl${VER}/$dir/
 	done
 }