From 9b4ba9b9b0260bab94f662da1b76ddc5e45bb7a8 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Thu, 20 Oct 2011 09:00:07 -0700 Subject: tcl: upgrade from 8.5.9 to 8.5.10 Signed-off-by: Nitin A Kamble --- .../tcltk/tcl/fix_non_native_build_issue.patch | 16 ++---- .../tcltk/tcl/tcl-add-soname.patch | 26 ++++----- meta/recipes-devtools/tcltk/tcl_8.5.10.bb | 65 ++++++++++++++++++++++ meta/recipes-devtools/tcltk/tcl_8.5.9.bb | 65 ---------------------- 4 files changed, 82 insertions(+), 90 deletions(-) create mode 100644 meta/recipes-devtools/tcltk/tcl_8.5.10.bb delete mode 100644 meta/recipes-devtools/tcltk/tcl_8.5.9.bb diff --git a/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch b/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch index e9b679361..9c2d37961 100644 --- a/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch +++ b/meta/recipes-devtools/tcltk/tcl/fix_non_native_build_issue.patch @@ -4,7 +4,7 @@ Index: unix/Makefile.in =================================================================== --- unix.orig/Makefile.in +++ unix/Makefile.in -@@ -619,20 +619,20 @@ ro-test: tcltest@EXEEXT@ +@@ -619,13 +619,13 @@ ro-test: tcltest@EXEEXT@ shell: ${TCL_EXE} @LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIBRARY_PATH_VAR@; \ TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ @@ -19,16 +19,8 @@ Index: unix/Makefile.in + $(GDB) ${TCL_EXE} --command=gdb.run rm gdb.run - # This target can be used to run tclsh inside ddd - ddd: ${TCL_EXE} - @echo "set env @LD_LIBRARY_PATH_VAR@=\"`pwd`:$${@LD_LIBRARY_PATH_VAR@}\"" > gdb.run - @echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run -- $(DDD) -command=gdb.run ./${TCL_EXE} -+ $(DDD) -command=gdb.run ${TCL_EXE} - rm gdb.run - VALGRINDARGS=--tool=memcheck --num-callers=8 --leak-resolution=high --leak-check=yes --show-reachable=yes -v -@@ -645,7 +645,7 @@ valgrind: ${TCL_EXE} tcltest@EXEEXT@ +@@ -638,7 +638,7 @@ valgrind: ${TCL_EXE} tcltest@EXEEXT@ valgrindshell: ${TCL_EXE} @LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIBRARY_PATH_VAR@; \ TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ @@ -37,7 +29,7 @@ Index: unix/Makefile.in # The following target outputs the name of the top-level source directory for # Tcl (it is used by Tk's configure script, for example). The .NO_PARALLEL -@@ -809,14 +809,14 @@ install-tzdata: ${TCL_EXE} +@@ -802,14 +802,14 @@ install-tzdata: ${TCL_EXE} @echo "Installing time zone data" @@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIBRARY_PATH_VAR@; \ TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ @@ -54,7 +46,7 @@ Index: unix/Makefile.in $(TOP_DIR)/library/msgs "$(SCRIPT_INSTALL_DIR)"/msgs install-doc: doc -@@ -1756,7 +1756,7 @@ html-tk: ${TCL_EXE} +@@ -1730,7 +1730,7 @@ html-tk: ${TCL_EXE} BUILD_HTML = \ @@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export @LD_LIBRARY_PATH_VAR@; \ TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \ diff --git a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch index 963576da9..93ef1868c 100644 --- a/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch +++ b/meta/recipes-devtools/tcltk/tcl/tcl-add-soname.patch @@ -4,9 +4,9 @@ Index: unix/configure =================================================================== --- unix.orig/configure +++ unix/configure -@@ -6726,6 +6726,7 @@ fi - # symbols when dynamically loaded into tclsh. - SHLIB_LD_LIBS='${LIBS}' +@@ -6757,6 +6757,7 @@ fi + LIBS="$LIBS -lc" + SHLIB_CFLAGS="" SHLIB_SUFFIX=".so" + SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.so.0' @@ -16,15 +16,7 @@ Index: unix/tcl.m4 =================================================================== --- unix.orig/tcl.m4 +++ unix/tcl.m4 -@@ -1424,6 +1424,7 @@ dnl AC_CHECK_TOOL(AR, ar) - SHLIB_CFLAGS="-fPIC" - SHLIB_LD_LIBS='${LIBS}' - SHLIB_SUFFIX=".so" -+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.0' - - CFLAGS_OPTIMIZE="-O2" - # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings -@@ -1431,12 +1432,15 @@ dnl AC_CHECK_TOOL(AR, ar) +@@ -1399,12 +1399,15 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ # get rid of the warnings. #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" @@ -41,7 +33,15 @@ Index: unix/tcl.m4 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} AS_IF([test "`uname -m`" = "alpha"], [CFLAGS="$CFLAGS -mieee"]) AS_IF([test $do64bit = yes], [ -@@ -2079,7 +2083,7 @@ dnl # preprocessing tests use only CPPFL +@@ -1430,6 +1433,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ + GNU*) + SHLIB_CFLAGS="-fPIC" + SHLIB_SUFFIX=".so" ++ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.0' + + SHLIB_LD='${CC} -shared' + DL_OBJS="" +@@ -2081,7 +2085,7 @@ dnl # preprocessing tests use only CPPFL AS_IF([test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != ""], [ LIB_SUFFIX=${SHARED_LIB_SUFFIX} diff --git a/meta/recipes-devtools/tcltk/tcl_8.5.10.bb b/meta/recipes-devtools/tcltk/tcl_8.5.10.bb new file mode 100644 index 000000000..a9d80af9e --- /dev/null +++ b/meta/recipes-devtools/tcltk/tcl_8.5.10.bb @@ -0,0 +1,65 @@ +DESCRIPTION = "Tool Command Language" +LICENSE = "tcl" +SECTION = "devel/tcltk" +HOMEPAGE = "http://tcl.sourceforge.net" +DEPENDS = "tcl-native" +LIC_FILES_CHKSUM = "file://../license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ + file://../compat/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ + file://../library/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ + file://../macosx/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ + file://../tests/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ + file://../win/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ + " + +PR = "r0" + +BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ + file://tcl-add-soname.patch" + +SRC_URI = "${BASE_SRC_URI} \ + file://fix_non_native_build_issue.patch " + +SRC_URI[md5sum] = "a08eaf8467c0631937067c1948dd326b" +SRC_URI[sha256sum] = "f582063edd5419a39ee8f7b5c8f95d557b5daad13efb0ed2f0967ca185613bb7" + +SRC_URI_virtclass-native = "${BASE_SRC_URI}" + +S = "${WORKDIR}/tcl${PV}/unix" + +inherit autotools + +DEPENDS_virtclass-native = "" + +EXTRA_OECONF = "--enable-threads" + +do_configure() { + gnu-configize + oe_runconf +} + +do_compile_prepend() { + echo > ../compat/fixstrtod.c +} + +do_install() { + autotools_do_install + oe_libinstall -so libtcl8.5 ${STAGING_LIBDIR} + ln -sf ./tclsh8.5 ${D}${bindir}/tclsh + sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh + sed -i "s,-L${libdir},," tclConfig.sh + install -d ${STAGING_BINDIR_CROSS}/ + install -m 0755 tclConfig.sh ${STAGING_BINDIR_CROSS} + cd .. + for dir in compat generic unix + do + install -d ${STAGING_INCDIR}/tcl${PV}/$dir + install -m 0644 $dir/*.h ${STAGING_INCDIR}/tcl${PV}/$dir/ + done +} + +PACKAGES =+ "${PN}-lib" +FILES_${PN}-lib = "${libdir}/libtcl8.5.so*" +FILES_${PN} += "${prefix}/lib/tcl8.5" +FILES_${PN}-dev += "${libdir}/tclConfig.sh" + +BBCLASSEXTEND = "native" diff --git a/meta/recipes-devtools/tcltk/tcl_8.5.9.bb b/meta/recipes-devtools/tcltk/tcl_8.5.9.bb deleted file mode 100644 index 2eabb4d8d..000000000 --- a/meta/recipes-devtools/tcltk/tcl_8.5.9.bb +++ /dev/null @@ -1,65 +0,0 @@ -DESCRIPTION = "Tool Command Language" -LICENSE = "tcl" -SECTION = "devel/tcltk" -HOMEPAGE = "http://tcl.sourceforge.net" -DEPENDS = "tcl-native" -LIC_FILES_CHKSUM = "file://../license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ - file://../compat/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ - file://../library/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ - file://../macosx/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ - file://../tests/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ - file://../win/license.terms;md5=a47a9be26d03f925fc1fbd2784f27e11 \ - " - -PR = "r1" - -BASE_SRC_URI = "${SOURCEFORGE_MIRROR}/tcl/tcl${PV}-src.tar.gz \ - file://tcl-add-soname.patch" - -SRC_URI = "${BASE_SRC_URI} \ - file://fix_non_native_build_issue.patch " - -SRC_URI[md5sum] = "8512d8db3233041dd68a81476906012a" -SRC_URI[sha256sum] = "3ab671b417e3eeb41b9cef626d742d8f7f57425101e83e5fcad1d552cd99237d" - -SRC_URI_virtclass-native = "${BASE_SRC_URI}" - -S = "${WORKDIR}/tcl${PV}/unix" - -inherit autotools - -DEPENDS_virtclass-native = "" - -EXTRA_OECONF = "--enable-threads" - -do_configure() { - gnu-configize - oe_runconf -} - -do_compile_prepend() { - echo > ../compat/fixstrtod.c -} - -do_install() { - autotools_do_install - oe_libinstall -so libtcl8.5 ${STAGING_LIBDIR} - ln -sf ./tclsh8.5 ${D}${bindir}/tclsh - sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh - sed -i "s,-L${libdir},," tclConfig.sh - install -d ${STAGING_BINDIR_CROSS}/ - install -m 0755 tclConfig.sh ${STAGING_BINDIR_CROSS} - cd .. - for dir in compat generic unix - do - install -d ${STAGING_INCDIR}/tcl${PV}/$dir - install -m 0644 $dir/*.h ${STAGING_INCDIR}/tcl${PV}/$dir/ - done -} - -PACKAGES =+ "${PN}-lib" -FILES_${PN}-lib = "${libdir}/libtcl8.5.so*" -FILES_${PN} += "${prefix}/lib/tcl8.5" -FILES_${PN}-dev += "${libdir}/tclConfig.sh" - -BBCLASSEXTEND = "native" -- cgit v1.2.3