diff options
author | joerg <joerg@pkgsrc.org> | 2005-09-21 14:49:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2005-09-21 14:49:08 +0000 |
commit | ef4684ad155b52b815408a5811654327fb9fd79b (patch) | |
tree | ad03d6b1f54fe814d7c5fd1ecb818d09c45e120e /lang/tcl83/patches | |
parent | 314097928b54d26fec2dde79003bbf2b2d8399f1 (diff) | |
download | pkgsrc-ef4684ad155b52b815408a5811654327fb9fd79b.tar.gz |
Ensure that errno really comes from errno.h and only define it as
extern, if it's not a macro. Teach configure about DragonFly.
OKed by maintainer.
Diffstat (limited to 'lang/tcl83/patches')
-rw-r--r-- | lang/tcl83/patches/patch-ab | 20 | ||||
-rw-r--r-- | lang/tcl83/patches/patch-ac | 24 | ||||
-rw-r--r-- | lang/tcl83/patches/patch-af | 20 | ||||
-rw-r--r-- | lang/tcl83/patches/patch-ag | 14 |
4 files changed, 73 insertions, 5 deletions
diff --git a/lang/tcl83/patches/patch-ab b/lang/tcl83/patches/patch-ab index 3e115fb4069..4b8416420ce 100644 --- a/lang/tcl83/patches/patch-ab +++ b/lang/tcl83/patches/patch-ab @@ -1,4 +1,4 @@ -$NetBSD: patch-ab,v 1.2 2004/10/10 11:58:29 grant Exp $ +$NetBSD: patch-ab,v 1.3 2005/09/21 14:49:08 joerg Exp $ --- configure.orig 2001-10-20 10:24:15.000000000 +1000 +++ configure @@ -103,6 +103,15 @@ $NetBSD: patch-ab,v 1.2 2004/10/10 11:58:29 grant Exp $ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' fi +@@ -5383,7 +5406,7 @@ fi + UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' + TCL_LIB_VERSIONS_OK=nodots + ;; +- FreeBSD-*) ++ FreeBSD-*|DragonFly-*) + # FreeBSD 3.* and greater have ELF. + SHLIB_CFLAGS="-fPIC" + SHLIB_LD="ld -Bshareable -x" @@ -5401,7 +5424,7 @@ fi Rhapsody-*|Darwin-*) SHLIB_CFLAGS="-fno-common" @@ -142,6 +151,15 @@ $NetBSD: patch-ab,v 1.2 2004/10/10 11:58:29 grant Exp $ ;; ULTRIX-4.*) SHLIB_CFLAGS="-G 0" +@@ -5858,7 +5890,7 @@ fi + ;; + IRIX*) + ;; +- NetBSD-*|FreeBSD-*|OpenBSD-*) ++ NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) + ;; + Rhapsody-*|Darwin-*) + ;; @@ -6103,7 +6135,7 @@ if test "${SHARED_BUILD}" = "1" -a "${SH if test "x$DL_OBJS" = "xtclLoadAout.o"; then MAKE_LIB="\${STLIB_LD} \$@ \${OBJS}" diff --git a/lang/tcl83/patches/patch-ac b/lang/tcl83/patches/patch-ac index 762f5d227d7..43c0dfb92f4 100644 --- a/lang/tcl83/patches/patch-ac +++ b/lang/tcl83/patches/patch-ac @@ -1,7 +1,16 @@ -$NetBSD: patch-ac,v 1.1.1.1 2004/03/08 19:22:27 minskim Exp $ +$NetBSD: patch-ac,v 1.2 2005/09/21 14:49:08 joerg Exp $ --- tclUnixInit.c.orig Fri Aug 24 19:13:22 2001 +++ tclUnixInit.c +@@ -13,7 +13,7 @@ + #include "tclInt.h" + #include "tclPort.h" + #include <locale.h> +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__DragonFly__) + # include <floatingpoint.h> + #endif + #if defined(__bsdi__) @@ -22,6 +22,11 @@ # include <dlfcn.h> # endif @@ -14,7 +23,16 @@ $NetBSD: patch-ac,v 1.1.1.1 2004/03/08 19:22:27 minskim Exp $ /* * The Init script (common to Windows and Unix platforms) is -@@ -550,6 +555,11 @@ +@@ -132,7 +137,7 @@ TclpInitPlatform() + (void) signal(SIGPIPE, SIG_IGN); + #endif /* SIGPIPE */ + +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__DragonFly__) + fpsetround(FP_RN); + fpsetmask(0L); + #endif +@@ -550,6 +555,11 @@ TclpSetVariables(interp) int unameOK; char *user; Tcl_DString ds; @@ -26,7 +44,7 @@ $NetBSD: patch-ac,v 1.1.1.1 2004/03/08 19:22:27 minskim Exp $ Tcl_SetVar(interp, "tclDefaultLibrary", defaultLibraryDir, TCL_GLOBAL_ONLY); Tcl_SetVar(interp, "tcl_pkgPath", pkgPath, TCL_GLOBAL_ONLY); -@@ -585,8 +595,16 @@ +@@ -585,8 +595,16 @@ TclpSetVariables(interp) Tcl_SetVar2(interp, "tcl_platform", "osVersion", name.release, TCL_GLOBAL_ONLY|TCL_APPEND_VALUE); } diff --git a/lang/tcl83/patches/patch-af b/lang/tcl83/patches/patch-af index ad716028e6b..48bb7466e4f 100644 --- a/lang/tcl83/patches/patch-af +++ b/lang/tcl83/patches/patch-af @@ -1,4 +1,4 @@ -$NetBSD: patch-af,v 1.1.1.1 2004/03/08 19:22:27 minskim Exp $ +$NetBSD: patch-af,v 1.2 2005/09/21 14:49:08 joerg Exp $ --- tcl.m4.orig Fri Oct 19 19:24:15 2001 +++ tcl.m4 @@ -92,6 +92,15 @@ $NetBSD: patch-af,v 1.1.1.1 2004/03/08 19:22:27 minskim Exp $ ], [ SHLIB_CFLAGS="" SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" +@@ -949,7 +970,7 @@ dnl AC_CHECK_TOOL(AR, ar, :) + UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' + TCL_LIB_VERSIONS_OK=nodots + ;; +- FreeBSD-*) ++ FreeBSD-* | DragonFly-*) + # FreeBSD 3.* and greater have ELF. + SHLIB_CFLAGS="-fPIC" + SHLIB_LD="ld -Bshareable -x" @@ -1129,6 +1150,9 @@ dnl AC_CHECK_TOOL(AR, ar, :) DL_LIBS="-ldl" LDFLAGS="" @@ -112,3 +121,12 @@ $NetBSD: patch-af,v 1.1.1.1 2004/03/08 19:22:27 minskim Exp $ ;; ULTRIX-4.*) SHLIB_CFLAGS="-G 0" +@@ -1328,7 +1355,7 @@ dnl AC_CHECK_TOOL(AR, ar, :) + ;; + IRIX*) + ;; +- NetBSD-*|FreeBSD-*|OpenBSD-*) ++ NetBSD-*|FreeBSD-*|OpenBSD-*|DragonFly-*) + ;; + Rhapsody-*|Darwin-*) + ;; diff --git a/lang/tcl83/patches/patch-ag b/lang/tcl83/patches/patch-ag new file mode 100644 index 00000000000..840f268b3ba --- /dev/null +++ b/lang/tcl83/patches/patch-ag @@ -0,0 +1,14 @@ +$NetBSD: patch-ag,v 1.1 2005/09/21 14:49:08 joerg Exp $ + +--- tclUnixPort.h.orig 2005-07-30 20:55:41.000000000 +0000 ++++ tclUnixPort.h +@@ -417,7 +417,9 @@ EXTERN int gettimeofday _ANSI_ARGS_((st + * isn't generally declared in a header file anywhere. + */ + ++#ifndef errno + extern int errno; ++#endif + + /* + * Variables provided by the C library: |