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     85   		instead.
    86     86   
    87     87   	7. KITCREATOR_MINENCODINGS
    88     88   		Set this variable to a non-empty string to generate a Tclkit
    89     89   		without all encodings, only including the following:
    90     90   			ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc
    91     91   			iso8859-2.enc koi8-r.enc macRoman.enc
           92  +
           93  +	8. KITCREATOR_MINBUILD
           94  +		Set this variable to a non-empty string to exclude unnecessary
           95  +		packages from Tcl build.  This excludes the following packages:
           96  +			tcltest
    92     97   
    93     98   -------------------
    94     99   Method of Operation
    95    100   -------------------
    96    101   Summary:
    97    102   	1. "kitcreator" calls */build.sh
    98    103   	2. */build.sh downloads and compiles appropriate software

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

     9      9     proc lassign {l args} {
    10     10       foreach v $l a $args { uplevel 1 [list set $a $v] }
    11     11     }
    12     12   }
    13     13   
    14     14   catch {
    15     15   	load {} zlib
           16  +}
           17  +catch {
    16     18   	package require zlib
    17     19   }
    18     20   
    19     21   if {[info comm mmap] == ""} {
    20     22       # mmap and mvec primitives in pure Tcl (a C version is present in critlib)
    21     23   
    22     24       namespace export mmap mvec

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

    83     83   		mkdir "${OUTDIR}/lib" || exit 1
    84     84   		cp -r "${INSTDIR}/lib"/* "${OUTDIR}/lib/"
    85     85   		rm -rf "${OUTDIR}/lib/pkgconfig"
    86     86   		rm -f "${OUTDIR}"/lib/* >/dev/null 2>/dev/null
    87     87   		find "${OUTDIR}" -name '*.a' | xargs rm -f >/dev/null 2>/dev/null
    88     88   
    89     89   		# Clean up packages that are not needed
    90         -		find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
           90  +		if [ -n "${KITCREATOR_MINBUILD}" ]; then
           91  +			find "${OUTDIR}" -name "tcltest*" -type d | xargs rm -rf
           92  +		fi
    91     93   
    92     94   		# Clean up encodings
    93     95   		if [ -n "${KITCREATOR_MINENCODINGS}" ]; then
    94     96   			KEEPENCODINGS=" ascii.enc cp1252.enc iso8859-1.enc iso8859-15.enc iso8859-2.enc koi8-r.enc macRoman.enc "
    95     97   			export KEEPENCODINGS
    96     98   			find "${OUTDIR}/lib" -name 'encoding' -type d | while read encdir; do
    97     99   				(