[oe-commits] Koen Kooi : tcl 8.5.8: fix header location

git version control git at git.openembedded.org
Sun May 23 09:21:54 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 104b91c471125482eb83893425fb031557e892b4
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=104b91c471125482eb83893425fb031557e892b4

Author: Koen Kooi <koen at openembedded.org>
Date:   Sun May 23 09:54:11 2010 +0200

tcl 8.5.8: fix header location

* remember to do 'bitbake glibc' after building tcl so packaged-staging can restore its headers

---

 recipes/tcltk/tcl_8.5.8.bb |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/recipes/tcltk/tcl_8.5.8.bb b/recipes/tcltk/tcl_8.5.8.bb
index 220e858..447da5d 100644
--- a/recipes/tcltk/tcl_8.5.8.bb
+++ b/recipes/tcltk/tcl_8.5.8.bb
@@ -3,6 +3,8 @@ LICENSE = "tcl"
 SECTION = "devel/tcltk"
 HOMEPAGE = "http://tcl.sourceforge.net"
 
+PR = "r5"
+
 SRC_URI = "\
   ${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \
   file://confsearch.diff;patch=1;pnum=2 \
@@ -33,15 +35,19 @@ BINCONFIG_GLOB = "*Config.sh"
 do_install() {
 	autotools_do_install
 	# Stage a few extra headers to make tk happy
-	install -m 0644 ../generic/*.h ${D}${includedir}
-	install -m 0644 *.h ${D}${includedir}
+	install -d ${D}${includedir}/tcl-${PV}/generic
+	install -m 0644 ../generic/*.h ${D}${includedir}/tcl-${PV}/generic
+	install -m 0644 *.h ${D}${includedir}/tcl-${PV}/generic
+	install -d ${D}${includedir}/tcl-${PV}/unix
+	install -m 0644 *Unix*.h ${D}${includedir}/tcl-${PV}/unix/
+	rm -f ${D}${includedir}/regex.h
 	ln -sf tclsh8.5 ${D}${bindir}/tclsh
 }
 
 SYSROOT_PREPROCESS_FUNCS =+ "tcl_sysroot"
 
 tcl_sysroot() {
-	sed -i 's:/usr/include/tcl-private:${STAGING_INCDIR}:' tclConfig.sh
+	sed -i 's:/usr/include/tcl-private:${STAGING_INCDIR}/tcl-${PV}:' tclConfig.sh
 }
 
 PACKAGES =+ "${PN}-lib"





More information about the Openembedded-commits mailing list