diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2009-07-03 10:52:56 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2009-07-03 10:52:56 +0000 |
commit | fa4d4dc1f16b297d757146dd5b4426e8c95c74b8 (patch) | |
tree | 620ce02ae55252343f6ac187c8b86dfd1e09544d /lang/newlisp/files | |
parent | Fix build with custom LOCALBASE. (diff) |
- Update to 10.1.0.
Notes
Notes:
svn path=/head/; revision=236974
Diffstat (limited to 'lang/newlisp/files')
-rw-r--r-- | lang/newlisp/files/patch-makefile_bsd | 20 | ||||
-rw-r--r-- | lang/newlisp/files/patch-makefile_bsd_lib | 10 | ||||
-rw-r--r-- | lang/newlisp/files/patch-makefile_bsd_utf8 | 24 | ||||
-rw-r--r-- | lang/newlisp/files/patch-newlisp.c | 24 |
4 files changed, 49 insertions, 29 deletions
diff --git a/lang/newlisp/files/patch-makefile_bsd b/lang/newlisp/files/patch-makefile_bsd index ed828d4df741..2c325c9a4221 100644 --- a/lang/newlisp/files/patch-makefile_bsd +++ b/lang/newlisp/files/patch-makefile_bsd @@ -1,19 +1,19 @@ ---- makefile_bsd.orig Thu Feb 15 01:59:11 2007 -+++ makefile_bsd Thu Feb 22 03:27:02 2007 +--- makefile_bsd.orig 2009-06-22 04:48:53.000000000 +0400 ++++ makefile_bsd 2009-07-02 14:37:54.000000000 +0400 @@ -6,14 +6,12 @@ # the option -fno-strict-aliasing may not be available on some BSD versions --CFLAGS = -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -DREADLINE -D_BSD -+CFLAGS = -c -DREADLINE -D_BSD - # for netBSD use following line - #CFLAGS = -Wall -Wno-uninitialized -Wno-strict-aliasing -O2 -c -g -D_BSD +-CFLAGS = -m32 -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -DREADLINE -D_BSD ++CFLAGS = -m32 -c -DREADLINE -D_BSD + # or without readline lib + #CFLAGS = -m32 -Wall -Wno-uninitialized -Wno-strict-aliasing -O2 -c -g -D_BSD -CC = gcc - default: $(OBJS) -- $(CC) $(OBJS) -g -lm -lreadline -lncurses -o newlisp -+ $(CC) $(OBJS) -lm -lreadline -lncurses -o newlisp - # for netBSD use following line - # $(CC) $(OBJS) -g -lm -o newlisp +- $(CC) $(OBJS) -m32 -g -lm -lreadline -lncurses -o newlisp ++ $(CC) $(OBJS) -m32 -lm -lreadline -lncurses -o newlisp + # or without readline lib + # $(CC) $(OBJS) -m32 -g -lm -o newlisp strip newlisp diff --git a/lang/newlisp/files/patch-makefile_bsd_lib b/lang/newlisp/files/patch-makefile_bsd_lib index 11c9f2423275..60f6fce40801 100644 --- a/lang/newlisp/files/patch-makefile_bsd_lib +++ b/lang/newlisp/files/patch-makefile_bsd_lib @@ -1,13 +1,13 @@ ---- makefile_bsd_lib.orig 2009-03-09 15:02:27.000000000 +0300 -+++ makefile_bsd_lib 2009-04-07 16:21:41.000000000 +0400 +--- makefile_bsd_lib.orig 2009-07-02 14:38:00.000000000 +0400 ++++ makefile_bsd_lib 2009-07-02 14:38:41.000000000 +0400 @@ -3,9 +3,7 @@ OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \ nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o pcre.o unix-lib.o --CFLAGS = -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -DREADLINE -D_BSD +-CFLAGS = -m32 -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -DREADLINE -D_BSD - -CC = gcc -+CFLAGS = -Wall -Wno-uninitialized -c -DREADLINE -D_BSD ++CFLAGS = -m32 -c -DREADLINE -D_BSD default: $(OBJS) - $(CC) $(OBJS) -lm -shared -o newlisp.so + $(CC) $(OBJS) -m32 -lm -shared -o newlisp.so diff --git a/lang/newlisp/files/patch-makefile_bsd_utf8 b/lang/newlisp/files/patch-makefile_bsd_utf8 index d6d77d394122..b8de5757737b 100644 --- a/lang/newlisp/files/patch-makefile_bsd_utf8 +++ b/lang/newlisp/files/patch-makefile_bsd_utf8 @@ -1,23 +1,19 @@ ---- makefile_bsd_utf8.orig Wed Sep 13 17:33:18 2006 -+++ makefile_bsd_utf8 Wed Sep 13 17:33:47 2006 -@@ -4,16 +4,16 @@ +--- makefile_bsd_utf8.orig 2009-06-22 04:48:53.000000000 +0400 ++++ makefile_bsd_utf8 2009-07-03 14:32:08.000000000 +0400 +@@ -4,14 +4,12 @@ OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o \ nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o --CFLAGS = -Wall -Wno-uninitialized -O2 -c -g -DREADLINE -D_BSD -DSUPPORT_UTF8 +-CFLAGS = -m32 -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -DREADLINE -D_BSD -DSUPPORT_UTF8 +CFLAGS += -c -DREADLINE -D_BSD -DSUPPORT_UTF8 - # for netBSD use following line - #CFLAGS = -Wall -Wno-uninitialized -O2 -c -g -D_BSD + # or without readline lib + #CFLAGS = -m32 -Wall -Wno-uninitialized -fno-strict-aliasing -O2 -c -g -D_BSD -DSUPPORT_UTF8 -CC = gcc -+#CC = gcc - +- default: $(OBJS) -- $(CC) $(OBJS) -g -lm -lreadline -lncurses -o newlisp +- $(CC) $(OBJS) -m32 -g -lm -lreadline -lncurses -o newlisp + $(CC) $(OBJS) -lm -lreadline -lncurses -o newlisp - # for netBSD use following line --# $(CC) $(OBJS) -g -lm -o newlisp -+# $(CC) $(OBJS) -lm -o newlisp + # or without readline lib + # $(CC) $(OBJS) -m32 -g -lm -o newlisp strip newlisp - - .c.o: diff --git a/lang/newlisp/files/patch-newlisp.c b/lang/newlisp/files/patch-newlisp.c new file mode 100644 index 000000000000..832af70184a6 --- /dev/null +++ b/lang/newlisp/files/patch-newlisp.c @@ -0,0 +1,24 @@ +--- newlisp.c.orig 2009-07-03 14:29:08.000000000 +0400 ++++ newlisp.c 2009-07-03 14:30:17.000000000 +0400 +@@ -449,16 +449,16 @@ + strncpy(initFile, getenv("DOCUMENT_ROOT"), MAX_LINE - 16); + + /* for non BSDs strlcat and strlcpy are redefined as strncat and strncpy */ +- strlcat(initFile, "/.", 3); +- strlcat(initFile, INIT_FILE, 9); ++ strlcat(initFile, "/.", sizeof(initFile)); ++ strlcat(initFile, INIT_FILE, sizeof(initFile)); + if(loadFile(initFile, 0, 0, mainContext) == NULL) + { + envPtr = getenv("NEWLISPDIR"); + if(envPtr) + { +- strlcpy(initFile, envPtr, MAX_LINE - 16); +- strlcat(initFile, "/", 2); +- strlcat(initFile, INIT_FILE, 9); ++ strlcpy(initFile, envPtr, sizeof(initFile)); ++ strlcat(initFile, "/", sizeof(initFile)); ++ strlcat(initFile, INIT_FILE, sizeof(initFile)); + loadFile(initFile, 0, 0, mainContext); + } + } |