Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Bor Kraljič (8c6820175c69d9cc53fd601c985f3bf320d8f7df)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Bor Kraljič <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Bor Kraljič (8c6820175c69d9cc53fd601c985f3bf320d8f7df)
  • Date: Sun, 10 Oct 2010 04:10:57 -0500

GIT changes to master grimoire by Bor Kraljič <pyrobor AT ver.si>:

devel/expect/DETAILS | 9
devel/expect/HISTORY | 5
devel/expect/PRE_BUILD | 3
devel/expect/expect-5.43.0-spawn-1.patch | 217
-----------------------
devel/expect/expect-5.43.0-tcl_8.5.5_fix-1.patch | 125 -------------
devel/ghc/DETAILS | 2
devel/ghc/HISTORY | 3
7 files changed, 13 insertions(+), 351 deletions(-)

New commits:
commit 8c6820175c69d9cc53fd601c985f3bf320d8f7df
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>

ghc: fixed SOURCE2_HASH. It wasn't updated with version bump for x86_64

commit ab1b0f18fb9d8177b51dca5d10afabce87dd336c
Author: Bor Kraljič <pyrobor AT ver.si>
Commit: Bor Kraljič <pyrobor AT ver.si>

expect: updated spell to 5.44.1.15

diff --git a/devel/expect/DETAILS b/devel/expect/DETAILS
index 1c29efa..93bb0fe 100755
--- a/devel/expect/DETAILS
+++ b/devel/expect/DETAILS
@@ -1,12 +1,11 @@
SPELL=expect
- VERSION=5.43
- SOURCE=$SPELL-$VERSION.0.tar.gz
+ VERSION=5.44.1.15
+ SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
- SOURCE_URL[0]=http://expect.nist.gov/src/$SOURCE
-
SOURCE_HASH=sha512:692ceac0eea5f2e8f75c42217fab3b2e2c202b0c460a06d5986f56a81789fbe895032a1c50b7e7fb96fb0a3d3f52f8383e706cbd0b81aa0fe03fdcc8b3ae4143
+ SOURCE_URL[0]=$SOURCEFORGE_URL/$SPELL/$SOURCE
+
SOURCE_HASH=sha512:c932bd040527c99dce153603d18ce0239a55788fad3ff875acabc2ec06c710d08b723daa333ba9fd4b0c6976491bc400285c5c76cb82285a1405c06e6453c286
WEB_SITE=http://expect.nist.gov
ENTERED=20020307
- UPDATED=20040226
LICENSE[0]=UNKNOWN
KEYWORDS="telnet ftp devel"
SHORT="Automate interactive applications (telnet, ftp, passwd,
etc)"
diff --git a/devel/expect/HISTORY b/devel/expect/HISTORY
index 0a99cae..0a06715 100644
--- a/devel/expect/HISTORY
+++ b/devel/expect/HISTORY
@@ -1,3 +1,8 @@
+2010-10-10 Bor Kraljič <pyrobor AT ver.si>
+ * DETAILS: updated spell to 5.44.1.15
+ * PRE_BUILD: patches are not needed anymore
+ * expect-5.43.0-tcl_8.5.5_fix-1.patch, expect-5.43.0-spawn-1.patch:
removed, no longer needed
+
2009-09-06 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* BUILD, DEPENDS, DETAILS, expect-5.43.0-spawn-1.patch,
expect-5.43.0-tcl_8.5.5_fix-1.patch, INSTALL, PRE_BUILD:
diff --git a/devel/expect/PRE_BUILD b/devel/expect/PRE_BUILD
index 4ad5210..80f4ce9 100755
--- a/devel/expect/PRE_BUILD
+++ b/devel/expect/PRE_BUILD
@@ -2,9 +2,6 @@ default_pre_build &&

cd ${SOURCE_DIRECTORY} &&

-patch -p1 < ${SCRIPT_DIRECTORY}/expect-5.43.0-spawn-1.patch
&&
-patch -p1 < ${SCRIPT_DIRECTORY}/expect-5.43.0-tcl_8.5.5_fix-1.patch
&&
-
sedit '/^install:/s/install-libraries //' Makefile.in
&&
sedit 's/^SCRIPTS_MANPAGES = /_&/' Makefile.in
&&
sedit 's:/usr/local/bin:/usr/bin:' expect.man
&&
diff --git a/devel/expect/expect-5.43.0-spawn-1.patch
b/devel/expect/expect-5.43.0-spawn-1.patch
deleted file mode 100644
index c2033c0..0000000
--- a/devel/expect/expect-5.43.0-spawn-1.patch
+++ /dev/null
@@ -1,217 +0,0 @@
-Submitted By: LFS Book <lfs-book AT linuxfromscratch.org>
-Date: 2003-10-05
-Initial Package Version: 5.38
-Origin: Redhat RPM (Patch by HJ Lu)
-Description: NA
-diff -uNr expect-5.38.orig/exp_chan.c expect-5.38/exp_chan.c
---- expect-5.38.orig/exp_chan.c 2002-02-12 13:00:55.000000000 +1100
-+++ expect-5.38/exp_chan.c 2003-03-01 10:36:18.000000000 +1100
-@@ -519,6 +519,7 @@
- esPtr->buffer = Tcl_NewStringObj("",0);
- Tcl_IncrRefCount(esPtr->buffer);
- esPtr->umsize = exp_default_match_max;
-+ esPtr->umsize_changed = exp_default_match_max_changed;
- /* this will reallocate object with an appropriate sized buffer */
- expAdjust(esPtr);
-
-diff -uNr expect-5.38.orig/exp_command.h expect-5.38/exp_command.h
---- expect-5.38.orig/exp_command.h 2002-04-08 08:57:20.000000000 +1000
-+++ expect-5.38/exp_command.h 2003-03-01 10:36:18.000000000 +1100
-@@ -25,6 +25,7 @@
- EXTERN char * exp_get_var _ANSI_ARGS_((Tcl_Interp *,char *));
-
- EXTERN int exp_default_match_max;
-+EXTERN int exp_default_match_max_changed;
- EXTERN int exp_default_parity;
- EXTERN int exp_default_rm_nulls;
-
-@@ -97,6 +98,7 @@
- int msize; /* # of bytes that buffer can hold (max) */
- int umsize; /* # of bytes (min) that is guaranteed to
match */
- /* this comes from match_max command */
-+ int umsize_changed; /* is umsize changed by user? */
- int printed; /* # of bytes written to stdout (if logging on) */
- /* but not actually returned via a match yet */
- int echoed; /* additional # of bytes (beyond "printed"
above) */
-diff -uNr expect-5.38.orig/expect.c expect-5.38/expect.c
---- expect-5.38.orig/expect.c 2002-04-08 09:00:33.000000000 +1000
-+++ expect-5.38/expect.c 2003-03-01 10:36:18.000000000 +1100
-@@ -41,8 +41,17 @@
- #include "tcldbg.h"
- #endif
-
-+/* The initial length is 2000. We increment it by 2000. The maximum
-+ is 8MB (0x800000). */
-+#define EXP_MATCH_MAX 2000
-+#define EXP_MATCH_INC 2000
-+#define EXP_MATCH_STEP_LIMIT 0x700000
-+#define EXP_MATCH_LIMIT 0x800000
-+#define EXP_MATCH_LIMIT_QUOTE "0x800000"
-+
- /* initial length of strings that we can guarantee patterns can match */
--int exp_default_match_max = 2000;
-+int exp_default_match_max = EXP_MATCH_MAX;
-+int exp_default_match_max_changed = 0;
- #define INIT_EXPECT_TIMEOUT_LIT "10" /* seconds */
- #define INIT_EXPECT_TIMEOUT 10 /* seconds */
- int exp_default_parity = TRUE;
-@@ -1618,6 +1627,76 @@
- return newsize;
- }
-
-+/* returns # of bytes until we see a newline at the end or EOF. */
-+/*ARGSUSED*/
-+static int
-+expReadNewLine(interp,esPtr,save_flags) /* INTL */
-+Tcl_Interp *interp;
-+ExpState *esPtr;
-+int save_flags;
-+{
-+ int size;
-+ int exp_size;
-+ int full_size;
-+ int count;
-+ char *str;
-+
-+ count = 0;
-+ for (;;) {
-+ exp_size = expSizeGet(esPtr);
-+
-+ /* When we reach the limit, we will only read one char at a
-+ time. */
-+ if (esPtr->umsize >= EXP_MATCH_STEP_LIMIT)
-+ size = TCL_UTF_MAX;
-+ else
-+ size = exp_size;
-+
-+ if (exp_size + TCL_UTF_MAX >= esPtr->msize) {
-+ if (esPtr->umsize >= EXP_MATCH_LIMIT) {
-+ expDiagLogU("WARNING: interact buffer is full. probably your
program\r\n");
-+ expDiagLogU("is not interactive or has a very long output
line. The\r\n");
-+ expDiagLogU("current limit is " EXP_MATCH_LIMIT_QUOTE
".\r\n");
-+ expDiagLogU("Dumping first half of buffer in order to
continue\r\n");
-+ expDiagLogU("Recommend you enlarge the buffer.\r\n");
-+
exp_buffer_shuffle(interp,esPtr,save_flags,EXPECT_OUT,"expect");
-+ return count;
-+ }
-+ else {
-+ esPtr->umsize += EXP_MATCH_INC;
-+ expAdjust(esPtr);
-+ }
-+ }
-+
-+ full_size = esPtr->msize - (size / TCL_UTF_MAX);
-+ size = Tcl_ReadChars(esPtr->channel,
-+ esPtr->buffer,
-+ full_size,
-+ 1 /* append */);
-+ if (size > 0) {
-+ count += size;
-+ /* We try again if there are more to read and we haven't
-+ seen a newline at the end. */
-+ if (size == full_size) {
-+ str = Tcl_GetStringFromObj(esPtr->buffer, &size);
-+ if (str[size - 1] != '\n')
-+ continue;
-+ }
-+ }
-+ else {
-+ /* It is even trickier. We got an error from read. We have
-+ to recover from it. Let's make sure the size of
-+ buffer is correct. It can be corrupted. */
-+ str = Tcl_GetString(esPtr->buffer);
-+ Tcl_SetObjLength(esPtr->buffer, strlen(str));
-+ }
-+
-+ break;
-+ }
-+
-+ return count;
-+}
-+
- /* returns # of bytes read or (non-positive) error of form EXP_XXX */
- /* returns 0 for end of file */
- /* If timeout is non-zero, set an alarm before doing the read, else assume
*/
-@@ -1632,6 +1711,8 @@
- {
- int cc = EXP_TIMEOUT;
- int size = expSizeGet(esPtr);
-+ int full_size;
-+ int count;
-
- if (size + TCL_UTF_MAX >= esPtr->msize)
- exp_buffer_shuffle(interp,esPtr,save_flags,EXPECT_OUT,"expect");
-@@ -1648,11 +1729,43 @@
- }
- #endif
-
--
-+ /* FIXME: If we ask less than what is available in the tcl buffer
-+ when tcl has seen EOF, we will throw away the remaining data
-+ since the next read will get EOF. Since expect is line-oriented,
-+ we exand our buffer to get EOF or the next newline at the end of
-+ the input buffer. I don't know if it is the right fix. H.J. */
-+ count = 0;
-+ full_size = esPtr->msize - (size / TCL_UTF_MAX);
- cc = Tcl_ReadChars(esPtr->channel,
-- esPtr->buffer,
-- esPtr->msize - (size / TCL_UTF_MAX),
-- 1 /* append */);
-+ esPtr->buffer,
-+ full_size,
-+ 1 /* append */);
-+ if (cc > 0) {
-+ count += cc;
-+ /* It gets very tricky. There are more to read. We will expand
-+ our buffer and get EOF or a newline at the end unless the
-+ buffer length has been changed. */
-+ if (cc == full_size) {
-+ char *str;
-+ str = Tcl_GetStringFromObj(esPtr->buffer, &size);
-+ if (str[size - 1] != '\n') {
-+ if (esPtr->umsize_changed) {
-+ char buf[20]; /* big enough for 64bit int in hex.
*/
-+ snprintf(buf,sizeof(buf),"0x%x", esPtr->umsize);
-+ expDiagLogU("WARNING: interact buffer is not large enough
to hold\r\n");
-+ expDiagLogU("all output. probably your program is not
interactive or\r\n");
-+ expDiagLogU("has a very long output line. The current
limit is ");
-+ expDiagLogU(buf);
-+ expDiagLogU(".\r\n");
-+ }
-+ else {
-+ cc = expReadNewLine(interp,esPtr,save_flags);
-+ if (cc > 0)
-+ count += cc;
-+ }
-+ }
-+ }
-+ }
- i_read_errno = errno;
-
- #ifdef SIMPLE_EVENT
-@@ -1673,7 +1786,7 @@
- }
- }
- #endif
-- return cc;
-+ return count > 0 ? count : cc;
- }
-
- /*
-@@ -2746,8 +2859,14 @@
- return(TCL_ERROR);
- }
-
-- if (Default) exp_default_match_max = size;
-- else esPtr->umsize = size;
-+ if (Default) {
-+ exp_default_match_max = size;
-+ exp_default_match_max_changed = 1;
-+ }
-+ else {
-+ esPtr->umsize = size;
-+ esPtr->umsize_changed = 1;
-+ }
-
- return(TCL_OK);
- }
diff --git a/devel/expect/expect-5.43.0-tcl_8.5.5_fix-1.patch
b/devel/expect/expect-5.43.0-tcl_8.5.5_fix-1.patch
deleted file mode 100644
index 5b9596a..0000000
--- a/devel/expect/expect-5.43.0-tcl_8.5.5_fix-1.patch
+++ /dev/null
@@ -1,125 +0,0 @@
-Submitted By: DJ Lucas <dj_AT_linuxfromscratch_DOT_org>
-Date: 2008-09-28
-Initial Package Version: 5.43
-Upstream status: Not Submitted
-Origin: LFS ticket 2126 (http://wiki.linuxfromscratch.org/lfs/ticket/2126)
- Bryan Kadzban <bryan AT kadzban.is-a-geek.net>
-Description: Removes references to functions that Tcl 8.5 no longer exposes
- and correct other minor build problems WRT TCL-8.5.x.
-
-diff -Naur expect-5.43-orig/Dbg.c expect-5.43/Dbg.c
---- expect-5.43-orig/Dbg.c 2002-03-22 22:11:54.000000000 -0600
-+++ expect-5.43/Dbg.c 2008-08-24 01:30:15.000000000 -0500
-@@ -9,7 +9,7 @@
- */
-
- #include <stdio.h>
--
-+#include "expect_cf.h"
- #include "tcldbgcf.h"
- #if 0
- /* tclInt.h drags in stdlib. By claiming no-stdlib, force it to drag in */
-diff -Naur expect-5.43-orig/exp_inter.c expect-5.43/exp_inter.c
---- expect-5.43-orig/exp_inter.c 2004-08-17 21:03:00.000000000 -0500
-+++ expect-5.43/exp_inter.c 2008-08-24 01:28:59.000000000 -0500
-@@ -36,6 +36,7 @@
- #include <ctype.h>
-
- #include "tcl.h"
-+#include "tclInt.h"
- #include "string.h"
-
- #include "exp_tty_in.h"
-diff -Naur expect-5.43/exp_command.c expect-5.43-patched/exp_command.c
---- expect-5.43/exp_command.c 2004-08-20 13:18:01.000000000 -0400
-+++ expect-5.43-patched/exp_command.c 2008-01-12 11:42:45.000000000 -0500
-@@ -2265,6 +2265,8 @@
- /*NOTREACHED*/
- }
-
-+static struct exp_cmd_data cmd_data[];
-+
- /*ARGSUSED*/
- static int
- Exp_CloseObjCmd(clientData, interp, objc, objv)
-@@ -2311,12 +2313,23 @@
- /* Historical note: we used "close" long before there was a */
- /* Tcl builtin by the same name. */
-
-+ /* The code that registered this function as the handler for */
-+ /* the "close" command stored away the old handler in the */
-+ /* exp_cmd_data for the "close" command. */
-+
-+ struct exp_cmd_data *cmd_ptr;
- Tcl_CmdInfo info;
-+
-+ for(cmd_ptr = &cmd_data[0]; cmd_ptr->name; cmd_ptr++) {
-+ if(strncmp(cmd_ptr->name, "close", 5) == 0)
-+ break;
-+ }
-+
- Tcl_ResetResult(interp);
- if (0 == Tcl_GetCommandInfo(interp,"close",&info)) {
- info.clientData = 0;
- }
-- return(Tcl_CloseObjCmd(info.clientData,interp,objc_orig,objv_orig));
-+
return(cmd_ptr->old_objProc(info.clientData,interp,objc_orig,objv_orig));
- }
-
- if (chanName) {
-@@ -2961,7 +2974,10 @@
- /* if successful (i.e., TCL_RETURN is returned) */
- /* modify the result, so that we will handle it specially */
-
-- int result = Tcl_ReturnObjCmd(clientData,interp,objc,objv);
-+ Tcl_CmdInfo info;
-+ Tcl_GetCommandInfo(interp, "return", &info);
-+
-+ int result = info.objProc(clientData,interp,objc,objv);
- if (result == TCL_RETURN)
- result = EXP_TCL_RETURN;
- return result;
-@@ -3062,8 +3078,7 @@
-
- for (;c->name;c++) {
- /* if already defined, don't redefine */
-- if ((c->flags & EXP_REDEFINE) ||
-- !(Tcl_FindHashEntry(&globalNsPtr->cmdTable,c->name) ||
-+ if (!(Tcl_FindHashEntry(&globalNsPtr->cmdTable,c->name) ||
- Tcl_FindHashEntry(&currNsPtr->cmdTable,c->name))) {
- if (c->objproc)
- Tcl_CreateObjCommand(interp,c->name,
-@@ -3072,6 +3087,21 @@
- Tcl_CreateCommand(interp,c->name,c->proc,
- c->data,exp_deleteProc);
- }
-+ else if (c->flags & EXP_REDEFINE) { /* unless the REDEFINE
flag is present */
-+ Tcl_CmdInfo info;
-+
-+ if (Tcl_GetCommandInfo(interp, c->name, &info)) {
-+ c->old_proc = info.proc;
-+ c->old_objProc = info.objProc;
-+ }
-+
-+ if (c->objproc)
-+ Tcl_CreateObjCommand(interp,c->name,
-+
c->objproc,c->data,exp_deleteObjProc);
-+ else
-+ Tcl_CreateCommand(interp,c->name,c->proc,
-+ c->data,exp_deleteProc);
-+ }
- if (!(c->name[0] == 'e' &&
- c->name[1] == 'x' &&
- c->name[2] == 'p')
-diff -Naur expect-5.43/exp_command.h expect-5.43-patched/exp_command.h
---- expect-5.43/exp_command.h 2008-01-12 11:44:11.000000000 -0500
-+++ expect-5.43-patched/exp_command.h 2008-01-12 11:26:05.000000000 -0500
-@@ -297,6 +297,8 @@
- Tcl_CmdProc *proc;
- ClientData data;
- int flags;
-+ Tcl_CmdProc *old_proc; /* these store the procedure for the
old command, */
-+ Tcl_ObjCmdProc *old_objProc; /* if any */
- };
-
- EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *,
diff --git a/devel/ghc/DETAILS b/devel/ghc/DETAILS
index c0b7158..7e1dddc 100755
--- a/devel/ghc/DETAILS
+++ b/devel/ghc/DETAILS
@@ -10,7 +10,7 @@ if [[ ! -x /usr/bin/ghc ]] ; then
SOURCE2=$SPELL-$VERSION-$ARCH-unknown-linux-n.tar.bz2
SOURCE2_URL[0]=http://darcs.haskell.org/download/dist/$VERSION/$SOURCE2

SOURCE2_HASH=sha512:b19b46d62587b9ef0b46f5c9aed05fa009009884ca15db8c43002b1c9d344db0dc019431971e7bcd8264e39505f5762d8cc840fd570d7438dfa1ffbf0068c3c4
- [ "$ARCH" = "x86_64" ] &&
SOURCE2_HASH=sha512:697ac33529bb651d98a1f81f65323ef19c8ccb9ca62265dab6daa90558b78b1a38520bafafa8403bc89243f0831b42872019107560448a609fd54f3672fe57fb
+ [ "$ARCH" = "x86_64" ] &&
SOURCE2_HASH=sha512:ab5fb2dc550162279ede57e543dfff1827c3b8494945c33a484533ee04a23e1ae32e0d617454ce92d3e4165f2ae4d4532f86495ce1f455567ff893b3403bce25
fi

LICENSE[0]=BSD
diff --git a/devel/ghc/HISTORY b/devel/ghc/HISTORY
index bfa1e61..459026d 100644
--- a/devel/ghc/HISTORY
+++ b/devel/ghc/HISTORY
@@ -1,3 +1,6 @@
+2010-10-10 Bor Kraljič <pyrobor AT ver.si>
+ * DETAILS: fixed SOURCE2_HASH. It wasn't updated with version bump
for x86_64
+
2010-08-22 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* DETAILS: version 6.12.3




  • [SM-Commit] GIT changes to master grimoire by Bor Kraljič (8c6820175c69d9cc53fd601c985f3bf320d8f7df), Bor Kraljič, 10/10/2010

Archive powered by MHonArc 2.6.24.

Top of Page