Overview
Comment: | Added patch to allow Metakit to compile under Tcl 8.6, doesn't hurt compilation on other versions of Tcl so it is applied to all |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
91e82d9be9024e60566a0a6264e77c83 |
User & Date: | rkeene on 2010-09-26 04:38:32 |
Other Links: | manifest | tags |
Context
2010-09-26
| ||
04:38 | Updated to use public interface for SetStartupScript/GetStartupScript if it is found, otherwise use the old interface. check-in: 399b8095e3 user: rkeene tags: trunk | |
04:38 | Added patch to allow Metakit to compile under Tcl 8.6, doesn't hurt compilation on other versions of Tcl so it is applied to all check-in: 91e82d9be9 user: rkeene tags: trunk | |
04:38 | Added patches for TCLVFS on Tcl 8.6 check-in: 1ebcac2a8b user: rkeene tags: trunk | |
Changes
Modified mk4tcl/build.sh from [bcf44c2ad0] to [922c8bfe52].
︙ | ︙ | |||
13 14 15 16 17 18 19 | MK4VERS="2.4.9.7" SRC="src/metakit-${MK4VERS}.tar.gz" SRCURL="http://www.equi4.com/pub/mk/metakit-${MK4VERS}.tar.gz" BUILDDIR="$(pwd)/build/metakit-${MK4VERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" | > | > > > > > > > > > > > > > > > > | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | MK4VERS="2.4.9.7" SRC="src/metakit-${MK4VERS}.tar.gz" SRCURL="http://www.equi4.com/pub/mk/metakit-${MK4VERS}.tar.gz" BUILDDIR="$(pwd)/build/metakit-${MK4VERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" PATCHDIR="$(pwd)/patches" export MK4VERS SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHDIR rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 TCL_VERSION="unknown" if [ -f "${TCLCONFIGDIR}/tclConfig.sh" ]; then source "${TCLCONFIGDIR}/tclConfig.sh" fi export TCL_VERSION if [ ! -f "${SRC}" ]; then mkdir 'src' >/dev/null 2>/dev/null wget -O "${SRC}" "${SRCURL}" || exit 1 fi ( cd 'build' || exit 1 gzip -dc "../${SRC}" | tar -xf - # Apply required patches cd "${BUILDDIR}" || exit 1 for patch in "${PATCHDIR}/all"/metakit-${MK4VERS}-*.diff "${PATCHDIR}/${TCL_VERSION}"/metakit-${MK4VERS}-*.diff; do if [ ! -f "${patch}" ]; then continue fi echo "Applying: ${patch}" patch -p1 < "${patch}" done cd "${BUILDDIR}/unix" || exit 1 # Build static libraries for linking against Tclkit ./configure --disable-shared --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}/../generic" ${CONFIGUREEXTRA} "${MAKE:-make}" tcllibdir="${INSTDIR}/lib" || exit 1 "${MAKE:-make}" tcllibdir="${INSTDIR}/lib" install |
︙ | ︙ |
Added mk4tcl/patches/all/metakit-2.4.9.7-compilewithcvs.diff version [637b0f0b77].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | diff -uNr metakit-2.4.9.7-orig/tcl/mk4tcl.cpp metakit-2.4.9.7-rsk/tcl/mk4tcl.cpp --- metakit-2.4.9.7-orig/tcl/mk4tcl.cpp 2007-06-18 16:05:24.000000000 -0500 +++ metakit-2.4.9.7-rsk/tcl/mk4tcl.cpp 2010-02-21 18:30:34.000000000 -0600 @@ -979,7 +979,7 @@ void *tag = (&view_[0])._seq; // horrific hack to get at c4_Sequence pointer if (objPtr->typePtr != &mkPropertyType || objPtr ->internalRep.twoPtrValue.ptr1 != tag) { - Tcl_ObjType *oldTypePtr = objPtr->typePtr; + Tcl_ObjType *oldTypePtr = (Tcl_ObjType *) objPtr->typePtr; char type = 'S'; @@ -1083,7 +1083,7 @@ } if (objPtr->typePtr != &mkCursorType) { - Tcl_ObjType *oldTypePtr = objPtr->typePtr; + Tcl_ObjType *oldTypePtr = (Tcl_ObjType *) objPtr->typePtr; const char *string = Tcl_GetStringFromObj(objPtr, 0); @@ -2156,7 +2156,7 @@ _error = TCL_OK; else if (_error == TCL_ERROR) { char msg[100]; - sprintf(msg, "\n (\"mk::loop\" body line %d)", interp->errorLine); + sprintf(msg, "\n (\"mk::loop\")"); Tcl_AddObjErrorInfo(interp, msg, - 1); } break; diff -uNr metakit-2.4.9.7-orig/tcl/mk4too.cpp metakit-2.4.9.7-rsk/tcl/mk4too.cpp --- metakit-2.4.9.7-orig/tcl/mk4too.cpp 2007-03-09 09:58:53.000000000 -0600 +++ metakit-2.4.9.7-rsk/tcl/mk4too.cpp 2010-02-21 18:30:38.000000000 -0600 @@ -612,7 +612,7 @@ _error = TCL_OK; else if (_error == TCL_ERROR) { char msg[100]; - sprintf(msg, "\n (\"mk::loop\" body line %d)", interp->errorLine); + sprintf(msg, "\n (\"mk::loop\")"); Tcl_AddObjErrorInfo(interp, msg, - 1); } break; |