Check-in [66930bd6ef]
Overview
Comment:Added support for minimal builds

Fixed potential loading issue for zlib in pure Tcl metakit

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 66930bd6ef20ba93ca8fa3f773a2658d0c5a8809
User & Date: rkeene on 2010-09-26 04:42:08
Other Links: manifest | tags
Context
2010-09-26
04:42
Updated minimalistic ARM build script check-in: 58fcde03bd user: rkeene tags: trunk
04:42
Added support for minimal builds

Fixed potential loading issue for zlib in pure Tcl metakit check-in: 66930bd6ef user: rkeene tags: trunk

04:42
Updated to always make registry/dde packages available to Windows rather than creating a "package ifneeded" entry -- this fixes the issue with mismatched versions on Tcl 8.5+ check-in: 5a3882c8f0 user: rkeene tags: trunk
Changes

Modified README from [06483e4d12] to [5eafd68bb0].

85
86
87
88
89
90
91





92
93
94
95
96
97
98
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103







+
+
+
+
+







		instead.

	7. KITCREATOR_MINENCODINGS
		Set this variable to a non-empty string to generate a Tclkit
		without all encodings, only including the following:
			ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc
			iso8859-2.enc koi8-r.enc macRoman.enc

	8. KITCREATOR_MINBUILD
		Set this variable to a non-empty string to exclude unnecessary
		packages from Tcl build.  This excludes the following packages:
			tcltest

-------------------
Method of Operation
-------------------
Summary:
	1. "kitcreator" calls */build.sh
	2. */build.sh downloads and compiles appropriate software

Modified kitsh/buildsrc/kitsh-0.0/mk4tcl.tcl from [0c7aa42b6c] to [4aa4852a38].

9
10
11
12
13
14
15


16
17
18
19
20
21
22
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24







+
+







  proc lassign {l args} {
    foreach v $l a $args { uplevel 1 [list set $a $v] }
  }
}

catch {
	load {} zlib
}
catch {
	package require zlib
}

if {[info comm mmap] == ""} {
    # mmap and mvec primitives in pure Tcl (a C version is present in critlib)

    namespace export mmap mvec

Modified tcl/build.sh from [34c4911af7] to [83493fb613].

83
84
85
86
87
88
89

90


91
92
93
94
95
96
97
83
84
85
86
87
88
89
90

91
92
93
94
95
96
97
98
99







+
-
+
+







		mkdir "${OUTDIR}/lib" || exit 1
		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
		rm -rf "${OUTDIR}/lib/pkgconfig"
		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null

		# Clean up packages that are not needed
		if [ -n "${KITCREATOR_MINBUILD}" ]; then
		find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
			find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
		fi

		# Clean up encodings
		if [ -n "${KITCREATOR_MINENCODINGS}" ]; then
			KEEPENCODINGS=" ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc iso8859-2.enc koi8-r.enc macRoman.enc "
			export KEEPENCODINGS
			find "${OUTDIR}/lib" -name 'encoding' -type d | while read encdir; do
				(