pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import tcl-8.6.6 as wip/tcl-fossil.



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Oct 25 21:42:21 2016 +0200
Changeset:	964995fde79e3890fe9aff3f7412e4b8ca8da9e1

Added Files:
	tcl-fossil/DESCR
	tcl-fossil/Makefile
	tcl-fossil/Makefile.version
	tcl-fossil/PLIST
	tcl-fossil/buildlink3.mk
	tcl-fossil/distinfo
	tcl-fossil/options.mk
	tcl-fossil/patches/patch-generic_tclInt.h
	tcl-fossil/patches/patch-generic_tclPort.h
	tcl-fossil/patches/patch-generic_tclPosixStr.c
	tcl-fossil/patches/patch-pkgs_itcl4.0.5_configure
	tcl-fossil/patches/patch-pkgs_sqlite3.13.0_Makefile.in
	tcl-fossil/patches/patch-pkgs_sqlite3.13.0_configure
	tcl-fossil/patches/patch-pkgs_tdbc1.0.4_configure
	tcl-fossil/patches/patch-pkgs_tdbcmysql1.0.4_configure
	tcl-fossil/patches/patch-pkgs_tdbcodbc1.0.4_configure
	tcl-fossil/patches/patch-pkgs_tdbcpostgres1.0.4_configure
	tcl-fossil/patches/patch-pkgs_thread2.8.0_configure
	tcl-fossil/patches/patch-tests_load.test
	tcl-fossil/patches/patch-tests_pkgMkIndex.test
	tcl-fossil/patches/patch-unix_Makefile.in
	tcl-fossil/patches/patch-unix_configure
	tcl-fossil/patches/patch-unix_tclConfig.sh.in
	tcl-fossil/patches/patch-unix_tclUnixCompat.c
	tcl-fossil/patches/patch-unix_tclUnixFCmd.c
	tcl-fossil/patches/patch-unix_tclUnixInit.c
	tcl-fossil/patches/patch-unix_tclUnixPort.h

Log Message:
Import tcl-8.6.6 as wip/tcl-fossil.

Tcl (Tool Command Language) is a very powerful but easy to learn dynamic
programming language, suitable for a very wide range of uses, including
web and desktop applications, networking, administration, testing and
many more. Open source and business-friendly, Tcl is a mature yet
evolving language that is truly cross platform, easily deployed and
highly extensible.

Tcl/Tk resources:
  Newsgroup: comp.lang.tcl
  Wiki: http://wiki.tcl.tk
  Books:
   * Practical Programming in Tcl and Tk, 4th Edition
     ISBN: 0-13-038560-3
   * Tcl and the Tk Toolkit, 2nd Edition
     ISBN: 978-0-321-33633-0

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=964995fde79e3890fe9aff3f7412e4b8ca8da9e1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tcl-fossil/DESCR                                   |   15 +
 tcl-fossil/Makefile                                |   73 ++
 tcl-fossil/Makefile.version                        |   14 +
 tcl-fossil/PLIST                                   | 1165 ++++++++++++++++++++
 tcl-fossil/buildlink3.mk                           |   32 +
 tcl-fossil/distinfo                                |   26 +
 tcl-fossil/options.mk                              |   19 +
 tcl-fossil/patches/patch-generic_tclInt.h          |   21 +
 tcl-fossil/patches/patch-generic_tclPort.h         |   13 +
 tcl-fossil/patches/patch-generic_tclPosixStr.c     |   24 +
 tcl-fossil/patches/patch-pkgs_itcl4.0.5_configure  |   54 +
 .../patches/patch-pkgs_sqlite3.13.0_Makefile.in    |   15 +
 .../patches/patch-pkgs_sqlite3.13.0_configure      |   53 +
 tcl-fossil/patches/patch-pkgs_tdbc1.0.4_configure  |   54 +
 .../patches/patch-pkgs_tdbcmysql1.0.4_configure    |   54 +
 .../patches/patch-pkgs_tdbcodbc1.0.4_configure     |   54 +
 .../patches/patch-pkgs_tdbcpostgres1.0.4_configure |   54 +
 .../patches/patch-pkgs_thread2.8.0_configure       |   53 +
 tcl-fossil/patches/patch-tests_load.test           |   15 +
 tcl-fossil/patches/patch-tests_pkgMkIndex.test     |   33 +
 tcl-fossil/patches/patch-unix_Makefile.in          |  161 +++
 tcl-fossil/patches/patch-unix_configure            |  205 ++++
 tcl-fossil/patches/patch-unix_tclConfig.sh.in      |   23 +
 tcl-fossil/patches/patch-unix_tclUnixCompat.c      |   67 ++
 tcl-fossil/patches/patch-unix_tclUnixFCmd.c        |   21 +
 tcl-fossil/patches/patch-unix_tclUnixInit.c        |   65 ++
 tcl-fossil/patches/patch-unix_tclUnixPort.h        |   17 +
 27 files changed, 2400 insertions(+)

diffs:
diff --git a/tcl-fossil/DESCR b/tcl-fossil/DESCR
new file mode 100644
index 0000000..521fe4d
--- /dev/null
+++ b/tcl-fossil/DESCR
@@ -0,0 +1,15 @@
+Tcl (Tool Command Language) is a very powerful but easy to learn dynamic
+programming language, suitable for a very wide range of uses, including
+web and desktop applications, networking, administration, testing and
+many more. Open source and business-friendly, Tcl is a mature yet
+evolving language that is truly cross platform, easily deployed and
+highly extensible.
+
+Tcl/Tk resources:
+  Newsgroup: comp.lang.tcl
+  Wiki: http://wiki.tcl.tk
+  Books:
+   * Practical Programming in Tcl and Tk, 4th Edition
+     ISBN: 0-13-038560-3
+   * Tcl and the Tk Toolkit, 2nd Edition
+     ISBN: 978-0-321-33633-0
diff --git a/tcl-fossil/Makefile b/tcl-fossil/Makefile
new file mode 100644
index 0000000..98e5711
--- /dev/null
+++ b/tcl-fossil/Makefile
@@ -0,0 +1,73 @@
+# $NetBSD: Makefile,v 1.93 2016/10/21 11:45:44 kamil Exp $
+
+DISTNAME=	tcl${TCL_VERSION}-src
+PKGNAME=	tcl-${TCL_VERSION}
+CATEGORIES=	lang
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=tcl/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.tcl.tk/
+COMMENT=	Tool Command Language, a dynamic language
+LICENSE=	2-clause-bsd
+
+.include "../../lang/tcl/Makefile.version"
+
+WRKSRC=			${WRKDIR}/tcl${TCL_VERSION}
+
+USE_GCC_RUNTIME=	yes
+
+GNU_CONFIGURE=		yes
+CONFIGURE_DIRS=		unix
+BUILD_DIRS=		${CONFIGURE_DIRS}
+INSTALL_TARGET=		install
+
+PKGCONFIG_OVERRIDE+=	unix/tcl.pc.in
+
+CHECK_PORTABILITY_SKIP=	win/configure
+
+# The test target gives better results when not run as root.
+TEST_TARGET=		test
+
+.include "options.mk"
+
+# This is needed for SGI and maybe sun (according to tcl developers)
+.if defined(ABI) && ${ABI} == "64"
+CONFIGURE_ARGS+=	--enable-64bit
+.endif
+
+CONFIGURE_ARGS.NetBSD+=	ac_cv_func_gethostbyname_r=no
+
+SUBST_CLASSES+=		tcl-config
+SUBST_STAGE.tcl-config=	post-build
+SUBST_FILES.tcl-config=	unix/tclConfig.sh
+SUBST_SED.tcl-config+=	-e "s|${WRKSRC}/unix|${PREFIX}/lib|"
+SUBST_SED.tcl-config+=	-e "s|${WRKSRC}|${PREFIX}/include/tcl|"
+
+PLIST_SUBST+=		SONUM=${TCL_SONUM}
+PLIST_SUBST+=		BASEVER=${TCL_BASEVER}
+PLIST_SUBST+=		ITCL_VERSION=${ITCL_VERSION}
+PLIST_SUBST+=		TDBC_VERSION=${TDBC_VERSION}
+
+CONFIGURE_ARGS+=	--with-system-sqlite
+SUBST_CLASSES+=		sqllink
+SUBST_STAGE.sqllink=	pre-configure
+SUBST_FILES.sqllink=	pkgs/sqlite3.13.0/configure
+SUBST_SED.sqllink=	-e "/LIBS=/s|-lsqlite3|-L${BUILDLINK_PREFIX.sqlite3}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3|g"
+
+.if ${OPSYS} == "Darwin"
+post-build:
+.  for lib in itcl${ITCL_VERSION}/libitcl${ITCL_VERSION}.dylib \
+	      sqlite3.13.0/libsqlite3.13.0.dylib \
+	      tdbc${TDBC_VERSION}/libtdbc${TDBC_VERSION}.dylib \
+	      tdbcmysql${TDBC_VERSION}/libtdbcmysql${TDBC_VERSION}.dylib \
+	      tdbcodbc${TDBC_VERSION}/libtdbcodbc${TDBC_VERSION}.dylib \
+	      tdbcpostgres${TDBC_VERSION}/libtdbcpostgres${TDBC_VERSION}.dylib \
+	      thread2.8.0/libthread2.8.0.dylib
+	install_name_tool -id ${PREFIX}/lib/${lib} ${WRKSRC}/unix/pkgs/${lib}
+.  endfor
+.endif
+
+BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.13.0
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tcl-fossil/Makefile.version b/tcl-fossil/Makefile.version
new file mode 100644
index 0000000..a6f6725
--- /dev/null
+++ b/tcl-fossil/Makefile.version
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile.version,v 1.21 2016/10/21 11:45:44 kamil Exp $
+# used by cad/xcircuit/Makefile
+# used by devel/tcl-tclcl/Makefile
+# used by lang/tcl/Makefile
+# used by lang/tcl-otcl/Makefile
+# used by print/tcl-pdflib/Makefile
+
+TCL_SONUM=	86
+TCL_BASEVER=	8.6
+TCL_VERSION=	8.6.6
+
+# Update bundled versions in lang/tcl/buildlink3.mk
+ITCL_VERSION=	4.0.5
+TDBC_VERSION=	1.0.4
diff --git a/tcl-fossil/PLIST b/tcl-fossil/PLIST
new file mode 100644
index 0000000..b80e74f
--- /dev/null
+++ b/tcl-fossil/PLIST
@@ -0,0 +1,1165 @@
+@comment $NetBSD: PLIST,v 1.22 2016/10/21 11:45:44 kamil Exp $
+bin/sqlite3_analyzer
+bin/tclsh
+bin/tclsh${BASEVER}
+include/fakemysql.h
+include/fakepq.h
+include/fakesql.h
+include/itcl.h
+include/itcl2TclOO.h
+include/itclDecls.h
+include/itclInt.h
+include/itclIntDecls.h
+include/itclMigrate2TclCore.h
+include/itclTclIntStubsFcn.h
+include/mysqlStubs.h
+include/odbcStubs.h
+include/pqStubs.h
+include/tcl.h
+include/tcl/generic/regcustom.h
+include/tcl/generic/regerrs.h
+include/tcl/generic/regex.h
+include/tcl/generic/regguts.h
+include/tcl/generic/tcl.h
+include/tcl/generic/tclCompile.h
+include/tcl/generic/tclDecls.h
+include/tcl/generic/tclFileSystem.h
+include/tcl/generic/tclIO.h
+include/tcl/generic/tclInt.h
+include/tcl/generic/tclIntDecls.h
+include/tcl/generic/tclIntPlatDecls.h
+include/tcl/generic/tclOO.h
+include/tcl/generic/tclOODecls.h
+include/tcl/generic/tclOOInt.h
+include/tcl/generic/tclOOIntDecls.h
+include/tcl/generic/tclParse.h
+include/tcl/generic/tclPlatDecls.h
+include/tcl/generic/tclPort.h
+include/tcl/generic/tclRegexp.h
+include/tcl/generic/tclStringRep.h
+include/tcl/generic/tclStringTrim.h
+include/tcl/generic/tclTomMath.h
+include/tcl/generic/tclTomMathDecls.h
+include/tcl/generic/tclTomMathInt.h
+include/tcl/generic/tommath.h
+include/tcl/unix/tclUnixPort.h
+include/tcl/unix/tclUnixThrd.h
+include/tclDecls.h
+include/tclOO.h
+include/tclOODecls.h
+include/tclPlatDecls.h
+include/tclThread.h
+include/tdbc.h
+include/tdbcDecls.h
+include/tdbcInt.h
+lib/itcl${ITCL_VERSION}/itcl.tcl
+lib/itcl${ITCL_VERSION}/itclConfig.sh
+lib/itcl${ITCL_VERSION}/itclHullCmds.tcl
+lib/itcl${ITCL_VERSION}/itclWidget.tcl
+lib/itcl${ITCL_VERSION}/libitcl${ITCL_VERSION}.so
+lib/itcl${ITCL_VERSION}/libitclstub${ITCL_VERSION}.a
+lib/itcl${ITCL_VERSION}/pkgIndex.tcl
+lib/libtcl${SONUM}.a
+lib/libtcl${SONUM}.so
+lib/libtcl${SONUM}.so.1.0
+lib/libtclstub${SONUM}.a
+lib/pkgconfig/tcl.pc
+lib/sqlite3.13.0/libsqlite3.13.0.so
+lib/sqlite3.13.0/pkgIndex.tcl
+lib/tcl${BASEVER}/auto.tcl
+lib/tcl${BASEVER}/clock.tcl
+lib/tcl${BASEVER}/encoding/ascii.enc
+lib/tcl${BASEVER}/encoding/big5.enc
+lib/tcl${BASEVER}/encoding/cp1250.enc
+lib/tcl${BASEVER}/encoding/cp1251.enc
+lib/tcl${BASEVER}/encoding/cp1252.enc
+lib/tcl${BASEVER}/encoding/cp1253.enc
+lib/tcl${BASEVER}/encoding/cp1254.enc
+lib/tcl${BASEVER}/encoding/cp1255.enc
+lib/tcl${BASEVER}/encoding/cp1256.enc
+lib/tcl${BASEVER}/encoding/cp1257.enc
+lib/tcl${BASEVER}/encoding/cp1258.enc
+lib/tcl${BASEVER}/encoding/cp437.enc
+lib/tcl${BASEVER}/encoding/cp737.enc
+lib/tcl${BASEVER}/encoding/cp775.enc
+lib/tcl${BASEVER}/encoding/cp850.enc
+lib/tcl${BASEVER}/encoding/cp852.enc
+lib/tcl${BASEVER}/encoding/cp855.enc
+lib/tcl${BASEVER}/encoding/cp857.enc
+lib/tcl${BASEVER}/encoding/cp860.enc
+lib/tcl${BASEVER}/encoding/cp861.enc
+lib/tcl${BASEVER}/encoding/cp862.enc
+lib/tcl${BASEVER}/encoding/cp863.enc
+lib/tcl${BASEVER}/encoding/cp864.enc
+lib/tcl${BASEVER}/encoding/cp865.enc
+lib/tcl${BASEVER}/encoding/cp866.enc
+lib/tcl${BASEVER}/encoding/cp869.enc
+lib/tcl${BASEVER}/encoding/cp874.enc
+lib/tcl${BASEVER}/encoding/cp932.enc
+lib/tcl${BASEVER}/encoding/cp936.enc
+lib/tcl${BASEVER}/encoding/cp949.enc
+lib/tcl${BASEVER}/encoding/cp950.enc
+lib/tcl${BASEVER}/encoding/dingbats.enc
+lib/tcl${BASEVER}/encoding/ebcdic.enc
+lib/tcl${BASEVER}/encoding/euc-cn.enc
+lib/tcl${BASEVER}/encoding/euc-jp.enc
+lib/tcl${BASEVER}/encoding/euc-kr.enc
+lib/tcl${BASEVER}/encoding/gb12345.enc
+lib/tcl${BASEVER}/encoding/gb1988.enc
+lib/tcl${BASEVER}/encoding/gb2312-raw.enc
+lib/tcl${BASEVER}/encoding/gb2312.enc
+lib/tcl${BASEVER}/encoding/iso2022-jp.enc
+lib/tcl${BASEVER}/encoding/iso2022-kr.enc
+lib/tcl${BASEVER}/encoding/iso2022.enc
+lib/tcl${BASEVER}/encoding/iso8859-1.enc
+lib/tcl${BASEVER}/encoding/iso8859-10.enc
+lib/tcl${BASEVER}/encoding/iso8859-13.enc
+lib/tcl${BASEVER}/encoding/iso8859-14.enc
+lib/tcl${BASEVER}/encoding/iso8859-15.enc
+lib/tcl${BASEVER}/encoding/iso8859-16.enc
+lib/tcl${BASEVER}/encoding/iso8859-2.enc
+lib/tcl${BASEVER}/encoding/iso8859-3.enc
+lib/tcl${BASEVER}/encoding/iso8859-4.enc
+lib/tcl${BASEVER}/encoding/iso8859-5.enc
+lib/tcl${BASEVER}/encoding/iso8859-6.enc
+lib/tcl${BASEVER}/encoding/iso8859-7.enc
+lib/tcl${BASEVER}/encoding/iso8859-8.enc
+lib/tcl${BASEVER}/encoding/iso8859-9.enc
+lib/tcl${BASEVER}/encoding/jis0201.enc
+lib/tcl${BASEVER}/encoding/jis0208.enc
+lib/tcl${BASEVER}/encoding/jis0212.enc
+lib/tcl${BASEVER}/encoding/koi8-r.enc
+lib/tcl${BASEVER}/encoding/koi8-u.enc
+lib/tcl${BASEVER}/encoding/ksc5601.enc
+lib/tcl${BASEVER}/encoding/macCentEuro.enc
+lib/tcl${BASEVER}/encoding/macCroatian.enc
+lib/tcl${BASEVER}/encoding/macCyrillic.enc
+lib/tcl${BASEVER}/encoding/macDingbats.enc
+lib/tcl${BASEVER}/encoding/macGreek.enc
+lib/tcl${BASEVER}/encoding/macIceland.enc
+lib/tcl${BASEVER}/encoding/macJapan.enc
+lib/tcl${BASEVER}/encoding/macRoman.enc
+lib/tcl${BASEVER}/encoding/macRomania.enc
+lib/tcl${BASEVER}/encoding/macThai.enc
+lib/tcl${BASEVER}/encoding/macTurkish.enc
+lib/tcl${BASEVER}/encoding/macUkraine.enc
+lib/tcl${BASEVER}/encoding/shiftjis.enc
+lib/tcl${BASEVER}/encoding/symbol.enc
+lib/tcl${BASEVER}/encoding/tis-620.enc
+lib/tcl${BASEVER}/history.tcl
+lib/tcl${BASEVER}/http/http.tcl
+lib/tcl${BASEVER}/http/pkgIndex.tcl
+lib/tcl${BASEVER}/http1.0/http.tcl
+lib/tcl${BASEVER}/http1.0/pkgIndex.tcl
+lib/tcl${BASEVER}/init.tcl
+lib/tcl${BASEVER}/msgcat1.6/msgcat.tcl
+lib/tcl${BASEVER}/msgcat1.6/pkgIndex.tcl
+lib/tcl${BASEVER}/msgs/af.msg
+lib/tcl${BASEVER}/msgs/af_za.msg
+lib/tcl${BASEVER}/msgs/ar.msg
+lib/tcl${BASEVER}/msgs/ar_in.msg
+lib/tcl${BASEVER}/msgs/ar_jo.msg
+lib/tcl${BASEVER}/msgs/ar_lb.msg
+lib/tcl${BASEVER}/msgs/ar_sy.msg
+lib/tcl${BASEVER}/msgs/be.msg
+lib/tcl${BASEVER}/msgs/bg.msg
+lib/tcl${BASEVER}/msgs/bn.msg
+lib/tcl${BASEVER}/msgs/bn_in.msg
+lib/tcl${BASEVER}/msgs/ca.msg
+lib/tcl${BASEVER}/msgs/cs.msg
+lib/tcl${BASEVER}/msgs/da.msg
+lib/tcl${BASEVER}/msgs/de.msg
+lib/tcl${BASEVER}/msgs/de_at.msg
+lib/tcl${BASEVER}/msgs/de_be.msg
+lib/tcl${BASEVER}/msgs/el.msg
+lib/tcl${BASEVER}/msgs/en_au.msg
+lib/tcl${BASEVER}/msgs/en_be.msg
+lib/tcl${BASEVER}/msgs/en_bw.msg
+lib/tcl${BASEVER}/msgs/en_ca.msg
+lib/tcl${BASEVER}/msgs/en_gb.msg
+lib/tcl${BASEVER}/msgs/en_hk.msg
+lib/tcl${BASEVER}/msgs/en_ie.msg
+lib/tcl${BASEVER}/msgs/en_in.msg
+lib/tcl${BASEVER}/msgs/en_nz.msg
+lib/tcl${BASEVER}/msgs/en_ph.msg
+lib/tcl${BASEVER}/msgs/en_sg.msg
+lib/tcl${BASEVER}/msgs/en_za.msg
+lib/tcl${BASEVER}/msgs/en_zw.msg
+lib/tcl${BASEVER}/msgs/eo.msg
+lib/tcl${BASEVER}/msgs/es.msg
+lib/tcl${BASEVER}/msgs/es_ar.msg
+lib/tcl${BASEVER}/msgs/es_bo.msg
+lib/tcl${BASEVER}/msgs/es_cl.msg
+lib/tcl${BASEVER}/msgs/es_co.msg
+lib/tcl${BASEVER}/msgs/es_cr.msg
+lib/tcl${BASEVER}/msgs/es_do.msg
+lib/tcl${BASEVER}/msgs/es_ec.msg
+lib/tcl${BASEVER}/msgs/es_gt.msg
+lib/tcl${BASEVER}/msgs/es_hn.msg
+lib/tcl${BASEVER}/msgs/es_mx.msg
+lib/tcl${BASEVER}/msgs/es_ni.msg
+lib/tcl${BASEVER}/msgs/es_pa.msg
+lib/tcl${BASEVER}/msgs/es_pe.msg
+lib/tcl${BASEVER}/msgs/es_pr.msg
+lib/tcl${BASEVER}/msgs/es_py.msg
+lib/tcl${BASEVER}/msgs/es_sv.msg
+lib/tcl${BASEVER}/msgs/es_uy.msg
+lib/tcl${BASEVER}/msgs/es_ve.msg
+lib/tcl${BASEVER}/msgs/et.msg
+lib/tcl${BASEVER}/msgs/eu.msg
+lib/tcl${BASEVER}/msgs/eu_es.msg
+lib/tcl${BASEVER}/msgs/fa.msg
+lib/tcl${BASEVER}/msgs/fa_in.msg
+lib/tcl${BASEVER}/msgs/fa_ir.msg
+lib/tcl${BASEVER}/msgs/fi.msg
+lib/tcl${BASEVER}/msgs/fo.msg
+lib/tcl${BASEVER}/msgs/fo_fo.msg
+lib/tcl${BASEVER}/msgs/fr.msg
+lib/tcl${BASEVER}/msgs/fr_be.msg
+lib/tcl${BASEVER}/msgs/fr_ca.msg
+lib/tcl${BASEVER}/msgs/fr_ch.msg
+lib/tcl${BASEVER}/msgs/ga.msg
+lib/tcl${BASEVER}/msgs/ga_ie.msg
+lib/tcl${BASEVER}/msgs/gl.msg
+lib/tcl${BASEVER}/msgs/gl_es.msg
+lib/tcl${BASEVER}/msgs/gv.msg
+lib/tcl${BASEVER}/msgs/gv_gb.msg
+lib/tcl${BASEVER}/msgs/he.msg
+lib/tcl${BASEVER}/msgs/hi.msg
+lib/tcl${BASEVER}/msgs/hi_in.msg
+lib/tcl${BASEVER}/msgs/hr.msg
+lib/tcl${BASEVER}/msgs/hu.msg
+lib/tcl${BASEVER}/msgs/id.msg
+lib/tcl${BASEVER}/msgs/id_id.msg
+lib/tcl${BASEVER}/msgs/is.msg
+lib/tcl${BASEVER}/msgs/it.msg
+lib/tcl${BASEVER}/msgs/it_ch.msg
+lib/tcl${BASEVER}/msgs/ja.msg
+lib/tcl${BASEVER}/msgs/kl.msg
+lib/tcl${BASEVER}/msgs/kl_gl.msg
+lib/tcl${BASEVER}/msgs/ko.msg
+lib/tcl${BASEVER}/msgs/ko_kr.msg
+lib/tcl${BASEVER}/msgs/kok.msg
+lib/tcl${BASEVER}/msgs/kok_in.msg
+lib/tcl${BASEVER}/msgs/kw.msg
+lib/tcl${BASEVER}/msgs/kw_gb.msg
+lib/tcl${BASEVER}/msgs/lt.msg
+lib/tcl${BASEVER}/msgs/lv.msg
+lib/tcl${BASEVER}/msgs/mk.msg
+lib/tcl${BASEVER}/msgs/mr.msg
+lib/tcl${BASEVER}/msgs/mr_in.msg
+lib/tcl${BASEVER}/msgs/ms.msg
+lib/tcl${BASEVER}/msgs/ms_my.msg
+lib/tcl${BASEVER}/msgs/mt.msg
+lib/tcl${BASEVER}/msgs/nb.msg
+lib/tcl${BASEVER}/msgs/nl.msg
+lib/tcl${BASEVER}/msgs/nl_be.msg
+lib/tcl${BASEVER}/msgs/nn.msg
+lib/tcl${BASEVER}/msgs/pl.msg
+lib/tcl${BASEVER}/msgs/pt.msg
+lib/tcl${BASEVER}/msgs/pt_br.msg
+lib/tcl${BASEVER}/msgs/ro.msg
+lib/tcl${BASEVER}/msgs/ru.msg
+lib/tcl${BASEVER}/msgs/ru_ua.msg
+lib/tcl${BASEVER}/msgs/sh.msg
+lib/tcl${BASEVER}/msgs/sk.msg
+lib/tcl${BASEVER}/msgs/sl.msg
+lib/tcl${BASEVER}/msgs/sq.msg
+lib/tcl${BASEVER}/msgs/sr.msg
+lib/tcl${BASEVER}/msgs/sv.msg
+lib/tcl${BASEVER}/msgs/sw.msg
+lib/tcl${BASEVER}/msgs/ta.msg
+lib/tcl${BASEVER}/msgs/ta_in.msg
+lib/tcl${BASEVER}/msgs/te.msg
+lib/tcl${BASEVER}/msgs/te_in.msg
+lib/tcl${BASEVER}/msgs/th.msg
+lib/tcl${BASEVER}/msgs/tr.msg
+lib/tcl${BASEVER}/msgs/uk.msg
+lib/tcl${BASEVER}/msgs/vi.msg
+lib/tcl${BASEVER}/msgs/zh.msg
+lib/tcl${BASEVER}/msgs/zh_cn.msg
+lib/tcl${BASEVER}/msgs/zh_hk.msg
+lib/tcl${BASEVER}/msgs/zh_sg.msg
+lib/tcl${BASEVER}/msgs/zh_tw.msg
+lib/tcl${BASEVER}/opt0.4/optparse.tcl
+lib/tcl${BASEVER}/opt0.4/pkgIndex.tcl
+lib/tcl${BASEVER}/package.tcl
+lib/tcl${BASEVER}/parray.tcl
+lib/tcl${BASEVER}/platform1.0/pkgIndex.tcl
+lib/tcl${BASEVER}/platform1.0/platform.tcl
+lib/tcl${BASEVER}/safe.tcl
+lib/tcl${BASEVER}/shell1.1/pkgIndex.tcl
+lib/tcl${BASEVER}/shell1.1/shell.tcl
+lib/tcl${BASEVER}/tclAppInit.c
+lib/tcl${BASEVER}/tclIndex
+lib/tcl${BASEVER}/tcltest2.4/tcltest.tcl
+lib/tcl${BASEVER}/tcltest2.4/pkgIndex.tcl
+lib/tcl${BASEVER}/tm.tcl
+lib/tcl${BASEVER}/word.tcl
+lib/tcl8/8.4/platform-1.0.14.tm
+lib/tcl8/8.4/platform/shell-1.1.4.tm
+lib/tcl8/8.5/msgcat-1.6.0.tm
+lib/tcl8/8.5/tcltest-2.4.0.tm
+lib/tcl8/8.6/http-2.8.9.tm
+lib/tcl8/8.6/tdbc/sqlite3-${TDBC_VERSION}.tm
+lib/tclConfig.sh
+lib/tclooConfig.sh
+lib/tdbc${TDBC_VERSION}/libtdbc${TDBC_VERSION}.so
+lib/tdbc${TDBC_VERSION}/libtdbcstub${TDBC_VERSION}.a
+lib/tdbc${TDBC_VERSION}/pkgIndex.tcl
+lib/tdbc${TDBC_VERSION}/tdbc.tcl
+lib/tdbc${TDBC_VERSION}/tdbcConfig.sh
+lib/tdbcmysql${TDBC_VERSION}/libtdbcmysql${TDBC_VERSION}.so
+lib/tdbcmysql${TDBC_VERSION}/pkgIndex.tcl
+lib/tdbcmysql${TDBC_VERSION}/tdbcmysql.tcl
+lib/tdbcodbc${TDBC_VERSION}/libtdbcodbc${TDBC_VERSION}.so
+lib/tdbcodbc${TDBC_VERSION}/pkgIndex.tcl
+lib/tdbcodbc${TDBC_VERSION}/tdbcodbc.tcl
+lib/tdbcpostgres${TDBC_VERSION}/libtdbcpostgres${TDBC_VERSION}.so
+lib/tdbcpostgres${TDBC_VERSION}/pkgIndex.tcl
+lib/tdbcpostgres${TDBC_VERSION}/tdbcpostgres.tcl
+lib/thread2.8.0/libthread2.8.0.so
+lib/thread2.8.0/pkgIndex.tcl
+lib/thread2.8.0/ttrace.tcl
+man/man1/tclsh.1
+man/man3/TCL_MEM_DEBUG.3
+man/man3/Tcl_Access.3
+man/man3/Tcl_AddErrorInfo.3
+man/man3/Tcl_AddObjErrorInfo.3
+man/man3/Tcl_AlertNotifier.3
+man/man3/Tcl_Alloc.3
+man/man3/Tcl_AllocStatBuf.3
+man/man3/Tcl_AllowExceptions.3
+man/man3/Tcl_AppInit.3
+man/man3/Tcl_AppendAllObjTypes.3
+man/man3/Tcl_AppendElement.3
+man/man3/Tcl_AppendExportList.3
+man/man3/Tcl_AppendFormatToObj.3
+man/man3/Tcl_AppendLimitedToObj.3
+man/man3/Tcl_AppendObjToErrorInfo.3
+man/man3/Tcl_AppendObjToObj.3
+man/man3/Tcl_AppendPrintfToObj.3
+man/man3/Tcl_AppendResult.3
+man/man3/Tcl_AppendResultVA.3
+man/man3/Tcl_AppendStringsToObj.3
+man/man3/Tcl_AppendStringsToObjVA.3
+man/man3/Tcl_AppendToObj.3
+man/man3/Tcl_AppendUnicodeToObj.3
+man/man3/Tcl_AsyncCreate.3
+man/man3/Tcl_AsyncDelete.3
+man/man3/Tcl_AsyncInvoke.3
+man/man3/Tcl_AsyncMark.3
+man/man3/Tcl_AsyncReady.3
+man/man3/Tcl_AttemptAlloc.3
+man/man3/Tcl_AttemptRealloc.3
+man/man3/Tcl_AttemptSetObjLength.3
+man/man3/Tcl_BackgroundError.3
+man/man3/Tcl_BackgroundException.3
+man/man3/Tcl_Backslash.3
+man/man3/Tcl_BadChannelOption.3
+man/man3/Tcl_CallWhenDeleted.3
+man/man3/Tcl_CancelEval.3
+man/man3/Tcl_CancelIdleCall.3
+man/man3/Tcl_Canceled.3
+man/man3/Tcl_ChannelBlockModeProc.3
+man/man3/Tcl_ChannelBuffered.3
+man/man3/Tcl_ChannelClose2Proc.3
+man/man3/Tcl_ChannelCloseProc.3
+man/man3/Tcl_ChannelFlushProc.3
+man/man3/Tcl_ChannelGetHandleProc.3
+man/man3/Tcl_ChannelGetOptionProc.3
+man/man3/Tcl_ChannelHandlerProc.3
+man/man3/Tcl_ChannelInputProc.3
+man/man3/Tcl_ChannelName.3
+man/man3/Tcl_ChannelOutputProc.3
+man/man3/Tcl_ChannelSeekProc.3
+man/man3/Tcl_ChannelSetOptionProc.3
+man/man3/Tcl_ChannelThreadActionProc.3
+man/man3/Tcl_ChannelTruncateProc.3
+man/man3/Tcl_ChannelVersion.3
+man/man3/Tcl_ChannelWatchProc.3
+man/man3/Tcl_ChannelWideSeekProc.3
+man/man3/Tcl_Chdir.3
+man/man3/Tcl_ClassGetMetadata.3
+man/man3/Tcl_ClassSetConstructor.3
+man/man3/Tcl_ClassSetDestructor.3
+man/man3/Tcl_ClassSetMetadata.3
+man/man3/Tcl_ClearChannelHandlers.3
+man/man3/Tcl_Close.3
+man/man3/Tcl_CommandComplete.3
+man/man3/Tcl_CommandTraceInfo.3
+man/man3/Tcl_Concat.3
+man/man3/Tcl_ConcatObj.3
+man/man3/Tcl_ConditionFinalize.3
+man/man3/Tcl_ConditionNotify.3
+man/man3/Tcl_ConditionWait.3
+man/man3/Tcl_ConvertCountedElement.3
+man/man3/Tcl_ConvertElement.3
+man/man3/Tcl_ConvertToType.3
+man/man3/Tcl_CopyObjectInstance.3
+man/man3/Tcl_CreateAlias.3
+man/man3/Tcl_CreateAliasObj.3
+man/man3/Tcl_CreateChannel.3
+man/man3/Tcl_CreateChannelHandler.3
+man/man3/Tcl_CreateCloseHandler.3
+man/man3/Tcl_CreateCommand.3
+man/man3/Tcl_CreateEncoding.3
+man/man3/Tcl_CreateEnsemble.3
+man/man3/Tcl_CreateEventSource.3
+man/man3/Tcl_CreateExitHandler.3
+man/man3/Tcl_CreateFileHandler.3
+man/man3/Tcl_CreateHashEntry.3
+man/man3/Tcl_CreateInterp.3
+man/man3/Tcl_CreateMathFunc.3
+man/man3/Tcl_CreateNamespace.3
+man/man3/Tcl_CreateObjCommand.3
+man/man3/Tcl_CreateObjTrace.3
+man/man3/Tcl_CreateSlave.3
+man/man3/Tcl_CreateThread.3
+man/man3/Tcl_CreateThreadExitHandler.3
+man/man3/Tcl_CreateTimerHandler.3
+man/man3/Tcl_CreateTrace.3
+man/man3/Tcl_CutChannel.3
+man/man3/Tcl_DStringAppend.3
+man/man3/Tcl_DStringAppendElement.3
+man/man3/Tcl_DStringEndSublist.3
+man/man3/Tcl_DStringFree.3
+man/man3/Tcl_DStringGetResult.3
+man/man3/Tcl_DStringInit.3
+man/man3/Tcl_DStringLength.3
+man/man3/Tcl_DStringResult.3
+man/man3/Tcl_DStringSetLength.3
+man/man3/Tcl_DStringStartSublist.3
+man/man3/Tcl_DStringTrunc.3
+man/man3/Tcl_DStringValue.3
+man/man3/Tcl_DecrRefCount.3
+man/man3/Tcl_DeleteAssocData.3
+man/man3/Tcl_DeleteChannelHandler.3
+man/man3/Tcl_DeleteCloseHandler.3
+man/man3/Tcl_DeleteCommand.3
+man/man3/Tcl_DeleteCommandFromToken.3
+man/man3/Tcl_DeleteEventSource.3
+man/man3/Tcl_DeleteEvents.3
+man/man3/Tcl_DeleteExitHandler.3
+man/man3/Tcl_DeleteFileHandler.3
+man/man3/Tcl_DeleteHashEntry.3
+man/man3/Tcl_DeleteHashTable.3
+man/man3/Tcl_DeleteInterp.3
+man/man3/Tcl_DeleteNamespace.3
+man/man3/Tcl_DeleteThreadExitHandler.3
+man/man3/Tcl_DeleteTimerHandler.3
+man/man3/Tcl_DeleteTrace.3
+man/man3/Tcl_DetachChannel.3
+man/man3/Tcl_DetachPids.3
+man/man3/Tcl_DictObjDone.3
+man/man3/Tcl_DictObjFirst.3
+man/man3/Tcl_DictObjGet.3
+man/man3/Tcl_DictObjNext.3
+man/man3/Tcl_DictObjPut.3
+man/man3/Tcl_DictObjPutKeyList.3
+man/man3/Tcl_DictObjRemove.3
+man/man3/Tcl_DictObjRemoveKeyList.3
+man/man3/Tcl_DictObjSize.3
+man/man3/Tcl_DiscardInterpState.3
+man/man3/Tcl_DiscardResult.3
+man/man3/Tcl_DoOneEvent.3
+man/man3/Tcl_DoWhenIdle.3
+man/man3/Tcl_DontCallWhenDeleted.3
+man/man3/Tcl_DumpActiveMemory.3
+man/man3/Tcl_DuplicateObj.3
+man/man3/Tcl_Eof.3
+man/man3/Tcl_ErrnoId.3
+man/man3/Tcl_ErrnoMsg.3
+man/man3/Tcl_Eval.3
+man/man3/Tcl_EvalEx.3
+man/man3/Tcl_EvalFile.3
+man/man3/Tcl_EvalObjEx.3
+man/man3/Tcl_EvalObjv.3
+man/man3/Tcl_EvalTokens.3
+man/man3/Tcl_EvalTokensStandard.3
+man/man3/Tcl_EventuallyFree.3
+man/man3/Tcl_Exit.3
+man/man3/Tcl_ExitThread.3
+man/man3/Tcl_Export.3
+man/man3/Tcl_ExposeCommand.3
+man/man3/Tcl_ExprBoolean.3
+man/man3/Tcl_ExprBooleanObj.3
+man/man3/Tcl_ExprDouble.3
+man/man3/Tcl_ExprDoubleObj.3
+man/man3/Tcl_ExprLong.3
+man/man3/Tcl_ExprLongObj.3
+man/man3/Tcl_ExprObj.3
+man/man3/Tcl_ExprString.3
+man/man3/Tcl_ExternalToUtf.3
+man/man3/Tcl_ExternalToUtfDString.3
+man/man3/Tcl_FSAccess.3
+man/man3/Tcl_FSChdir.3
+man/man3/Tcl_FSConvertToPathType.3
+man/man3/Tcl_FSCopyDirectory.3
+man/man3/Tcl_FSCopyFile.3
+man/man3/Tcl_FSCreateDirectory.3
+man/man3/Tcl_FSData.3
+man/man3/Tcl_FSDeleteFile.3
+man/man3/Tcl_FSEqualPaths.3
+man/man3/Tcl_FSEvalFile.3
+man/man3/Tcl_FSEvalFileEx.3
+man/man3/Tcl_FSFileAttrStrings.3
+man/man3/Tcl_FSFileAttrsGet.3
+man/man3/Tcl_FSFileAttrsSet.3
+man/man3/Tcl_FSFileSystemInfo.3
+man/man3/Tcl_FSGetCwd.3
+man/man3/Tcl_FSGetFileSystemForPath.3
+man/man3/Tcl_FSGetInternalRep.3
+man/man3/Tcl_FSGetNativePath.3
+man/man3/Tcl_FSGetNormalizedPath.3
+man/man3/Tcl_FSGetPathType.3
+man/man3/Tcl_FSGetTranslatedPath.3
+man/man3/Tcl_FSGetTranslatedStringPath.3
+man/man3/Tcl_FSJoinPath.3
+man/man3/Tcl_FSJoinToPath.3
+man/man3/Tcl_FSLink.3
+man/man3/Tcl_FSListVolumes.3
+man/man3/Tcl_FSLoadFile.3
+man/man3/Tcl_FSLstat.3
+man/man3/Tcl_FSMatchInDirectory.3
+man/man3/Tcl_FSMountsChanged.3
+man/man3/Tcl_FSNewNativePath.3
+man/man3/Tcl_FSOpenFileChannel.3
+man/man3/Tcl_FSPathSeparator.3
+man/man3/Tcl_FSRegister.3
+man/man3/Tcl_FSRemoveDirectory.3
+man/man3/Tcl_FSRenameFile.3
+man/man3/Tcl_FSSplitPath.3
+man/man3/Tcl_FSStat.3
+man/man3/Tcl_FSUnloadFile.3
+man/man3/Tcl_FSUnregister.3
+man/man3/Tcl_FSUtime.3
+man/man3/Tcl_Finalize.3
+man/man3/Tcl_FinalizeNotifier.3
+man/man3/Tcl_FinalizeThread.3
+man/man3/Tcl_FindCommand.3
+man/man3/Tcl_FindEnsemble.3
+man/man3/Tcl_FindExecutable.3
+man/man3/Tcl_FindHashEntry.3
+man/man3/Tcl_FindNamespace.3
+man/man3/Tcl_FindSymbol.3
+man/man3/Tcl_FirstHashEntry.3
+man/man3/Tcl_Flush.3
+man/man3/Tcl_ForgetImport.3
+man/man3/Tcl_Format.3
+man/man3/Tcl_Free.3
+man/man3/Tcl_FreeEncoding.3
+man/man3/Tcl_FreeParse.3
+man/man3/Tcl_FreeResult.3
+man/man3/Tcl_GetAccessTimeFromStat.3
+man/man3/Tcl_GetAlias.3
+man/man3/Tcl_GetAliasObj.3
+man/man3/Tcl_GetAssocData.3
+man/man3/Tcl_GetBignumFromObj.3
+man/man3/Tcl_GetBlockSizeFromStat.3
+man/man3/Tcl_GetBlocksFromStat.3
+man/man3/Tcl_GetBoolean.3
+man/man3/Tcl_GetBooleanFromObj.3
+man/man3/Tcl_GetByteArrayFromObj.3
+man/man3/Tcl_GetChangeTimeFromStat.3
+man/man3/Tcl_GetChannel.3
+man/man3/Tcl_GetChannelBufferSize.3
+man/man3/Tcl_GetChannelError.3
+man/man3/Tcl_GetChannelErrorInterp.3
+man/man3/Tcl_GetChannelHandle.3
+man/man3/Tcl_GetChannelInstanceData.3
+man/man3/Tcl_GetChannelMode.3
+man/man3/Tcl_GetChannelName.3
+man/man3/Tcl_GetChannelNames.3
+man/man3/Tcl_GetChannelNamesEx.3
+man/man3/Tcl_GetChannelOption.3
+man/man3/Tcl_GetChannelThread.3
+man/man3/Tcl_GetChannelType.3
+man/man3/Tcl_GetCharLength.3
+man/man3/Tcl_GetClassAsObject.3
+man/man3/Tcl_GetCommandFromObj.3
+man/man3/Tcl_GetCommandFullName.3
+man/man3/Tcl_GetCommandInfo.3
+man/man3/Tcl_GetCommandInfoFromToken.3
+man/man3/Tcl_GetCommandName.3
+man/man3/Tcl_GetCurrentNamespace.3
+man/man3/Tcl_GetCurrentThread.3
+man/man3/Tcl_GetCwd.3
+man/man3/Tcl_GetDefaultEncodingDir.3
+man/man3/Tcl_GetDeviceTypeFromStat.3
+man/man3/Tcl_GetDouble.3
+man/man3/Tcl_GetDoubleFromObj.3
+man/man3/Tcl_GetEncoding.3
+man/man3/Tcl_GetEncodingFromObj.3
+man/man3/Tcl_GetEncodingName.3
+man/man3/Tcl_GetEncodingNameFromEnvironment.3
+man/man3/Tcl_GetEncodingNames.3
+man/man3/Tcl_GetEncodingSearchPath.3
+man/man3/Tcl_GetEnsembleFlags.3
+man/man3/Tcl_GetEnsembleMappingDict.3
+man/man3/Tcl_GetEnsembleNamespace.3
+man/man3/Tcl_GetEnsembleParameterList.3
+man/man3/Tcl_GetEnsembleSubcommandList.3
+man/man3/Tcl_GetEnsembleUnknownHandler.3
+man/man3/Tcl_GetErrno.3
+man/man3/Tcl_GetErrorLine.3
+man/man3/Tcl_GetFSDeviceFromStat.3
+man/man3/Tcl_GetFSInodeFromStat.3
+man/man3/Tcl_GetGlobalNamespace.3
+man/man3/Tcl_GetGroupIdFromStat.3
+man/man3/Tcl_GetHashKey.3
+man/man3/Tcl_GetHashValue.3
+man/man3/Tcl_GetHostName.3
+man/man3/Tcl_GetIndexFromObj.3
+man/man3/Tcl_GetIndexFromObjStruct.3
+man/man3/Tcl_GetInt.3
+man/man3/Tcl_GetIntFromObj.3
+man/man3/Tcl_GetInterpPath.3
+man/man3/Tcl_GetLinkCountFromStat.3
+man/man3/Tcl_GetLongFromObj.3
+man/man3/Tcl_GetMaster.3
+man/man3/Tcl_GetMathFuncInfo.3
+man/man3/Tcl_GetModeFromStat.3
+man/man3/Tcl_GetModificationTimeFromStat.3
+man/man3/Tcl_GetNameOfExecutable.3
+man/man3/Tcl_GetNamespaceUnknownHandler.3
+man/man3/Tcl_GetObjResult.3
+man/man3/Tcl_GetObjType.3
+man/man3/Tcl_GetObjectAsClass.3
+man/man3/Tcl_GetObjectCommand.3
+man/man3/Tcl_GetObjectFromObj.3
+man/man3/Tcl_GetObjectName.3
+man/man3/Tcl_GetObjectNamespace.3
+man/man3/Tcl_GetOpenFile.3
+man/man3/Tcl_GetPathType.3
+man/man3/Tcl_GetRange.3
+man/man3/Tcl_GetRegExpFromObj.3
+man/man3/Tcl_GetReturnOptions.3
+man/man3/Tcl_GetServiceMode.3
+man/man3/Tcl_GetSizeFromStat.3
+man/man3/Tcl_GetSlave.3
+man/man3/Tcl_GetStackedChannel.3
+man/man3/Tcl_GetStartupScript.3
+man/man3/Tcl_GetStdChannel.3
+man/man3/Tcl_GetString.3
+man/man3/Tcl_GetStringFromObj.3
+man/man3/Tcl_GetStringResult.3
+man/man3/Tcl_GetThreadData.3
+man/man3/Tcl_GetTime.3
+man/man3/Tcl_GetTopChannel.3
+man/man3/Tcl_GetUniChar.3
+man/man3/Tcl_GetUnicode.3
+man/man3/Tcl_GetUnicodeFromObj.3
+man/man3/Tcl_GetUserIdFromStat.3
+man/man3/Tcl_GetVar.3
+man/man3/Tcl_GetVar2.3
+man/man3/Tcl_GetVar2Ex.3
+man/man3/Tcl_GetVersion.3
+man/man3/Tcl_GetWideIntFromObj.3
+man/man3/Tcl_Gets.3
+man/man3/Tcl_GetsObj.3
+man/man3/Tcl_GlobalEval.3
+man/man3/Tcl_GlobalEvalObj.3
+man/man3/Tcl_HashStats.3
+man/man3/Tcl_HideCommand.3
+man/man3/Tcl_Import.3
+man/man3/Tcl_IncrRefCount.3
+man/man3/Tcl_Init.3
+man/man3/Tcl_InitCustomHashTable.3
+man/man3/Tcl_InitHashTable.3
+man/man3/Tcl_InitMemory.3
+man/man3/Tcl_InitNotifier.3
+man/man3/Tcl_InitObjHashTable.3
+man/man3/Tcl_InitStubs.3
+man/man3/Tcl_InputBlocked.3
+man/man3/Tcl_InputBuffered.3
+man/man3/Tcl_Interp.3
+man/man3/Tcl_InterpActive.3
+man/man3/Tcl_InterpDeleted.3
+man/man3/Tcl_InvalidateStringRep.3
+man/man3/Tcl_IsChannelExisting.3
+man/man3/Tcl_IsChannelRegistered.3
+man/man3/Tcl_IsChannelShared.3
+man/man3/Tcl_IsEnsemble.3
+man/man3/Tcl_IsSafe.3
+man/man3/Tcl_IsShared.3
+man/man3/Tcl_IsStandardChannel.3
+man/man3/Tcl_JoinPath.3
+man/man3/Tcl_JoinThread.3
+man/man3/Tcl_LimitAddHandler.3
+man/man3/Tcl_LimitCheck.3
+man/man3/Tcl_LimitExceeded.3
+man/man3/Tcl_LimitGetCommands.3
+man/man3/Tcl_LimitGetGranularity.3
+man/man3/Tcl_LimitGetTime.3
+man/man3/Tcl_LimitReady.3
+man/man3/Tcl_LimitRemoveHandler.3
+man/man3/Tcl_LimitSetCommands.3
+man/man3/Tcl_LimitSetGranularity.3
+man/man3/Tcl_LimitSetTime.3
+man/man3/Tcl_LimitTypeEnabled.3
+man/man3/Tcl_LimitTypeExceeded.3
+man/man3/Tcl_LimitTypeReset.3
+man/man3/Tcl_LimitTypeSet.3
+man/man3/Tcl_LinkVar.3
+man/man3/Tcl_ListMathFuncs.3
+man/man3/Tcl_ListObjAppendElement.3
+man/man3/Tcl_ListObjAppendList.3
+man/man3/Tcl_ListObjGetElements.3
+man/man3/Tcl_ListObjIndex.3
+man/man3/Tcl_ListObjLength.3
+man/man3/Tcl_ListObjReplace.3
+man/man3/Tcl_LoadFile.3
+man/man3/Tcl_LogCommandInfo.3
+man/man3/Tcl_Main.3
+man/man3/Tcl_MakeFileChannel.3
+man/man3/Tcl_MakeSafe.3
+man/man3/Tcl_MakeTcpClientChannel.3
+man/man3/Tcl_Merge.3
+man/man3/Tcl_MethodDeclarerClass.3
+man/man3/Tcl_MethodDeclarerObject.3
+man/man3/Tcl_MethodIsPublic.3
+man/man3/Tcl_MethodIsType.3
+man/man3/Tcl_MethodName.3
+man/man3/Tcl_MutexFinalize.3
+man/man3/Tcl_MutexLock.3
+man/man3/Tcl_MutexUnlock.3
+man/man3/Tcl_NRAddCallback.3
+man/man3/Tcl_NRCallObjProc.3
+man/man3/Tcl_NRCmdSwap.3
+man/man3/Tcl_NRCreateCommand.3
+man/man3/Tcl_NREvalObj.3
+man/man3/Tcl_NREvalObjv.3
+man/man3/Tcl_NRExprObj.3
+man/man3/Tcl_NewBignumObj.3
+man/man3/Tcl_NewBooleanObj.3
+man/man3/Tcl_NewByteArrayObj.3
+man/man3/Tcl_NewDictObj.3
+man/man3/Tcl_NewDoubleObj.3
+man/man3/Tcl_NewInstanceMethod.3
+man/man3/Tcl_NewIntObj.3
+man/man3/Tcl_NewListObj.3
+man/man3/Tcl_NewLongObj.3
+man/man3/Tcl_NewMethod.3
+man/man3/Tcl_NewObj.3
+man/man3/Tcl_NewObjectInstance.3
+man/man3/Tcl_NewStringObj.3
+man/man3/Tcl_NewUnicodeObj.3
+man/man3/Tcl_NewWideIntObj.3
+man/man3/Tcl_NextHashEntry.3
+man/man3/Tcl_NotifyChannel.3
+man/man3/Tcl_NumUtfChars.3
+man/man3/Tcl_OOInitStubs.3
+man/man3/Tcl_ObjGetVar2.3
+man/man3/Tcl_ObjPrintf.3
+man/man3/Tcl_ObjSetVar2.3
+man/man3/Tcl_ObjectContextInvokeNext.3
+man/man3/Tcl_ObjectContextIsFiltering.3
+man/man3/Tcl_ObjectContextMethod.3
+man/man3/Tcl_ObjectContextObject.3
+man/man3/Tcl_ObjectContextSkippedArgs.3
+man/man3/Tcl_ObjectDeleted.3
+man/man3/Tcl_ObjectGetMetadata.3
+man/man3/Tcl_ObjectGetMethodNameMapper.3
+man/man3/Tcl_ObjectSetMetadata.3
+man/man3/Tcl_ObjectSetMethodNameMapper.3
+man/man3/Tcl_OpenCommandChannel.3
+man/man3/Tcl_OpenFileChannel.3
+man/man3/Tcl_OpenTcpClient.3
+man/man3/Tcl_OpenTcpServer.3
+man/man3/Tcl_OutputBuffered.3
+man/man3/Tcl_Panic.3
+man/man3/Tcl_PanicVA.3
+man/man3/Tcl_ParseArgsObjv.3
+man/man3/Tcl_ParseBraces.3
+man/man3/Tcl_ParseCommand.3
+man/man3/Tcl_ParseExpr.3
+man/man3/Tcl_ParseQuotedString.3
+man/man3/Tcl_ParseVar.3
+man/man3/Tcl_ParseVarName.3
+man/man3/Tcl_PkgPresent.3
+man/man3/Tcl_PkgPresentEx.3
+man/man3/Tcl_PkgProvide.3
+man/man3/Tcl_PkgProvideEx.3
+man/man3/Tcl_PkgRequire.3
+man/man3/Tcl_PkgRequireEx.3
+man/man3/Tcl_PkgRequireProc.3
+man/man3/Tcl_PosixError.3
+man/man3/Tcl_Preserve.3
+man/man3/Tcl_PrintDouble.3
+man/man3/Tcl_PutEnv.3
+man/man3/Tcl_QueryTimeProc.3
+man/man3/Tcl_QueueEvent.3
+man/man3/Tcl_Read.3
+man/man3/Tcl_ReadChars.3
+man/man3/Tcl_ReadRaw.3
+man/man3/Tcl_Realloc.3
+man/man3/Tcl_ReapDetachedProcs.3
+man/man3/Tcl_RecordAndEval.3
+man/man3/Tcl_RecordAndEvalObj.3
+man/man3/Tcl_RegExpCompile.3
+man/man3/Tcl_RegExpExec.3
+man/man3/Tcl_RegExpExecObj.3
+man/man3/Tcl_RegExpGetInfo.3
+man/man3/Tcl_RegExpMatch.3
+man/man3/Tcl_RegExpMatchObj.3
+man/man3/Tcl_RegExpRange.3
+man/man3/Tcl_RegisterChannel.3
+man/man3/Tcl_RegisterConfig.3
+man/man3/Tcl_RegisterObjType.3
+man/man3/Tcl_Release.3
+man/man3/Tcl_ResetResult.3
+man/man3/Tcl_RestoreInterpState.3
+man/man3/Tcl_RestoreResult.3
+man/man3/Tcl_SaveInterpState.3
+man/man3/Tcl_SaveResult.3
+man/man3/Tcl_ScanCountedElement.3
+man/man3/Tcl_ScanElement.3
+man/man3/Tcl_Seek.3
+man/man3/Tcl_ServiceAll.3
+man/man3/Tcl_ServiceEvent.3
+man/man3/Tcl_ServiceModeHook.3
+man/man3/Tcl_SetAssocData.3
+man/man3/Tcl_SetBignumObj.3
+man/man3/Tcl_SetBooleanObj.3
+man/man3/Tcl_SetByteArrayLength.3
+man/man3/Tcl_SetByteArrayObj.3
+man/man3/Tcl_SetChannelBufferSize.3
+man/man3/Tcl_SetChannelError.3
+man/man3/Tcl_SetChannelErrorInterp.3
+man/man3/Tcl_SetChannelOption.3
+man/man3/Tcl_SetCommandInfo.3
+man/man3/Tcl_SetCommandInfoFromToken.3
+man/man3/Tcl_SetDefaultEncodingDir.3
+man/man3/Tcl_SetDoubleObj.3
+man/man3/Tcl_SetEncodingSearchPath.3
+man/man3/Tcl_SetEnsembleFlags.3
+man/man3/Tcl_SetEnsembleMappingDict.3
+man/man3/Tcl_SetEnsembleParameterList.3
+man/man3/Tcl_SetEnsembleSubcommandList.3
+man/man3/Tcl_SetEnsembleUnknownHandler.3
+man/man3/Tcl_SetErrno.3
+man/man3/Tcl_SetErrorCode.3
+man/man3/Tcl_SetErrorCodeVA.3
+man/man3/Tcl_SetErrorLine.3
+man/man3/Tcl_SetExitProc.3
+man/man3/Tcl_SetHashValue.3
+man/man3/Tcl_SetIntObj.3
+man/man3/Tcl_SetListObj.3
+man/man3/Tcl_SetLongObj.3
+man/man3/Tcl_SetMainLoop.3
+man/man3/Tcl_SetMaxBlockTime.3
+man/man3/Tcl_SetNamespaceUnknownHandler.3
+man/man3/Tcl_SetNotifier.3
+man/man3/Tcl_SetObjErrorCode.3
+man/man3/Tcl_SetObjLength.3
+man/man3/Tcl_SetObjResult.3
+man/man3/Tcl_SetPanicProc.3
+man/man3/Tcl_SetRecursionLimit.3
+man/man3/Tcl_SetResult.3
+man/man3/Tcl_SetReturnOptions.3
+man/man3/Tcl_SetServiceMode.3
+man/man3/Tcl_SetStartupScript.3
+man/man3/Tcl_SetStdChannel.3
+man/man3/Tcl_SetStringObj.3
+man/man3/Tcl_SetSystemEncoding.3
+man/man3/Tcl_SetTimeProc.3
+man/man3/Tcl_SetTimer.3
+man/man3/Tcl_SetUnicodeObj.3
+man/man3/Tcl_SetVar.3
+man/man3/Tcl_SetVar2.3
+man/man3/Tcl_SetVar2Ex.3
+man/man3/Tcl_SetWideIntObj.3
+man/man3/Tcl_SignalId.3
+man/man3/Tcl_SignalMsg.3
+man/man3/Tcl_Sleep.3
+man/man3/Tcl_SourceRCFile.3
+man/man3/Tcl_SpliceChannel.3
+man/man3/Tcl_SplitList.3
+man/man3/Tcl_SplitPath.3
+man/man3/Tcl_StackChannel.3
+man/man3/Tcl_StandardChannels.3
+man/man3/Tcl_Stat.3
+man/man3/Tcl_StaticPackage.3
+man/man3/Tcl_StringCaseMatch.3
+man/man3/Tcl_StringMatch.3
+man/man3/Tcl_SubstObj.3
+man/man3/Tcl_TakeBignumFromObj.3
+man/man3/Tcl_Tell.3
+man/man3/Tcl_ThreadAlert.3
+man/man3/Tcl_ThreadQueueEvent.3
+man/man3/Tcl_TraceCommand.3
+man/man3/Tcl_TraceVar.3
+man/man3/Tcl_TraceVar2.3
+man/man3/Tcl_TransferResult.3
+man/man3/Tcl_TranslateFileName.3
+man/man3/Tcl_TruncateChannel.3
+man/man3/Tcl_Ungets.3
+man/man3/Tcl_UniChar.3
+man/man3/Tcl_UniCharAtIndex.3
+man/man3/Tcl_UniCharCaseMatch.3
+man/man3/Tcl_UniCharIsAlnum.3
+man/man3/Tcl_UniCharIsAlpha.3
+man/man3/Tcl_UniCharIsControl.3
+man/man3/Tcl_UniCharIsDigit.3
+man/man3/Tcl_UniCharIsGraph.3
+man/man3/Tcl_UniCharIsLower.3
+man/man3/Tcl_UniCharIsPrint.3
+man/man3/Tcl_UniCharIsPunct.3
+man/man3/Tcl_UniCharIsSpace.3
+man/man3/Tcl_UniCharIsUpper.3
+man/man3/Tcl_UniCharIsWordChar.3
+man/man3/Tcl_UniCharLen.3
+man/man3/Tcl_UniCharNcasecmp.3
+man/man3/Tcl_UniCharNcmp.3
+man/man3/Tcl_UniCharToLower.3
+man/man3/Tcl_UniCharToTitle.3
+man/man3/Tcl_UniCharToUpper.3
+man/man3/Tcl_UniCharToUtf.3
+man/man3/Tcl_UniCharToUtfDString.3
+man/man3/Tcl_UnlinkVar.3
+man/man3/Tcl_UnregisterChannel.3
+man/man3/Tcl_UnsetVar.3
+man/man3/Tcl_UnsetVar2.3
+man/man3/Tcl_UnstackChannel.3
+man/man3/Tcl_UntraceCommand.3
+man/man3/Tcl_UntraceVar.3
+man/man3/Tcl_UntraceVar2.3
+man/man3/Tcl_UpVar.3
+man/man3/Tcl_UpVar2.3
+man/man3/Tcl_UpdateLinkedVar.3
+man/man3/Tcl_UtfAtIndex.3
+man/man3/Tcl_UtfBackslash.3
+man/man3/Tcl_UtfCharComplete.3
+man/man3/Tcl_UtfFindFirst.3
+man/man3/Tcl_UtfFindLast.3
+man/man3/Tcl_UtfNcasecmp.3
+man/man3/Tcl_UtfNcmp.3
+man/man3/Tcl_UtfNext.3
+man/man3/Tcl_UtfPrev.3
+man/man3/Tcl_UtfToExternal.3
+man/man3/Tcl_UtfToExternalDString.3
+man/man3/Tcl_UtfToLower.3
+man/man3/Tcl_UtfToTitle.3
+man/man3/Tcl_UtfToUniChar.3
+man/man3/Tcl_UtfToUniCharDString.3
+man/man3/Tcl_UtfToUpper.3
+man/man3/Tcl_ValidateAllMemory.3
+man/man3/Tcl_VarEval.3
+man/man3/Tcl_VarEvalVA.3
+man/man3/Tcl_VarTraceInfo.3
+man/man3/Tcl_VarTraceInfo2.3
+man/man3/Tcl_WaitForEvent.3
+man/man3/Tcl_WaitPid.3
+man/man3/Tcl_WinTCharToUtf.3
+man/man3/Tcl_WinUtfToTChar.3
+man/man3/Tcl_Write.3
+man/man3/Tcl_WriteChars.3
+man/man3/Tcl_WriteObj.3
+man/man3/Tcl_WriteRaw.3
+man/man3/Tcl_WrongNumArgs.3
+man/man3/Tcl_ZlibAdler32.3
+man/man3/Tcl_ZlibCRC32.3
+man/man3/Tcl_ZlibDeflate.3
+man/man3/Tcl_ZlibInflate.3
+man/man3/Tcl_ZlibStreamChecksum.3
+man/man3/Tcl_ZlibStreamClose.3
+man/man3/Tcl_ZlibStreamEof.3
+man/man3/Tcl_ZlibStreamGet.3
+man/man3/Tcl_ZlibStreamGetCommandName.3
+man/man3/Tcl_ZlibStreamInit.3
+man/man3/Tcl_ZlibStreamPut.3
+man/man3/Tdbc_Init.3
+man/man3/attemptckalloc.3
+man/man3/attemptckrealloc.3
+man/man3/ckalloc.3
+man/man3/ckfree.3
+man/man3/ckrealloc.3
+man/mann/Tcl.n
+man/mann/after.n
+man/mann/append.n
+man/mann/apply.n
+man/mann/argc.n
+man/mann/argv.n
+man/mann/argv0.n
+man/mann/array.n
+man/mann/auto_execok.n
+man/mann/auto_import.n
+man/mann/auto_load.n
+man/mann/auto_mkindex.n
+man/mann/auto_path.n
+man/mann/auto_qualify.n
+man/mann/auto_reset.n
+man/mann/bgerror.n
+man/mann/binary.n
+man/mann/body.n
+man/mann/break.n
+man/mann/case.n
+man/mann/catch.n
+man/mann/cd.n
+man/mann/chan.n
+man/mann/class.n
+man/mann/clock.n
+man/mann/close.n
+man/mann/code.n
+man/mann/concat.n
+man/mann/configbody.n
+man/mann/continue.n
+man/mann/coroutine.n
+man/mann/dde.n
+man/mann/delete.n
+man/mann/dict.n
+man/mann/encoding.n
+man/mann/ensemble.n
+man/mann/env.n
+man/mann/eof.n
+man/mann/error.n
+man/mann/errorCode.n
+man/mann/errorInfo.n
+man/mann/eval.n
+man/mann/exec.n
+man/mann/exit.n
+man/mann/expr.n
+man/mann/fblocked.n
+man/mann/fconfigure.n
+man/mann/fcopy.n
+man/mann/file.n
+man/mann/fileevent.n
+man/mann/filename.n
+man/mann/find.n
+man/mann/flush.n
+man/mann/for.n
+man/mann/foreach.n
+man/mann/format.n
+man/mann/gets.n
+man/mann/glob.n
+man/mann/global.n
+man/mann/history.n
+man/mann/http.n
+man/mann/if.n
+man/mann/incr.n
+man/mann/info.n
+man/mann/interp.n
+man/mann/is.n
+man/mann/itcl.n
+man/mann/itclcomponent.n
+man/mann/itcldelegate.n
+man/mann/itclextendedclass.n
+man/mann/itcloption.n
+man/mann/itclvars.n
+man/mann/itclwidget.n
+man/mann/join.n
+man/mann/lappend.n
+man/mann/lassign.n
+man/mann/lindex.n
+man/mann/linsert.n
+man/mann/list.n
+man/mann/llength.n
+man/mann/lmap.n
+man/mann/load.n
+man/mann/local.n
+man/mann/lrange.n
+man/mann/lrepeat.n
+man/mann/lreplace.n
+man/mann/lreverse.n
+man/mann/lsearch.n
+man/mann/lset.n
+man/mann/lsort.n
+man/mann/mathfunc.n
+man/mann/mathop.n
+man/mann/memory.n
+man/mann/msgcat.n
+man/mann/my.n
+man/mann/namespace.n
+man/mann/next.n
+man/mann/nextto.n
+man/mann/oo_class.n
+man/mann/oo_copy.n
+man/mann/oo_define.n
+man/mann/oo_objdefine.n
+man/mann/oo_object.n
+man/mann/open.n
+man/mann/package.n
+man/mann/parray.n
+man/mann/pid.n
+man/mann/pkg_create.n
+man/mann/pkg_mkIndex.n
+man/mann/platform.n
+man/mann/platform_shell.n
+man/mann/proc.n
+man/mann/puts.n
+man/mann/pwd.n
+man/mann/re_syntax.n
+man/mann/read.n
+man/mann/refchan.n
+man/mann/regexp.n
+man/mann/registry.n
+man/mann/regsub.n
+man/mann/rename.n
+man/mann/return.n
+man/mann/safe.n
+man/mann/scan.n
+man/mann/scope.n
+man/mann/seek.n
+man/mann/self.n
+man/mann/set.n
+man/mann/socket.n
+man/mann/source.n
+man/mann/split.n
+man/mann/sqlite3.n
+man/mann/string.n
+man/mann/subst.n
+man/mann/switch.n
+man/mann/tailcall.n
+man/mann/tcl_endOfWord.n
+man/mann/tcl_findLibrary.n
+man/mann/tcl_interactive.n
+man/mann/tcl_library.n
+man/mann/tcl_nonwordchars.n
+man/mann/tcl_patchLevel.n
+man/mann/tcl_pkgPath.n
+man/mann/tcl_platform.n
+man/mann/tcl_precision.n
+man/mann/tcl_prefix.n
+man/mann/tcl_rcFileName.n
+man/mann/tcl_startOfNextWord.n
+man/mann/tcl_startOfPreviousWord.n
+man/mann/tcl_traceCompile.n
+man/mann/tcl_traceExec.n
+man/mann/tcl_version.n
+man/mann/tcl_wordBreakAfter.n
+man/mann/tcl_wordBreakBefore.n
+man/mann/tcl_wordchars.n
+man/mann/tcltest.n
+man/mann/tdbc.n
+man/mann/tdbc_connection.n
+man/mann/tdbc_mapSqlState.n
+man/mann/tdbc_mysql.n
+man/mann/tdbc_odbc.n
+man/mann/tdbc_resultset.n
+man/mann/tdbc_sqlite3.n
+man/mann/tdbc_statement.n
+man/mann/tdbc_tokenize.n
+man/mann/tell.n
+man/mann/thread.n
+man/mann/throw.n
+man/mann/time.n
+man/mann/tm.n
+man/mann/tpool.n
+man/mann/trace.n
+man/mann/transchan.n
+man/mann/try.n
+man/mann/tsv.n
+man/mann/ttrace.n
+man/mann/unknown.n
+man/mann/unload.n
+man/mann/unset.n
+man/mann/update.n
+man/mann/uplevel.n
+man/mann/upvar.n
+man/mann/variable.n
+man/mann/vwait.n
+man/mann/while.n
+man/mann/yield.n
+man/mann/yieldto.n
+man/mann/zlib.n
diff --git a/tcl-fossil/buildlink3.mk b/tcl-fossil/buildlink3.mk
new file mode 100644
index 0000000..fb69e56
--- /dev/null
+++ b/tcl-fossil/buildlink3.mk
@@ -0,0 +1,32 @@
+# $NetBSD: buildlink3.mk,v 1.29 2016/10/21 11:45:44 kamil Exp $
+
+BUILDLINK_TREE+=	tcl
+
+.if !defined(TCL_BUILDLINK3_MK)
+TCL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.tcl+=	tcl>=8.5.7
+BUILDLINK_ABI_DEPENDS.tcl+=	tcl>=8.6.1nb1
+BUILDLINK_PKGSRCDIR.tcl?=	../../lang/tcl
+
+BUILDLINK_FILES.tcl+=	bin/tclsh*
+#
+# Make "-ltcl" and "-ltcl8.6" resolve into "-ltcl86", so that we don't
+# need to patch so many Makefiles.
+#
+BUILDLINK_TRANSFORM+=	l:tcl:tcl86
+BUILDLINK_TRANSFORM+=	l:tcl8.6:tcl86
+
+_TOOLS_USE_PKGSRC.tclsh=	yes
+
+TCLCONFIG_SH?=		${BUILDLINK_PREFIX.tcl}/lib/tclConfig.sh
+TCLSH=			${BUILDLINK_PREFIX.tcl}/bin/tclsh
+# Bundled library
+ITCL_VERSION=		4.0.5
+TDBC_VERSION=		1.0.4
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.endif # TCL_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-tcl
diff --git a/tcl-fossil/distinfo b/tcl-fossil/distinfo
new file mode 100644
index 0000000..15bf4f8
--- /dev/null
+++ b/tcl-fossil/distinfo
@@ -0,0 +1,26 @@
+$NetBSD: distinfo,v 1.69 2016/09/03 11:58:01 adam Exp $
+
+SHA1 (tcl8.6.6-src.tar.gz) = 169dd1589cad62c9fac4257c113db245da502cd0
+RMD160 (tcl8.6.6-src.tar.gz) = 2386a69eb841f8af51c1b124f68e0b812a225cca
+SHA512 (tcl8.6.6-src.tar.gz) = b8e707470655ceef2ef385b8a2e617c1c0ebced577732d1f5e818cd7295ca25da491b6024047cae2aff754d27e00d646f830c2049b96f306ac96bc69b02da7b0
+Size (tcl8.6.6-src.tar.gz) = 9553805 bytes
+SHA1 (patch-generic_tclInt.h) = fde6a5458a138b6d61fdbab1269b1c5111a28b22
+SHA1 (patch-generic_tclPort.h) = 36ff05b22591d588952e55d0f13c2ef52e371d1e
+SHA1 (patch-generic_tclPosixStr.c) = 68da211865282fe7124cad71381658f8dfb986d6
+SHA1 (patch-pkgs_itcl4.0.5_configure) = 8c48062e1f90f3843b6adcf2b5d61fa40b80f6e2
+SHA1 (patch-pkgs_sqlite3.13.0_Makefile.in) = 1205936335cda5d413c24da33608a9bbec6a65a9
+SHA1 (patch-pkgs_sqlite3.13.0_configure) = 80a40d46ffe693ed431c10a48a82401ba7707549
+SHA1 (patch-pkgs_tdbc1.0.4_configure) = 058f0ec3a6cf506c1998a30a81364f7856d17508
+SHA1 (patch-pkgs_tdbcmysql1.0.4_configure) = e633bb54d886f72dae485c2110488bb1441c965b
+SHA1 (patch-pkgs_tdbcodbc1.0.4_configure) = 5e93d9edc663f31e714726b4e3f9f4af6221fac8
+SHA1 (patch-pkgs_tdbcpostgres1.0.4_configure) = 182a106fd8559d08bb4d8d611972473640e9838a
+SHA1 (patch-pkgs_thread2.8.0_configure) = 0dfc552a4cbce2e100c640722ec9837f02226819
+SHA1 (patch-tests_load.test) = 438695ab76e01646e49aadc01c44344a5495eabb
+SHA1 (patch-tests_pkgMkIndex.test) = 70d1042c1f4743052c5fa191fa7c4732a08e28a2
+SHA1 (patch-unix_Makefile.in) = 6fa60e07f21842e987bc20d23d4be82cba5bc905
+SHA1 (patch-unix_configure) = 497eebc6dfa614647a400c94847f5fdb82d6e361
+SHA1 (patch-unix_tclConfig.sh.in) = 341ac4f1bbfb29551dea87ade98b3b7b59652a31
+SHA1 (patch-unix_tclUnixCompat.c) = 7ffa40a1a56345f5b86cd896e8e3b0d5748d8c5e
+SHA1 (patch-unix_tclUnixFCmd.c) = e715d9419a36a8414355252bb3da0ef48b07fe4f
+SHA1 (patch-unix_tclUnixInit.c) = 50eafafdd10e35266f9fe5b73a80e7b50f393f88
+SHA1 (patch-unix_tclUnixPort.h) = f7d2e7b8912b9bff1709ac2c34aee1f4725e90ac
diff --git a/tcl-fossil/options.mk b/tcl-fossil/options.mk
new file mode 100644
index 0000000..0eaf593
--- /dev/null
+++ b/tcl-fossil/options.mk
@@ -0,0 +1,19 @@
+# $NetBSD: options.mk,v 1.3 2015/03/11 22:32:08 tnn Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.tcl
+PKG_SUPPORTED_OPTIONS=	threads debug
+PKG_SUGGESTED_OPTIONS=	threads
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdebug)
+CONFIGURE_ARGS+=	--enable-symbols=mem
+.endif
+
+.if !empty(PKG_OPTIONS:Mthreads)
+CONFIGURE_ARGS+=	--enable-threads
+.include "../../mk/pthread.buildlink3.mk"
+.else
+CONFIGURE_ARGS+=	--disable-threads
+.endif
diff --git a/tcl-fossil/patches/patch-generic_tclInt.h b/tcl-fossil/patches/patch-generic_tclInt.h
new file mode 100644
index 0000000..d07fcaf
--- /dev/null
+++ b/tcl-fossil/patches/patch-generic_tclInt.h
@@ -0,0 +1,21 @@
+$NetBSD: patch-generic_tclInt.h,v 1.2 2016/09/03 11:58:01 adam Exp $
+
+--- generic/tclInt.h.orig	2016-07-11 11:51:23.000000000 +0000
++++ generic/tclInt.h
+@@ -38,16 +38,8 @@
+ #include <stdio.h>
+ 
+ #include <ctype.h>
+-#ifdef NO_STDLIB_H
+-#   include "../compat/stdlib.h"
+-#else
+ #   include <stdlib.h>
+-#endif
+-#ifdef NO_STRING_H
+-#include "../compat/string.h"
+-#else
+ #include <string.h>
+-#endif
+ #if defined(STDC_HEADERS) || defined(__STDC__) || defined(__C99__FUNC__) \
+      || defined(__cplusplus) || defined(_MSC_VER)
+ #include <stddef.h>
diff --git a/tcl-fossil/patches/patch-generic_tclPort.h b/tcl-fossil/patches/patch-generic_tclPort.h
new file mode 100644
index 0000000..6247896
--- /dev/null
+++ b/tcl-fossil/patches/patch-generic_tclPort.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-generic_tclPort.h,v 1.2 2013/05/31 20:15:04 adam Exp $
+
+--- generic/tclPort.h.orig	2013-03-21 12:57:40.000000000 +0000
++++ generic/tclPort.h
+@@ -20,7 +20,7 @@
+ #if defined(_WIN32)
+ #   include "tclWinPort.h"
+ #else
+-#   include "tclUnixPort.h"
++#   include "../unix/tclUnixPort.h"
+ #endif
+ #include "tcl.h"
+ 
diff --git a/tcl-fossil/patches/patch-generic_tclPosixStr.c b/tcl-fossil/patches/patch-generic_tclPosixStr.c
new file mode 100644
index 0000000..fc4a439
--- /dev/null
+++ b/tcl-fossil/patches/patch-generic_tclPosixStr.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-generic_tclPosixStr.c,v 1.3 2014/01/11 14:41:05 adam Exp $
+
+Carried over from TCL 8.4
+
+--- generic/tclPosixStr.c.orig	2013-09-19 19:04:14.000000000 +0000
++++ generic/tclPosixStr.c
+@@ -344,7 +344,7 @@ Tcl_ErrnoId(void)
+ #ifdef EOTHER
+     case EOTHER: return "EOTHER";
+ #endif
+-#if defined(EOVERFLOW) && (!defined(EFBIG) || (EOVERFLOW != EFBIG)) && (!defined(EINVAL) || (EOVERFLOW != EINVAL))
++#if defined(EOVERFLOW) && (!defined(EFBIG) || (EOVERFLOW != EFBIG)) && (!defined(EINVAL) || (EOVERFLOW != EINVAL)) && (!defined(ERANGE) || (EOVERFLOW != ERANGE))
+     case EOVERFLOW: return "EOVERFLOW";
+ #endif
+ #ifdef EOWNERDEAD
+@@ -804,7 +804,7 @@ Tcl_ErrnoMsg(
+ #ifdef EOTHER
+     case EOTHER: return "other error";
+ #endif
+-#if defined(EOVERFLOW) && (!defined(EFBIG) || (EOVERFLOW != EFBIG)) && (!defined(EINVAL) || (EOVERFLOW != EINVAL))
++#if defined(EOVERFLOW) && (!defined(EFBIG) || (EOVERFLOW != EFBIG)) && (!defined(EINVAL) || (EOVERFLOW != EINVAL)) && (!defined(ERANGE) || (EOVERFLOW != ERANGE))
+     case EOVERFLOW: return "file too big";
+ #endif
+ #ifdef EOWNERDEAD
diff --git a/tcl-fossil/patches/patch-pkgs_itcl4.0.5_configure b/tcl-fossil/patches/patch-pkgs_itcl4.0.5_configure
new file mode 100644
index 0000000..d9451e8
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_itcl4.0.5_configure
@@ -0,0 +1,54 @@
+$NetBSD: patch-pkgs_itcl4.0.5_configure,v 1.1 2016/09/03 11:58:01 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/itcl4.0.5/configure.orig	2016-07-12 15:29:40.000000000 +0000
++++ pkgs/itcl4.0.5/configure
+@@ -7443,8 +7443,7 @@ fi
+ 		    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7464,8 +7463,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7487,7 +7484,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7509,10 +7506,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -8123,7 +8116,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-pkgs_sqlite3.13.0_Makefile.in b/tcl-fossil/patches/patch-pkgs_sqlite3.13.0_Makefile.in
new file mode 100644
index 0000000..cf2e2b9
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_sqlite3.13.0_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-pkgs_sqlite3.13.0_Makefile.in,v 1.1 2016/09/03 11:58:01 adam Exp $
+
+Fix building with system sqlite3.
+
+--- pkgs/sqlite3.13.0/Makefile.in.orig	2016-01-07 15:38:22.000000000 +0000
++++ pkgs/sqlite3.13.0/Makefile.in
+@@ -150,7 +150,7 @@ SHARED_BUILD	= @SHARED_BUILD@
+ INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@ -I$(srcdir)/..
+ #INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
+ 
+-PKG_CFLAGS	= @PKG_CFLAGS@ -DSQLITE_API=MODULE_SCOPE -DSQLITE_EXTERN=
++PKG_CFLAGS	= @PKG_CFLAGS@
+ 
+ # TCL_DEFS is not strictly need here, but if you remove it, then you
+ # must make sure that configure.in checks for the necessary components
diff --git a/tcl-fossil/patches/patch-pkgs_sqlite3.13.0_configure b/tcl-fossil/patches/patch-pkgs_sqlite3.13.0_configure
new file mode 100644
index 0000000..20c15f8
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_sqlite3.13.0_configure
@@ -0,0 +1,53 @@
+$NetBSD: patch-pkgs_sqlite3.13.0_configure,v 1.1 2016/09/03 11:58:01 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/sqlite3.13.0/configure.orig	2016-05-31 15:48:11.000000000 +0000
++++ pkgs/sqlite3.13.0/configure
+@@ -7290,7 +7290,7 @@ fi
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+ 		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7310,8 +7310,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7333,7 +7331,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7356,10 +7354,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -7970,7 +7964,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-pkgs_tdbc1.0.4_configure b/tcl-fossil/patches/patch-pkgs_tdbc1.0.4_configure
new file mode 100644
index 0000000..0721ddc
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_tdbc1.0.4_configure
@@ -0,0 +1,54 @@
+$NetBSD: patch-pkgs_tdbc1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/tdbc1.0.4/configure.orig	2016-01-28 18:05:47.000000000 +0000
++++ pkgs/tdbc1.0.4/configure
+@@ -7518,8 +7518,7 @@ fi
+ 		    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7539,8 +7538,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7562,7 +7559,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7584,10 +7581,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -8198,7 +8191,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-pkgs_tdbcmysql1.0.4_configure b/tcl-fossil/patches/patch-pkgs_tdbcmysql1.0.4_configure
new file mode 100644
index 0000000..581be9c
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_tdbcmysql1.0.4_configure
@@ -0,0 +1,54 @@
+$NetBSD: patch-pkgs_tdbcmysql1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/tdbcmysql1.0.4/configure.orig	2016-01-28 18:06:23.000000000 +0000
++++ pkgs/tdbcmysql1.0.4/configure
+@@ -7864,8 +7864,7 @@ fi
+ 		    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7885,8 +7884,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7908,7 +7905,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7930,10 +7927,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -8544,7 +8537,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-pkgs_tdbcodbc1.0.4_configure b/tcl-fossil/patches/patch-pkgs_tdbcodbc1.0.4_configure
new file mode 100644
index 0000000..68382d4
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_tdbcodbc1.0.4_configure
@@ -0,0 +1,54 @@
+$NetBSD: patch-pkgs_tdbcodbc1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/tdbcodbc1.0.4/configure.orig	2016-01-28 18:06:52.000000000 +0000
++++ pkgs/tdbcodbc1.0.4/configure
+@@ -7864,8 +7864,7 @@ fi
+ 		    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7885,8 +7884,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7908,7 +7905,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7930,10 +7927,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -8544,7 +8537,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-pkgs_tdbcpostgres1.0.4_configure b/tcl-fossil/patches/patch-pkgs_tdbcpostgres1.0.4_configure
new file mode 100644
index 0000000..cc7c20b
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_tdbcpostgres1.0.4_configure
@@ -0,0 +1,54 @@
+$NetBSD: patch-pkgs_tdbcpostgres1.0.4_configure,v 1.1 2016/03/06 11:47:49 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/tdbcpostgres1.0.4/configure.orig	2016-01-28 18:07:18.000000000 +0000
++++ pkgs/tdbcpostgres1.0.4/configure
+@@ -7864,8 +7864,7 @@ fi
+ 		    CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7885,8 +7884,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7908,7 +7905,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7930,10 +7927,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -8544,7 +8537,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-pkgs_thread2.8.0_configure b/tcl-fossil/patches/patch-pkgs_thread2.8.0_configure
new file mode 100644
index 0000000..dab1b52
--- /dev/null
+++ b/tcl-fossil/patches/patch-pkgs_thread2.8.0_configure
@@ -0,0 +1,53 @@
+$NetBSD: patch-pkgs_thread2.8.0_configure,v 1.1 2016/09/03 11:58:01 adam Exp $
+
+Add support for DragonFly.
+
+--- pkgs/thread2.8.0/configure.orig	2016-07-05 13:37:40.000000000 +0000
++++ pkgs/thread2.8.0/configure
+@@ -7520,7 +7520,7 @@ fi
+ fi
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+ 		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7540,8 +7540,6 @@ fi
+ 
+ fi
+ 	    # OpenBSD doesn't do version numbers with dots.
+-	    UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-	    TCL_LIB_VERSIONS_OK=nodots
+ 	    ;;
+ 	NetBSD-*)
+ 	    # NetBSD has ELF and can use 'cc -shared' to build shared libs
+@@ -7563,7 +7561,7 @@ fi
+ 
+ fi
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7585,10 +7583,6 @@ fi
+ 	    case $system in
+ 	    FreeBSD-3.*)
+ 		# Version numbers are dot-stripped by system policy.
+-		TCL_TRIM_DOTS=`echo ${PACKAGE_VERSION} | tr -d .`
+-		UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+-		TCL_LIB_VERSIONS_OK=nodots
+ 		;;
+ 	    esac
+ 	    ;;
+@@ -8199,7 +8193,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    windows) ;;
diff --git a/tcl-fossil/patches/patch-tests_load.test b/tcl-fossil/patches/patch-tests_load.test
new file mode 100644
index 0000000..6492453
--- /dev/null
+++ b/tcl-fossil/patches/patch-tests_load.test
@@ -0,0 +1,15 @@
+$NetBSD: patch-tests_load.test,v 1.1 2012/08/21 21:31:47 marino Exp $
+
+Carried over from TCL 8.4
+
+--- tests/load.test.orig	2012-07-16 11:57:06.000000000 +0000
++++ tests/load.test
+@@ -21,7 +21,7 @@ if {![info exists ext]} {
+     set ext [info sharedlibextension]
+ }
+ # Tests require the existence of one of the DLLs in the dltest directory.
+-set testDir [file join [file dirname [info nameofexecutable]] dltest]
++set testDir [file join [file dirname [info nameofexecutable]] .. dltest .libs ]
+ set x [file join $testDir pkga$ext]
+ set dll "[file tail $x]Required"
+ testConstraint $dll [file readable $x]
diff --git a/tcl-fossil/patches/patch-tests_pkgMkIndex.test b/tcl-fossil/patches/patch-tests_pkgMkIndex.test
new file mode 100644
index 0000000..5734816
--- /dev/null
+++ b/tcl-fossil/patches/patch-tests_pkgMkIndex.test
@@ -0,0 +1,33 @@
+$NetBSD: patch-tests_pkgMkIndex.test,v 1.1 2012/08/21 21:31:47 marino Exp $
+
+Carried over from TCL 8.4
+
+--- tests/pkgMkIndex.test.orig	2012-07-16 11:57:06.000000000 +0000
++++ tests/pkgMkIndex.test
+@@ -557,7 +557,7 @@ removeFile [file join pkg circ2.tcl]
+ removeFile [file join pkg circ3.tcl]
+ 
+ # Some tests require the existence of one of the DLLs in the dltest directory
+-set x [file join [file dirname [info nameofexecutable]] dltest \
++set x [file join [file dirname [info nameofexecutable]] .. dltest .libs \
+ 	pkga[info sharedlibextension]]
+ set dll "[file tail $x]Required"
+ testConstraint $dll [file exists $x]
+@@ -570,7 +570,7 @@ proc pkga_neq { x } {
+     return [expr {! [pkgq_eq $x]}]
+ }
+ } [file join pkg pkga.tcl]
+-    file copy -force $x $fullPkgPath
++    eval file copy -force [glob "$x*"] $fullPkgPath
+ }
+ testConstraint exec [llength [info commands ::exec]]
+ 
+@@ -596,7 +596,7 @@ test pkgMkIndex-10.2 {package in DLL hid
+ } {0 {}}
+ 
+ if {[testConstraint $dll]} {
+-    file delete -force [file join $fullPkgPath [file tail $x]]
++    eval file delete -force [global [file join $fullPkgPath [file tail "$x*"] ] ]
+     removeFile [file join pkg pkga.tcl]
+ }
+ 
diff --git a/tcl-fossil/patches/patch-unix_Makefile.in b/tcl-fossil/patches/patch-unix_Makefile.in
new file mode 100644
index 0000000..32d6859
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_Makefile.in
@@ -0,0 +1,161 @@
+$NetBSD: patch-unix_Makefile.in,v 1.11 2016/09/03 11:58:01 adam Exp $
+
+Honour LDFLAGS.
+
+--- unix/Makefile.in.orig	2016-07-26 14:07:18.000000000 +0000
++++ unix/Makefile.in
+@@ -8,6 +8,7 @@ VERSION 		= @TCL_VERSION@
+ MAJOR_VERSION		= @TCL_MAJOR_VERSION@
+ MINOR_VERSION		= @TCL_MINOR_VERSION@
+ PATCH_LEVEL		= @TCL_PATCH_LEVEL@
++SHLIB_VERSION		= @SHLIB_VERSION@
+ 
+ #--------------------------------------------------------------------------
+ # Things you can change to personalize the Makefile for your own site (you can
+@@ -54,6 +55,8 @@ SCRIPT_INSTALL_DIR	= $(INSTALL_ROOT)$(TC
+ 
+ # Directory in which to install the include file tcl.h:
+ INCLUDE_INSTALL_DIR	= $(INSTALL_ROOT)$(includedir)
++UNIX_INCLUDE_INSTALL_DIR    = $(INCLUDE_INSTALL_DIR)/tcl/unix
++GENERIC_INCLUDE_INSTALL_DIR = $(INCLUDE_INSTALL_DIR)/tcl/generic
+ 
+ # Path to the private tcl header dir:
+ PRIVATE_INCLUDE_DIR	= @PRIVATE_INCLUDE_DIR@
+@@ -103,7 +106,7 @@ CFLAGS_OPTIMIZE		= @CFLAGS_OPTIMIZE@
+ #CFLAGS			= $(CFLAGS_DEBUG)
+ #CFLAGS			= $(CFLAGS_OPTIMIZE)
+ #CFLAGS			= $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE)
+-CFLAGS			= @CFLAGS_DEFAULT@ @CFLAGS@
++CFLAGS			+= @CFLAGS_DEFAULT@ @CFLAGS@
+ 
+ # Flags to pass to the linker
+ LDFLAGS_DEBUG		= @LDFLAGS_DEBUG@
+@@ -189,7 +192,7 @@ DLTEST_TARGETS		= dltest.marker
+ # run-time. The first symbol is for use when creating a binary with cc, and
+ # the second is for use when running ld directly.
+ CC_SEARCH_FLAGS	= @CC_SEARCH_FLAGS@
+-LD_SEARCH_FLAGS	= @LD_SEARCH_FLAGS@
++LD_SEARCH_FLAGS	= @LD_SEARCH_FLAGS@ @LDFLAGS@
+ 
+ # The following symbol is defined to "$(DLTEST_TARGETS)" if dynamic loading is
+ # available; this causes everything in the "dltest" subdirectory to be built
+@@ -200,6 +203,7 @@ BUILD_DLTEST		= @BUILD_DLTEST@
+ #BUILD_DLTEST		=
+ 
+ TCL_LIB_FILE		= @TCL_LIB_FILE@
++TCL_LIB_A_FILE		= ${TCL_LIB_FILE:@SHLIB_SUFFIX@=.a}
+ #TCL_LIB_FILE		= libtcl.a
+ 
+ # Generic lib name used in rules that apply to tcl and tk
+@@ -614,7 +618,7 @@ SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $
+ 
+ all: binaries libraries doc packages
+ 
+-binaries: ${LIB_FILE} ${TCL_EXE}
++binaries: ${LIB_FILE} ${TCL_EXE} ${TCL_LIB_A_FILE}
+ 
+ libraries:
+ 
+@@ -633,6 +637,11 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS}
+ 	rm -f $@
+ 	@MAKE_STUB_LIB@
+ 
++${TCL_LIB_A_FILE}: ${OBJS}
++	rm -rf $@
++	ar cr $@ ${OBJS}
++	$(RANLIB) $@
++
+ # Make target which outputs the list of the .o contained in the Tcl lib useful
+ # to build a single big shared library containing Tcl and other extensions.
+ # Used for the Tcl Plugin.  -- dl
+@@ -795,9 +804,16 @@ install-binaries: binaries
+ 	    done;
+ 	@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
+ 	@@INSTALL_LIB@
+-	@chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
++	@cd "$(DLL_INSTALL_DIR)" && if test "$(SHLIB_SUFFIX)" = ".dylib"; then \
++		ln -sf libtcl$(MAJOR_VERSION)$(MINOR_VERSION).$(SHLIB_VERSION)$(SHLIB_SUFFIX) $(LIB_FILE) ; \
++	else \
++		ln -sf libtcl$(MAJOR_VERSION)$(MINOR_VERSION)$(SHLIB_SUFFIX).$(SHLIB_VERSION) $(LIB_FILE) ; \
++	fi
++	@echo "Installing ${TCL_LIB_A_FILE} to $(DLL_INSTALL_DIR)/"
++	@$(INSTALL_DATA) ${TCL_LIB_A_FILE} $(DLL_INSTALL_DIR)/${TCL_LIB_A_FILE}
+ 	@echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
+ 	@$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
++	@cd "$(BIN_INSTALL_DIR)" && ln -sf tclsh$(VERSION)${EXE_SUFFIX} tclsh
+ 	@echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"
+ 	@$(INSTALL_DATA) tclConfig.sh "$(CONFIG_INSTALL_DIR)/tclConfig.sh"
+ 	@echo "Installing tclooConfig.sh to $(CONFIG_INSTALL_DIR)/"
+@@ -821,7 +837,7 @@ install-libraries: libraries
+ 		else true; \
+ 		fi; \
+ 	    done;
+-	@for i in opt0.4 http1.0 encoding ../tcl8 ../tcl8/8.4  ../tcl8/8.4/platform ../tcl8/8.5 ../tcl8/8.6; \
++	@for i in opt0.4 http1.0 encoding; \
+ 	    do \
+ 	    if [ ! -d "$(SCRIPT_INSTALL_DIR)"/$$i ] ; then \
+ 		echo "Making directory $(SCRIPT_INSTALL_DIR)/$$i"; \
+@@ -842,6 +858,8 @@ install-libraries: libraries
+ 	    done;
+ 	@echo "Installing package http 2.8.9 as a Tcl Module";
+ 	@$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.6/http-2.8.9.tm;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/http/http.tcl "$(SCRIPT_INSTALL_DIR)"/http/http.tcl;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/http/pkgIndex.tcl "$(SCRIPT_INSTALL_DIR)"/http/pkgIndex.tcl;
+ 	@echo "Installing package opt0.4 files to $(SCRIPT_INSTALL_DIR)/opt0.4/";
+ 	@for i in $(TOP_DIR)/library/opt/*.tcl ; \
+ 	    do \
+@@ -849,13 +867,21 @@ install-libraries: libraries
+ 	    done;
+ 	@echo "Installing package msgcat 1.6.0 as a Tcl Module";
+ 	@$(INSTALL_DATA) $(TOP_DIR)/library/msgcat/msgcat.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.5/msgcat-1.6.0.tm;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/msgcat/msgcat.tcl "$(SCRIPT_INSTALL_DIR)"/msgcat1.6/msgcat.tcl;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/msgcat/pkgIndex.tcl "$(SCRIPT_INSTALL_DIR)"/msgcat1.6/pkgIndex.tcl;
+ 	@echo "Installing package tcltest 2.4.0 as a Tcl Module";
+ 	@$(INSTALL_DATA) $(TOP_DIR)/library/tcltest/tcltest.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.5/tcltest-2.4.0.tm;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/tcltest/tcltest.tcl "$(SCRIPT_INSTALL_DIR)"/tcltest2.4/tcltest.tcl;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/tcltest/pkgIndex.tcl "$(SCRIPT_INSTALL_DIR)"/tcltest2.4/pkgIndex.tcl;
+ 
+ 	@echo "Installing package platform 1.0.14 as a Tcl Module";
+ 	@$(INSTALL_DATA) $(TOP_DIR)/library/platform/platform.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.4/platform-1.0.14.tm;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/platform/platform.tcl "$(SCRIPT_INSTALL_DIR)"/platform1.0/platform.tcl;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/platform/pkgIndex.tcl "$(SCRIPT_INSTALL_DIR)"/platform1.0/pkgIndex.tcl;
+ 	@echo "Installing package platform::shell 1.1.4 as a Tcl Module";
+ 	@$(INSTALL_DATA) $(TOP_DIR)/library/platform/shell.tcl "$(SCRIPT_INSTALL_DIR)"/../tcl8/8.4/platform/shell-1.1.4.tm;
++	@$(INSTALL_DATA) $(TOP_DIR)/library/platform/shell.tcl "$(SCRIPT_INSTALL_DIR)"/shell1.1/shell.tcl
++	@$(INSTALL_DATA) $(TOP_DIR)/library/platform/pkgIndex.tcl "$(SCRIPT_INSTALL_DIR)"/shell1.1/pkgIndex.tcl
+ 
+ 	@echo "Installing encoding files to $(SCRIPT_INSTALL_DIR)/encoding/";
+ 	@for i in $(TOP_DIR)/library/encoding/*.enc ; do \
+@@ -940,7 +966,7 @@ install-doc: doc
+ 	done
+ 
+ install-headers:
+-	@for i in "$(INCLUDE_INSTALL_DIR)"; \
++	@for i in "$(INCLUDE_INSTALL_DIR)" "$(GENERIC_INCLUDE_INSTALL_DIR)" "$(UNIX_INCLUDE_INSTALL_DIR)"; \
+ 	    do \
+ 	    if [ ! -d "$$i" ] ; then \
+ 		echo "Making directory $$i"; \
+@@ -949,13 +975,17 @@ install-headers:
+ 		fi; \
+ 	    done;
+ 	@echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";
+-	@for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \
+-		$(GENERIC_DIR)/tclOO.h $(GENERIC_DIR)/tclOODecls.h \
+-		$(GENERIC_DIR)/tclPlatDecls.h \
+-		$(GENERIC_DIR)/tclTomMath.h \
+-		$(GENERIC_DIR)/tclTomMathDecls.h ; \
++	@for i in $(GENERIC_DIR)/*.h ; \
++	    do \
++	    $(INSTALL_DATA) $$i "$(GENERIC_INCLUDE_INSTALL_DIR)"; \
++	    done;
++	@for i in $(UNIX_DIR)/*.h ; \
++	    do \
++	    $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"; \
++	    done;
++	@for i in tcl.h tclDecls.h tclOO.h tclOODecls.h tclPlatDecls.h; \
+ 	    do \
+-	    $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \
++	    cd "$(INCLUDE_INSTALL_DIR)" && ln -sf tcl/generic/$$i $$i; \
+ 	    done;
+ 
+ # Optional target to install private headers
diff --git a/tcl-fossil/patches/patch-unix_configure b/tcl-fossil/patches/patch-unix_configure
new file mode 100644
index 0000000..5c9c79a
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_configure
@@ -0,0 +1,205 @@
+$NetBSD: patch-unix_configure,v 1.9 2016/03/06 11:47:49 adam Exp $
+
+--- unix/configure.orig	2016-03-01 01:59:35.000000000 +0000
++++ unix/configure
+@@ -6837,12 +6837,12 @@ fi
+ 	    LD_SEARCH_FLAGS=""
+ 	    ;;
+ 	BSD/OS-4.*)
+-	    SHLIB_CFLAGS="-export-dynamic -fPIC"
++	    SHLIB_CFLAGS="-Wl,--export-dynamic -fPIC"
+ 	    SHLIB_LD='${CC} -shared'
+ 	    SHLIB_SUFFIX=".so"
+ 	    DL_OBJS="tclLoadDl.o"
+ 	    DL_LIBS="-ldl"
+-	    LDFLAGS="$LDFLAGS -export-dynamic"
++	    LDFLAGS="$LDFLAGS --export-dynamic"
+ 	    CC_SEARCH_FLAGS=""
+ 	    LD_SEARCH_FLAGS=""
+ 	    ;;
+@@ -7513,7 +7513,7 @@ fi
+ 	    CC_SEARCH_FLAGS=""
+ 	    LD_SEARCH_FLAGS=""
+ 	    ;;
+-	OpenBSD-*)
++	OpenBSD-*|MirBSD-*)
+ 	    arch=`arch -s`
+ 	    case "$arch" in
+ 	    vax)
+@@ -7543,7 +7543,7 @@ fi
+ 
+ 		LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+ 		SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}'
+-		LDFLAGS="-Wl,-export-dynamic"
++		LDFLAGS="-Wl,--export-dynamic"
+ 		;;
+ 	    esac
+ 	    case "$arch" in
+@@ -7577,7 +7577,7 @@ fi
+ 	    SHLIB_SUFFIX=".so"
+ 	    DL_OBJS="tclLoadDl.o"
+ 	    DL_LIBS=""
+-	    LDFLAGS="$LDFLAGS -export-dynamic"
++	    LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+ 	    if test $doRpath = yes; then
+ 
+ 		CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+@@ -7594,7 +7594,7 @@ fi
+ fi
+ 
+ 	    ;;
+-	FreeBSD-*)
++	FreeBSD-*|DragonFly-*)
+ 	    # This configuration from FreeBSD Ports.
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD="${CC} -shared"
+@@ -7628,7 +7628,6 @@ fi
+ 	    esac
+ 	    ;;
+ 	Darwin-*)
+-	    CFLAGS_OPTIMIZE="-Os"
+ 	    SHLIB_CFLAGS="-fno-common"
+ 	    # To avoid discrepancies between what headers configure sees during
+ 	    # preprocessing tests and compiling tests, move any -isysroot and
+@@ -8802,7 +8801,7 @@ fi
+ 	    BSD/OS*) ;;
+ 	    CYGWIN_*|MINGW32_*) ;;
+ 	    IRIX*) ;;
+-	    NetBSD-*|FreeBSD-*|OpenBSD-*) ;;
++	    NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*|MirBSD-*) ;;
+ 	    Darwin-*) ;;
+ 	    SCO_SV-3.2*) ;;
+ 	    *) SHLIB_CFLAGS="-fPIC" ;;
+@@ -8844,7 +8843,11 @@ fi
+ 
+ else
+ 
+-            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"'
++        if test "${SHLIB_SUFFIX}" = ".dylib" ; then
++            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/libtcl$(MAJOR_VERSION)$(MINOR_VERSION).$(SHLIB_VERSION)$(SHLIB_SUFFIX)"'
++        else
++            INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE).$(SHLIB_VERSION)"'
++        fi
+ 
+ fi
+ 
+@@ -8879,7 +8882,7 @@ else
+ 
+ fi
+ 
+-    INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"'
++    INSTALL_STUB_LIB='$(INSTALL_DATA) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"'
+ 
+     # Define TCL_LIBS now that we know what DL_LIBS is.
+     # The trick here is that we don't want to change the value of TCL_LIBS if
+@@ -18910,9 +18913,9 @@ fi
+ #	building libtcl as a shared library instead of a static library.
+ #--------------------------------------------------------------------
+ 
+-TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}
+-TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX}
+-eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}"
++TCL_UNSHARED_LIB_SUFFIX=${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}.a
++TCL_SHARED_LIB_SUFFIX=${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${SHLIB_SUFFIX}
++eval "TCL_LIB_FILE=libtcl${TCL_SHARED_LIB_SUFFIX}"
+ 
+ # tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed
+ # since on some platforms TCL_LIB_FILE contains shell escapes.
+@@ -19025,13 +19028,10 @@ else
+     eval libdir="$libdir"
+     # default install directory for bundled packages
+     PACKAGE_DIR="$libdir"
+-    if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
+-        TCL_LIB_FLAG="-ltcl${TCL_VERSION}"
+-    else
+-        TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`"
+-    fi
++    TCL_LIB_FLAG="-ltcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
+     TCL_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_LIB_FLAG}"
+-    TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}"
++    TCL_LIB_SPEC_RPATH="${COMPILER_RPATH_FLAG}${libdir}"
++    TCL_LIB_SPEC="${TCL_LIB_SPEC_RPATH} -L${libdir} ${TCL_LIB_FLAG}"
+ fi
+ VERSION='${VERSION}'
+ eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}"
+@@ -19050,12 +19050,11 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
+ 	TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /System/Library/Frameworks"
+     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}"
+ else
+-    TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}"
++    TCL_PACKAGE_PATH="${prefix}/lib/tcl ${prefix}/lib"
+ fi
+ 
++
+ #--------------------------------------------------------------------
+ #       The statements below define various symbols relating to Tcl
+ #       stub support.
+@@ -19068,12 +19067,7 @@ eval "TCL_STUB_LIB_FILE=libtclstub${TCL_
+ eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
+ eval "TCL_STUB_LIB_DIR=${libdir}"
+ 
+-if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
+-    TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}"
+-else
+-    TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`"
+-fi
+-
++TCL_STUB_LIB_FLAG="-ltclstub${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}"
+ 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_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}"
+@@ -19227,34 +19221,15 @@ fi
+ # Transform confdefs.h into DEFS.
+ # Protect against shell expansion while executing Makefile rules.
+ # Protect against Makefile macro expansion.
+-#
+-# If the first sed substitution is executed (which looks for macros that
+-# take arguments), then we branch to the quote section.  Otherwise,
+-# look for a macro that doesn't take arguments.
+-cat >confdef2opt.sed <<\_ACEOF
+-t clear
+-: clear
+-s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
+-t quote
+-s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
+-t quote
+-d
+-: quote
+-s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
+-s,\[,\\&,g
+-s,\],\\&,g
+-s,\$,$$,g
+-p
+-_ACEOF
+-# We use echo to avoid assuming a particular line-breaking character.
+-# The extra dot is to prevent the shell from consuming trailing
+-# line-breaks from the sub-command output.  A line-break within
+-# single-quotes doesn't work because, if this script is created in a
+-# platform that uses two characters for line-breaks (e.g., DOS), tr
+-# would break.
+-ac_LF_and_DOT=`echo; echo .`
+-DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+-rm -f confdef2opt.sed
++cat > conftest.defs <<\EOF
++s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
++s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
++s%\[%\\&%g
++s%\]%\\&%g
++s%\$%$$%g
++EOF
++DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
++rm -f conftest.defs
+ 
+ 
+ 
+@@ -19882,6 +19857,7 @@ s,@EXTRA_BUILD_HTML@,$EXTRA_BUILD_HTML,;
+ s,@EXTRA_TCLSH_LIBS@,$EXTRA_TCLSH_LIBS,;t t
+ s,@DLTEST_LD@,$DLTEST_LD,;t t
+ s,@DLTEST_SUFFIX@,$DLTEST_SUFFIX,;t t
++s,@SHLIB_VERSION@,$SHLIB_VERSION,;t t
+ CEOF
+ 
+ _ACEOF
diff --git a/tcl-fossil/patches/patch-unix_tclConfig.sh.in b/tcl-fossil/patches/patch-unix_tclConfig.sh.in
new file mode 100644
index 0000000..e9e8eff
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_tclConfig.sh.in
@@ -0,0 +1,23 @@
+$NetBSD: patch-unix_tclConfig.sh.in,v 1.2 2014/10/31 21:11:18 adam Exp $
+
+--- unix/tclConfig.sh.in.orig	2014-08-26 15:23:08.000000000 +0000
++++ unix/tclConfig.sh.in
+@@ -9,6 +9,8 @@
+ #
+ # The information in this file is specific to a single platform.
+ 
++if [ -z "${_TCL_NOTHREAD}" ]; then
++
+ # Tcl's version number.
+ TCL_VERSION='@TCL_VERSION@'
+ TCL_MAJOR_VERSION='@TCL_MAJOR_VERSION@'
+@@ -167,3 +169,9 @@ TCL_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@'
+ 
+ # Flag, 1: we built Tcl with threads enabled, 0 we didn't
+ TCL_THREADS=@TCL_THREADS@
++
++else
++
++. @prefix@/lib/tclConfig-nothread.sh
++
++fi
diff --git a/tcl-fossil/patches/patch-unix_tclUnixCompat.c b/tcl-fossil/patches/patch-unix_tclUnixCompat.c
new file mode 100644
index 0000000..9d81e81
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_tclUnixCompat.c
@@ -0,0 +1,67 @@
+$NetBSD: patch-unix_tclUnixCompat.c,v 1.1 2012/12/29 13:49:12 bsiegert Exp $
+
+This is needed on MirBSD, which does not have the required sysconf
+constants.
+
+--- unix/tclUnixCompat.c.orig	Thu Dec 13 16:53:10 2012
++++ unix/tclUnixCompat.c
+@@ -197,10 +197,14 @@ TclpGetPwNam(
+      */
+ 
+     if (tsdPtr->pbuf == NULL) {
++#ifdef _SC_GETPW_R_SIZE_MAX
+ 	tsdPtr->pbuflen = (int) sysconf(_SC_GETPW_R_SIZE_MAX);
+ 	if (tsdPtr->pbuflen < 1) {
++#endif
+ 	    tsdPtr->pbuflen = 1024;
++#ifdef _SC_GETPW_R_SIZE_MAX
+ 	}
++#endif
+ 	tsdPtr->pbuf = ckalloc(tsdPtr->pbuflen);
+ 	Tcl_CreateThreadExitHandler(FreePwBuf, NULL);
+     }
+@@ -277,10 +281,14 @@ TclpGetPwUid(
+      */
+ 
+     if (tsdPtr->pbuf == NULL) {
++#ifdef _SC_GETPW_R_SIZE_MAX
+ 	tsdPtr->pbuflen = (int) sysconf(_SC_GETPW_R_SIZE_MAX);
+ 	if (tsdPtr->pbuflen < 1) {
++#endif
+ 	    tsdPtr->pbuflen = 1024;
++#ifdef _SC_GETPW_R_SIZE_MAX
+ 	}
++#endif
+ 	tsdPtr->pbuf = ckalloc(tsdPtr->pbuflen);
+ 	Tcl_CreateThreadExitHandler(FreePwBuf, NULL);
+     }
+@@ -380,10 +388,14 @@ TclpGetGrNam(
+      */
+ 
+     if (tsdPtr->gbuf == NULL) {
++#ifdef _SC_GETGR_R_SIZE_MAX
+ 	tsdPtr->gbuflen = (int) sysconf(_SC_GETGR_R_SIZE_MAX);
+ 	if (tsdPtr->gbuflen < 1) {
++#endif
+ 	    tsdPtr->gbuflen = 1024;
++#ifdef _SC_GETGR_R_SIZE_MAX
+ 	}
++#endif
+ 	tsdPtr->gbuf = ckalloc(tsdPtr->gbuflen);
+ 	Tcl_CreateThreadExitHandler(FreeGrBuf, NULL);
+     }
+@@ -460,10 +472,14 @@ TclpGetGrGid(
+      */
+ 
+     if (tsdPtr->gbuf == NULL) {
++#ifdef _SC_GETGR_R_SIZE_MAX
+ 	tsdPtr->gbuflen = (int) sysconf(_SC_GETGR_R_SIZE_MAX);
+ 	if (tsdPtr->gbuflen < 1) {
++#endif
+ 	    tsdPtr->gbuflen = 1024;
++#ifdef _SC_GETGR_R_SIZE_MAX
+ 	}
++#endif
+ 	tsdPtr->gbuf = ckalloc(tsdPtr->gbuflen);
+ 	Tcl_CreateThreadExitHandler(FreeGrBuf, NULL);
+     }
diff --git a/tcl-fossil/patches/patch-unix_tclUnixFCmd.c b/tcl-fossil/patches/patch-unix_tclUnixFCmd.c
new file mode 100644
index 0000000..59023bf
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_tclUnixFCmd.c
@@ -0,0 +1,21 @@
+$NetBSD: patch-unix_tclUnixFCmd.c,v 1.2 2014/01/11 14:41:05 adam Exp $
+
+Carried over from TCL 8.4
+
+--- unix/tclUnixFCmd.c.orig	2012-07-16 11:57:06.000000000 +0000
++++ unix/tclUnixFCmd.c
+@@ -676,6 +676,14 @@ TclpDeleteFile(
+  *---------------------------------------------------------------------------
+  */
+ 
++/* Reintroduced here for the benefit of scotty */
++int
++TclpCreateDirectory(path)
++    CONST char *path;
++{
++    return DoCreateDirectory(path);
++}
++
+ int
+ TclpObjCreateDirectory(
+     Tcl_Obj *pathPtr)
diff --git a/tcl-fossil/patches/patch-unix_tclUnixInit.c b/tcl-fossil/patches/patch-unix_tclUnixInit.c
new file mode 100644
index 0000000..37f5bc9
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_tclUnixInit.c
@@ -0,0 +1,65 @@
+$NetBSD: patch-unix_tclUnixInit.c,v 1.4 2014/10/31 21:11:18 adam Exp $
+
+Carried over from TCL 8.4
+
+--- unix/tclUnixInit.c.orig	2014-07-28 14:43:56.000000000 +0000
++++ unix/tclUnixInit.c
+@@ -22,7 +22,7 @@
+ #    endif
+ #endif
+ #include <sys/resource.h>
+-#if defined(__FreeBSD__) && defined(__GNUC__)
++#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(__GNUC__)
+ #   include <floatingpoint.h>
+ #endif
+ #if defined(__bsdi__)
+@@ -31,6 +31,12 @@
+ #	include <dlfcn.h>
+ #   endif
+ #endif
++#if defined(__NetBSD__)
++#include <sys/param.h>
++#include <sys/sysctl.h>
++#include <sys/utsname.h>
++#endif
++
+ 
+ #ifdef __CYGWIN__
+ DLLIMPORT extern __stdcall unsigned char GetVersionExW(void *);
+@@ -390,7 +396,7 @@ TclpInitPlatform(void)
+     (void) signal(SIGPIPE, SIG_IGN);
+ #endif /* SIGPIPE */
+ 
+-#if defined(__FreeBSD__) && defined(__GNUC__)
++#if (defined(__FreeBSD__) || defined(__DragonFly__)) && defined(__GNUC__)
+     /*
+      * Adjust the rounding mode to be more conventional. Note that FreeBSD
+      * only provides the __fpsetreg() used by the following two for the GNU
+@@ -758,6 +764,11 @@ TclpSetVariables(
+ #endif
+     int unameOK;
+     Tcl_DString ds;
++#if defined(__NetBSD__)
++    char machine_arch[SYS_NMLN];
++    int mib[2] = { CTL_HW, HW_MACHINE_ARCH };
++    size_t len = sizeof(machine_arch);
++#endif
+ 
+ #ifdef HAVE_COREFOUNDATION
+     char tclLibPath[MAXPATHLEN + 1];
+@@ -938,8 +949,15 @@ TclpSetVariables(
+ 
+ #endif /* DJGPP */
+ 	}
++#if defined(__NetBSD__)
++	if (sysctl(mib, sizeof(mib) / sizeof(int), machine_arch, &len, NULL, 0) < 0)
++	    unameOK = 0;
++	else
++            Tcl_SetVar2(interp, "tcl_platform", "machine", machine_arch, TCL_GLOBAL_ONLY);
++#else
+ 	Tcl_SetVar2(interp, "tcl_platform", "machine", name.machine,
+ 		TCL_GLOBAL_ONLY);
++#endif /* __NetBSD__ */
+     }
+ #endif /* !NO_UNAME */
+     if (!unameOK) {
diff --git a/tcl-fossil/patches/patch-unix_tclUnixPort.h b/tcl-fossil/patches/patch-unix_tclUnixPort.h
new file mode 100644
index 0000000..7eda90a
--- /dev/null
+++ b/tcl-fossil/patches/patch-unix_tclUnixPort.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-unix_tclUnixPort.h,v 1.4 2016/03/06 11:47:49 adam Exp $
+
+--- unix/tclUnixPort.h.orig	2016-02-25 20:12:38.000000000 +0000
++++ unix/tclUnixPort.h
+@@ -145,11 +145,7 @@ typedef off_t		Tcl_SeekOffset;
+ #if HAVE_STDINT_H
+ #   include <stdint.h>
+ #endif
+-#ifdef HAVE_UNISTD_H
+-#   include <unistd.h>
+-#else
+-#   include "../compat/unistd.h"
+-#endif
++#include <unistd.h>
+ 
+ extern int TclUnixSetBlockingMode(int fd, int mode);
+ 


Home | Main Index | Thread Index | Old Index