pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/STk Fix errno. Fix stdio abuse for DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2884d7f4da2
branches:  trunk
changeset: 506067:a2884d7f4da2
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Jan 11 17:43:34 2006 +0000

description:
Fix errno. Fix stdio abuse for DragonFly.

diffstat:

 lang/STk/distinfo         |   6 +++++-
 lang/STk/patches/patch-aj |  19 +++++++++++++++++++
 lang/STk/patches/patch-ak |  18 ++++++++++++++++++
 lang/STk/patches/patch-al |  14 ++++++++++++++
 lang/STk/patches/patch-am |  21 +++++++++++++++++++++
 5 files changed, 77 insertions(+), 1 deletions(-)

diffs (105 lines):

diff -r a3ae70ddfc80 -r a2884d7f4da2 lang/STk/distinfo
--- a/lang/STk/distinfo Wed Jan 11 17:20:32 2006 +0000
+++ b/lang/STk/distinfo Wed Jan 11 17:43:34 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2005/02/24 09:03:05 agc Exp $
+$NetBSD: distinfo,v 1.6 2006/01/11 17:43:34 joerg Exp $
 
 SHA1 (STk-4.0.1.tar.gz) = 50dc98c2b64db1c9cca54411cb406feb4cb57600
 RMD160 (STk-4.0.1.tar.gz) = 58ad3c66f77a6ab33db5d4ca9f2510d50b6b6f0d
@@ -12,3 +12,7 @@
 SHA1 (patch-ag) = dde1a30f1b0f0d781d8d2389af6bc2393dd40729
 SHA1 (patch-ah) = 353ac24f2a097e360067a292828ef2f469e137c8
 SHA1 (patch-ai) = f83af050a51c95f2de6d0cd109388e822727a724
+SHA1 (patch-aj) = 17158d45f3a57a822a5eb13ad7f8c2e631329e41
+SHA1 (patch-ak) = 7548a9912788c1a951ef9d14f0b21bebf0899b66
+SHA1 (patch-al) = c5a8f2f3d2a70ef5c4ca23c1574b5b25f2c0dacb
+SHA1 (patch-am) = cb59da47c5e7fd1f07c456fa1a1258217c798ed5
diff -r a3ae70ddfc80 -r a2884d7f4da2 lang/STk/patches/patch-aj
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/STk/patches/patch-aj Wed Jan 11 17:43:34 2006 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-aj,v 1.1 2006/01/11 17:43:34 joerg Exp $
+
+--- Tcl/tclUnixPort.h.orig     2006-01-11 17:08:11.000000000 +0000
++++ Tcl/tclUnixPort.h
+@@ -176,14 +176,6 @@
+ #define       TCL_PLATFORM_TRANSLATION        TCL_TRANSLATE_LF
+ 
+ /*
+- * Not all systems declare the errno variable in errno.h. so this
+- * file does it explicitly.  The list of system error messages also
+- * isn't generally declared in a header file anywhere.
+- */
+-
+-extern int errno;
+-
+-/*
+  * The type of the status returned by wait varies from UNIX system
+  * to UNIX system.  The macro below defines it:
+  */
diff -r a3ae70ddfc80 -r a2884d7f4da2 lang/STk/patches/patch-ak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/STk/patches/patch-ak Wed Jan 11 17:43:34 2006 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-ak,v 1.1 2006/01/11 17:43:34 joerg Exp $
+
+--- Tk/unix/tkUnixPort.h.orig  2006-01-11 17:12:28.000000000 +0000
++++ Tk/unix/tkUnixPort.h
+@@ -120,13 +120,6 @@
+ #define MASK_SIZE howmany(FD_SETSIZE, NFDBITS)
+ 
+ /*
+- * Not all systems declare the errno variable in errno.h. so this
+- * file does it explicitly.
+- */
+-
+-extern int errno;
+-
+-/*
+  * Define "NBBY" (number of bits per byte) if it's not already defined.
+  */
+ 
diff -r a3ae70ddfc80 -r a2884d7f4da2 lang/STk/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/STk/patches/patch-al Wed Jan 11 17:43:34 2006 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-al,v 1.1 2006/01/11 17:43:34 joerg Exp $
+
+--- Src/io.c.orig      2006-01-11 17:16:11.000000000 +0000
++++ Src/io.c
+@@ -67,6 +67,9 @@
+ #    define READ_DATA_PENDING(fp) (max(0,(fp)->_egptr - (fp)->_gptr))
+ #  endif
+ #endif
++#if !defined(READ_DATA_PENDING) && defined(__DragonFly__)
++#  define READ_DATA_PENDING(fp) (max(0,((struct __FILE_public *)(fp))->_r))
++#endif
+ #if (!defined (READ_DATA_PENDING)) && defined __SLBF
+ #  define READ_DATA_PENDING(fp) (max(0,fp->_r))
+ #endif
diff -r a3ae70ddfc80 -r a2884d7f4da2 lang/STk/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/STk/patches/patch-am Wed Jan 11 17:43:34 2006 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-am,v 1.1 2006/01/11 17:43:34 joerg Exp $
+
+--- Extensions/posix.c.orig    2006-01-11 17:19:54.000000000 +0000
++++ Extensions/posix.c
+@@ -23,7 +23,7 @@
+  * <shiro%sqush.squareusa.com@localhost>
+  */
+  
+-
++#include <errno.h>
+ #include <stk.h>
+ #include <sys/types.h>
+ #include <sys/utsname.h>
+@@ -35,7 +35,6 @@
+  * Error management
+  *
+  ******************************************************************************/
+-extern int errno;
+ 
+ static SCM get_errno(char *s)
+ {



Home | Main Index | Thread Index | Old Index