mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] TCL: version bump 8.5.7 -> 8.5.15
Date: Fri, 31 Jan 2014 11:57:16 +0100	[thread overview]
Message-ID: <201401311157.16901.jbe@pengutronix.de> (raw)

This update also removes the dependency to a host based TCL shell.
    
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

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 <juergen@kreuzholzen.de>
-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 <juergen@kreuzholzen.de>
-
----
- 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 <juergen@kreuzholzen.de>
-
-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 <juergen@kreuzholzen.de>
----
- 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
+
+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)
 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
 
-# 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
 
-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
ptxdist@pengutronix.de

             reply	other threads:[~2014-01-31 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-31 10:57 Juergen Beisert [this message]
2014-02-03  8:12 ` Michael Olbrich
2014-02-03  9:59   ` [ptxdist] [PATCHv2] " Juergen Beisert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201401311157.16901.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox