summaryrefslogtreecommitdiff
path: root/lang/tcl/patches
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2005-08-02 22:37:18 +0000
committerseb <seb@pkgsrc.org>2005-08-02 22:37:18 +0000
commit62f5a980a4904e45a4f86b4939e30e76de7538f0 (patch)
tree4652688656ed8db7456256ee9d0818a405099051 /lang/tcl/patches
parentf28381829b59e10252fd8774f4acd09d20e997ba (diff)
downloadpkgsrc-62f5a980a4904e45a4f86b4939e30e76de7538f0.tar.gz
Patches and tuning so the test target runs and pass, at least on
NetBSD/i386 2.0_STABLE and current: set timezone in TEST_ENV, use libtool to compile shared test modules and account for that in the Tcl test scripts. Thanks to jwise@ for the helping hand.
Diffstat (limited to 'lang/tcl/patches')
-rw-r--r--lang/tcl/patches/patch-ad52
-rw-r--r--lang/tcl/patches/patch-ai13
-rw-r--r--lang/tcl/patches/patch-aj31
3 files changed, 96 insertions, 0 deletions
diff --git a/lang/tcl/patches/patch-ad b/lang/tcl/patches/patch-ad
new file mode 100644
index 00000000000..d5bc49cb61e
--- /dev/null
+++ b/lang/tcl/patches/patch-ad
@@ -0,0 +1,52 @@
+$NetBSD: patch-ad,v 1.3 2005/08/02 22:37:18 seb Exp $
+
+--- dltest/Makefile.in.orig 2004-09-23 20:04:07.000000000 +0000
++++ dltest/Makefile.in
+@@ -5,11 +5,11 @@
+
+ TCL_DBGX = @TCL_DBGX@
+-CC = @CC@
++CC = ${LIBTOOL} --mode=compile @CC@
+ LIBS = @TCL_BUILD_STUB_LIB_SPEC@ @DL_LIBS@ @LIBS@ @MATH_LIBS@
+ AC_FLAGS = @DEFS@
+ SHLIB_CFLAGS = @SHLIB_CFLAGS@
+-SHLIB_LD = @SHLIB_LD@
++SHLIB_LD = ${LIBTOOL} --mode=link cc -module -pipe -rpath ${PREFIX}/lib
+ SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
+-SHLIB_SUFFIX = @SHLIB_SUFFIX@
++SHLIB_SUFFIX = .la
+ SRC_DIR = @srcdir@
+ TCL_VERSION= @TCL_VERSION@
+@@ -27,25 +27,26 @@ all: pkga${SHLIB_SUFFIX} pkgb${SHLIB_SUF
+ pkga${SHLIB_SUFFIX}: $(SRC_DIR)/pkga.c
+ $(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkga.c
+- ${SHLIB_LD} -o pkga${SHLIB_SUFFIX} pkga.o ${SHLIB_LD_LIBS}
++ ${SHLIB_LD} -o pkga${SHLIB_SUFFIX} pkga.lo ${SHLIB_LD_LIBS}
+
+ pkgb${SHLIB_SUFFIX}: $(SRC_DIR)/pkgb.c
+ $(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkgb.c
+- ${SHLIB_LD} -o pkgb${SHLIB_SUFFIX} pkgb.o ${SHLIB_LD_LIBS}
++ ${SHLIB_LD} -o pkgb${SHLIB_SUFFIX} pkgb.lo ${SHLIB_LD_LIBS}
+
+ pkgc${SHLIB_SUFFIX}: $(SRC_DIR)/pkgc.c
+ $(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkgc.c
+- ${SHLIB_LD} -o pkgc${SHLIB_SUFFIX} pkgc.o ${SHLIB_LD_LIBS}
++ ${SHLIB_LD} -o pkgc${SHLIB_SUFFIX} pkgc.lo ${SHLIB_LD_LIBS}
+
+ pkgd${SHLIB_SUFFIX}: $(SRC_DIR)/pkgd.c
+ $(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkgd.c
+- ${SHLIB_LD} -o pkgd${SHLIB_SUFFIX} pkgd.o ${SHLIB_LD_LIBS}
++ ${SHLIB_LD} -o pkgd${SHLIB_SUFFIX} pkgd.lo ${SHLIB_LD_LIBS}
+
+ pkge${SHLIB_SUFFIX}: $(SRC_DIR)/pkge.c
+ $(CC) -c $(CC_SWITCHES) $(SRC_DIR)/pkge.c
+- ${SHLIB_LD} -o pkge${SHLIB_SUFFIX} pkge.o ${SHLIB_LD_LIBS}
++ ${SHLIB_LD} -o pkge${SHLIB_SUFFIX} pkge.lo ${SHLIB_LD_LIBS}
+
+ clean:
+- rm -f *.o config.cache config.log config.status
++ rm -f *.o *.lo config.cache config.log config.status
+ rm -f lib.exp ../dltest.marker
++ rm -rf .libs
+ @if test "$(SHLIB_SUFFIX)" != ""; then \
+ echo "rm -f *${SHLIB_SUFFIX}" ; \
diff --git a/lang/tcl/patches/patch-ai b/lang/tcl/patches/patch-ai
new file mode 100644
index 00000000000..3686e4deefa
--- /dev/null
+++ b/lang/tcl/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2005/08/02 22:37:18 seb Exp $
+
+--- ../tests/load.test.orig 2004-09-14 17:02:56.000000000 +0000
++++ ../tests/load.test
+@@ -28,7 +28,7 @@ if {$tcl_platform(platform) == "macintos
+
+ # Tests require the existence of one of the DLLs in the dltest directory.
+ set ext [info sharedlibextension]
+-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"
+ ::tcltest::testConstraint $dll [file readable $x]
diff --git a/lang/tcl/patches/patch-aj b/lang/tcl/patches/patch-aj
new file mode 100644
index 00000000000..f250662124a
--- /dev/null
+++ b/lang/tcl/patches/patch-aj
@@ -0,0 +1,31 @@
+$NetBSD: patch-aj,v 1.1 2005/08/02 22:37:18 seb Exp $
+
+--- ../tests/pkgMkIndex.test.orig 2003-07-24 08:23:39.000000000 +0000
++++ ../tests/pkgMkIndex.test
+@@ -559,7 +559,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"
+ ::tcltest::testConstraint $dll [file exists $x]
+@@ -572,7 +572,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]]
+
+@@ -598,7 +598,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 [glob [file join $fullPkgPath [file tail "$x*"] ] ]
+ removeFile [file join pkg pkga.tcl]
+ }
+