On Fri, Jan 31, 2014 at 11:57:16AM +0100, Juergen Beisert wrote:
> This update also removes the dependency to a host based TCL shell.
>     
> Signed-off-by: Juergen Beisert <[email protected]>
> 
> diff --git a/patches/tcl8.5.7/fix_link_pathes.diff 
> b/patches/tcl8.5.7/fix_link_pathes.diff
> deleted file mode 100644
> index 5f021a8..0000000
> --- a/patches/tcl8.5.7/fix_link_pathes.diff
> +++ /dev/null
> @@ -1,54 +0,0 @@
> -From: Juergen Beisert <[email protected]>
> -Subject: Fix config pathes that confuses TK while building
> -
> -The config includes many paths into the host. This patch generates paths
> -that always points to the local install directories. Short: Make it
> -SYSROOT aware.
> -
> -Signed-off-by: Juergen Beisert <[email protected]>
> -
> ----
> - unix/configure |   12 ++++++------
> - 1 file changed, 6 insertions(+), 6 deletions(-)
> -
> -Index: unix/configure
> -===================================================================
> ---- unix/configure.orig
> -+++ unix/configure
> -@@ -18911,7 +18911,7 @@ else
> -             TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`"
> -         fi
> -         TCL_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_LIB_FLAG}"
> --        TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
> -+        TCL_LIB_SPEC="-L$SYSROOT${libdir} ${TCL_LIB_FLAG}"
> -     else
> -         TCL_BUILD_EXP_FILE="lib.exp"
> -         eval "TCL_EXP_FILE=libtcl${TCL_EXPORT_FILE_SUFFIX}"
> -@@ -18944,9 +18944,9 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
> -     test -z "$TCL_MODULE_PATH"  && \
> -     TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
> - elif test "$prefix/lib" != "$libdir"; then
> --    TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
> -+    TCL_PACKAGE_PATH="$SYSROOT${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
> - else
> --    TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}"
> -+    TCL_PACKAGE_PATH="$SYSROOT${prefix}/lib ${TCL_PACKAGE_PATH}"
> - fi
> - 
> - #--------------------------------------------------------------------
> -@@ -18968,12 +18968,12 @@ else
> - fi
> - 
> - TCL_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` 
> ${TCL_STUB_LIB_FLAG}"
> --TCL_STUB_LIB_SPEC="-L${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
> -+TCL_STUB_LIB_SPEC="-L$SYSROOT${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}"
> - TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
> --TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
> -+TCL_STUB_LIB_PATH="$SYSROOT${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}"
> - 
> - # Install time header dir can be set via --includedir
> --eval "TCL_INCLUDE_SPEC=\"-I${includedir}\""
> -+eval "TCL_INCLUDE_SPEC=\"-I$SYSROOT${includedir}\""
> - 
> - #------------------------------------------------------------------------
> - # tclConfig.sh refers to this by a different name
> diff --git a/patches/tcl8.5.7/series b/patches/tcl8.5.7/series
> deleted file mode 100644
> index 2087077..0000000
> --- a/patches/tcl8.5.7/series
> +++ /dev/null
> @@ -1,2 +0,0 @@
> -use_hosts_tclsh.diff -p0
> -fix_link_pathes.diff -p0
> diff --git a/patches/tcl8.5.7/use_hosts_tclsh.diff 
> b/patches/tcl8.5.7/use_hosts_tclsh.diff
> deleted file mode 100644
> index 9b51845..0000000
> --- a/patches/tcl8.5.7/use_hosts_tclsh.diff
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -Subject: [patch] don't use cross compiled tools
> -From: Juergen Beisert <[email protected]>
> -
> -Force the install stage to use the host's TCL shell instead
> -of its own. This fails badly while cross compiling.
> -
> -Disadvantage: You need a proper TCL interpreter on the host
> -
> -FIXME: looks like we need a proper host-tcl
> -
> -Signed-off-by: Juergen Beisert <[email protected]>
> ----
> - unix/Makefile.in |    2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -Index: unix/Makefile.in
> -===================================================================
> ---- unix/Makefile.in.orig
> -+++ unix/Makefile.in
> -@@ -824,7 +824,7 @@ install-msgs: tclsh
> -     @echo "Installing message catalogs"
> -     @@LD_LIBRARY_PATH_VAR@="`pwd`:$${@LD_LIBRARY_PATH_VAR@}"; export 
> @LD_LIBRARY_PATH_VAR@; \
> -     TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
> --    ./tclsh $(TOOL_DIR)/installData.tcl \
> -+    tclsh $(TOOL_DIR)/installData.tcl \
> -         $(TOP_DIR)/library/msgs "$(SCRIPT_INSTALL_DIR)"/msgs
> - 
> - install-doc: doc
> diff --git a/rules/tcl.make b/rules/tcl.make
> index 56969f9..b3994d2 100644
> --- a/rules/tcl.make
> +++ b/rules/tcl.make
> @@ -18,9 +18,9 @@ PACKAGES-$(PTXCONF_TCL) += tcl
>  #
>  TCL_MAJOR    := 8
>  TCL_MINOR    := 5
> -TCL_PL               := 7
> +TCL_PL               := 15
>  TCL_VERSION  := $(TCL_MAJOR).$(TCL_MINOR).$(TCL_PL)
> -TCL_MD5              := f70ad8f78b5e4a9f792fe101f22b125f
> +TCL_MD5              := f3df162f92c69b254079c4d0af7a690f
>  TCL          := tcl$(TCL_VERSION)
>  TCL_SUFFIX   := -src.tar.gz
>  TCL_URL              := $(call ptx/mirror, SF, tcl/$(TCL)$(TCL_SUFFIX))
> @@ -31,10 +31,28 @@ TCL_DIR           := $(BUILDDIR)/$(TCL)
>  # Prepare
>  # 
> ----------------------------------------------------------------------------
>  
> +ifdef KERNEL_VERSION
> +TCL_KERNEL_VERSION := $(KERNEL_VERSION)
> +endif
> +
> +ifdef KERNEL_HEADER_VERSION
> +TCL_KERNEL_VERSION := $(KERNEL_HEADER_VERSION)
> +endif

TCL_KERNEL_VERSION := $(call ptx/ifdef, 
KERNEL_HEADER_VERSION,$(KERNEL_HEADER_VERSION),$(KERNEL_VERSION)

might be a bit shorter.

> +
> +ifdef PTXCONF_TCL
> +ifeq ($(TCL_KERNEL_VERSION),)
> + $(warning ######################### ERROR ###########################)
> + $(warning # Linux kernel version required in order to make TCL work #)
> + $(warning #   Define a platform kernel or the kernel headers        #)
> + $(warning ###########################################################)
> + $(error )
> +endif
> +endif
> +
>  TCL_PATH     := PATH=$(CROSS_PATH)

drop this line while at it.

>  TCL_ENV      := \
>       $(CROSS_ENV) \
> -     tcl_cv_sys_version=Linux-$(KERNEL_HEADER_VERSION) \
> +     tcl_cv_sys_version=Linux-$(TCL_KERNEL_VERSION) \
>       tcl_cv_strstr_unbroken=yes \
>       tcl_cv_strtoul_unbroken=yes \
>       tcl_cv_strtod_unbroken=yes \
> @@ -50,21 +68,23 @@ TCL_ENV   := \
>  #
>  TCL_AUTOCONF := \
>       $(CROSS_AUTOCONF_USR) \
> +     --$(call ptx/endis, PTXCONF_TCL_THREADS)-threads \
> +     --enable-shared \
> +     --disable-64bit \
> +     --disable-64bit-vis \
>       --disable-rpath \
> -     --disable-symbols \
> +     --disable-corefoundation \
>       --enable-load \
> -     --enable-shared
> +     --enable-symbols \
> +     --enable-dll-unloading \
> +     --disable-dtrace \
> +     --disable-framework \
> +     --with-encoding=iso8859-15 \
> +     --$(call ptx/wwo, PTXCONF_TIMEZONE)-tzdata

No, this way ptxdist won't recompile when you en-/disable TIMEZONE.

use

config TCL_TZDATA
        default TIMEZONE

>  
> -# TODO: Provide the correct encoding for the target
>  # --with-encoding=<valid encode from 'usr/lib/tcl8.5/encoding'>
>  # Note: TCL uses iso8859-1 until otherwise specified

Any reason, why half of the comment remains?

Michael

>  
> -ifdef PTXCONF_TCL_THREADS
> -TCL_AUTOCONF += --enable-threads
> -else
> -TCL_AUTOCONF += --disable-threads
> -endif
> -
>  TCL_SUBDIR := unix
>  
>  # 
> ----------------------------------------------------------------------------
> @@ -113,9 +133,9 @@ $(STATEDIR)/tcl.targetinstall:
>  ifdef PTXCONF_TCL_TESTING
>       @$(call install_copy, tcl, 0, 0, 0755, /usr/lib/tcl$(TCL_MAJOR))
>       @$(call install_copy, tcl, 0, 0, 0644, -, \
> -             
> /usr/lib/tcl$(TCL_MAJOR)/$(TCL_MAJOR).$(TCL_MINOR)/tcltest-2.3.1.tm)
> +             
> /usr/lib/tcl$(TCL_MAJOR)/$(TCL_MAJOR).$(TCL_MINOR)/tcltest-2.3.5.tm)
>       @$(call install_copy, tcl, 0, 0, 0644, -, \
> -             
> /usr/lib/tcl$(TCL_MAJOR)/$(TCL_MAJOR).$(TCL_MINOR)/msgcat-1.4.2.tm)
> +             
> /usr/lib/tcl$(TCL_MAJOR)/$(TCL_MAJOR).$(TCL_MINOR)/msgcat-1.5.2.tm)
>  
>       @$(call install_copy, tcl, 0, 0, 0644, -, \
>               /usr/lib/tcl$(TCL_MAJOR).$(TCL_MINOR)/tm.tcl)
> -- 
> Pengutronix e.K.                              | Juergen Beisert             |
> Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |
> 
> -- 
> ptxdist mailing list
> [email protected]
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to