summaryrefslogtreecommitdiff
path: root/lang/gauche
diff options
context:
space:
mode:
authorenami <enami>2012-05-30 02:50:11 +0000
committerenami <enami>2012-05-30 02:50:11 +0000
commitddec53ff5fda7acd5c0704752383382b46c64254 (patch)
tree3184a4d0572a95a3adc770e5646ad8eb0acb777b /lang/gauche
parent3d6cda14043b087b791c194cf9dc55d119003b57 (diff)
downloadpkgsrc-ddec53ff5fda7acd5c0704752383382b46c64254.tar.gz
Update gauche to 0.9.3.3. Also, take over maintainership from uebayashi.
Changes are: + Bug fixes: o If DESTDIR was set and the platform didn't have previous Gauche installed, make install failed saying something like "libgauche-0.9.so.0.3: cannot open shared object file: No such file or directory". The order of installation was adjusted to avoid it. o On FreeBSD, a bug in signal setup routine caused memory corruption. o every with more than one argument list didn't return the last return value of the predicate when all the arguments satisfied it, as specified in srfi-1 (it returned #t instead). It was also the case in stream-every. Both are fixed. o On MinGW, info command didn't work. o On MinGW, when you used non-console version gosh-noconsole.exe and tried to spawn a child process to communicate via pipes, gosh-noconsole.exe just died. + Improvements: o New procedure: string-scan-right o GC is now 7.2b
Diffstat (limited to 'lang/gauche')
-rw-r--r--lang/gauche/Makefile6
-rw-r--r--lang/gauche/distinfo11
-rw-r--r--lang/gauche/patches/patch-gc_configure45
-rw-r--r--lang/gauche/patches/patch-gc_dyn__load.c43
-rw-r--r--lang/gauche/patches/patch-src_Makefile.in44
5 files changed, 97 insertions, 52 deletions
diff --git a/lang/gauche/Makefile b/lang/gauche/Makefile
index dcbd4800f80..1b037af9064 100644
--- a/lang/gauche/Makefile
+++ b/lang/gauche/Makefile
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.60 2012/05/13 08:56:28 obache Exp $
+# $NetBSD: Makefile,v 1.61 2012/05/30 02:50:11 enami Exp $
#
-DISTNAME= Gauche-0.9.3.2
+DISTNAME= Gauche-0.9.3.3
#PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gauche/}
EXTRACT_SUFX= .tgz
-MAINTAINER= uebayasi@NetBSD.org
+MAINTAINER= enami@NetBSD.org
HOMEPAGE= http://practical-scheme.net/gauche/
COMMENT= R5RS Scheme implementation aimed to be a handy tool for daily works
diff --git a/lang/gauche/distinfo b/lang/gauche/distinfo
index e6c3bae795d..42a79237f98 100644
--- a/lang/gauche/distinfo
+++ b/lang/gauche/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.30 2012/05/14 23:44:56 enami Exp $
+$NetBSD: distinfo,v 1.31 2012/05/30 02:50:11 enami Exp $
-SHA1 (Gauche-0.9.3.2.tgz) = e2e3f4553674d02a0800c981325de3fef858d9f6
-RMD160 (Gauche-0.9.3.2.tgz) = 5dabfcc8da758d6c5df53b57407c8adf7fb2311e
-Size (Gauche-0.9.3.2.tgz) = 5009978 bytes
+SHA1 (Gauche-0.9.3.3.tgz) = 71d7ca3eceb9adc1de33455c1616cbed89d226f7
+RMD160 (Gauche-0.9.3.3.tgz) = d5a2fd474b068f8bbc52cb5fe93685ba4bc73b90
+Size (Gauche-0.9.3.3.tgz) = 5042189 bytes
SHA1 (patch-aa) = 44221973454aeb2b4ad1a4c9675f801a64de2806
SHA1 (patch-af) = 0741e1a047ee7935bffa215a69cc417ba67b81f2
SHA1 (patch-ag) = ee9946e364d6723b0efe3b260fc5d02ccb04621d
-SHA1 (patch-src_Makefile.in) = 54da3a1776a54c48fa194f302e486fff40537c47
+SHA1 (patch-gc_configure) = 58af779f9610199ec538d37b2c359607eddbae9b
+SHA1 (patch-gc_dyn__load.c) = 72e09b13b060fbc6dc17b689fc4c9f496901e5b8
diff --git a/lang/gauche/patches/patch-gc_configure b/lang/gauche/patches/patch-gc_configure
new file mode 100644
index 00000000000..3eb3537a34c
--- /dev/null
+++ b/lang/gauche/patches/patch-gc_configure
@@ -0,0 +1,45 @@
+$NetBSD: patch-gc_configure,v 1.1 2012/05/30 02:50:11 enami Exp $
+
+Copied from devel/boehm-gc/patches/patch-ab.
+
+--- gc/configure.orig 2012-05-28 16:01:24.000000000 +0000
++++ gc/configure
+@@ -5228,7 +5228,7 @@ $as_echo "#define DARWIN_DONT_PARSE_STAC
+
+ fi
+
+-if test "$GCC" == yes; then
++if test "$GCC" = yes; then
+ # Disable aliasing optimization unless forced to.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports -fno-strict-aliasing" >&5
+ $as_echo_n "checking whether gcc supports -fno-strict-aliasing... " >&6; }
+@@ -5436,8 +5436,8 @@ esac
+ $as_echo "$enable_shared" >&6; }
+
+ # Compile with GC_DLL defined unless building static libraries.
+-if test "${enable_shared}" == yes; then
+- if test "${enable_static}" == no; then
++if test "${enable_shared}" = yes; then
++ if test "${enable_static}" = no; then
+ $as_echo "#define GC_DLL 1" >>confdefs.h
+
+ # FIXME: Also pass -fvisibility=hidden option if GCC v4+ and not Win32.
+@@ -5491,6 +5491,9 @@ $as_echo "#define SOLARIS25_PROC_VDB_BUG
+ sparc*-*-openbsd*)
+ machdep="mach_dep.lo sparc_mach_dep.lo"
+ ;;
++ sparc64-*-netbsd*)
++ machdep="mach_dep.lo sparc_mach_dep.lo"
++ ;;
+ sparc-sun-solaris2.3)
+ machdep="mach_dep.lo sparc_mach_dep.lo"
+
+@@ -16422,7 +16425,7 @@ $as_echo "#define SMALL_CONFIG 1" >>conf
+
+ fi
+
+-if test "$enable_gc_debug" == "no"; then
++if test "$enable_gc_debug" = "no"; then
+
+ $as_echo "#define NO_DEBUGGING 1" >>confdefs.h
+
diff --git a/lang/gauche/patches/patch-gc_dyn__load.c b/lang/gauche/patches/patch-gc_dyn__load.c
new file mode 100644
index 00000000000..937fd7e98f5
--- /dev/null
+++ b/lang/gauche/patches/patch-gc_dyn__load.c
@@ -0,0 +1,43 @@
+$NetBSD: patch-gc_dyn__load.c,v 1.1 2012/05/30 02:50:11 enami Exp $
+
+commit a378494312ac9aedcb08fa7a9593506ce5620878
+Author: Shiro Kawai <shiro@acm.org>
+Date: Mon May 28 17:22:14 2012 -1000
+
+ Backport a gc patch for NetBSD 6
+
+--- gc/dyn_load.c.orig 2012-05-26 10:42:03.000000000 +0000
++++ gc/dyn_load.c
+@@ -77,6 +77,8 @@ STATIC GC_has_static_roots_func GC_has_s
+ #endif
+
+ #if defined(NETBSD)
++# include <sys/param.h>
++# include <dlfcn.h>
+ # include <machine/elf_machdep.h>
+ # define ELFSIZE ARCH_ELFSIZE
+ #endif
+@@ -644,6 +646,15 @@ GC_FirstDLOpenedLinkMap(void)
+ return(0);
+ }
+ if( cachedResult == 0 ) {
++#if defined(NETBSD) && defined(RTLD_DI_LINKMAP)
++ struct link_map *lm = NULL;
++ int rv = dlinfo(RTLD_SELF, RTLD_DI_LINKMAP, &lm);
++ if (rv != 0)
++ return (0);
++ if (lm == NULL)
++ return (0);
++ cachedResult = lm;
++#else /* !(defined(NETBSD) && defined(RTLD_DI_LINKMAP)) */
+ int tag;
+ for( dp = _DYNAMIC; (tag = dp->d_tag) != 0; dp++ ) {
+ if( tag == DT_DEBUG ) {
+@@ -653,6 +664,7 @@ GC_FirstDLOpenedLinkMap(void)
+ break;
+ }
+ }
++#endif /* !(defined(NETBSD) && defined(RTLD_DI_LINKMAP)) */
+ }
+ return cachedResult;
+ }
diff --git a/lang/gauche/patches/patch-src_Makefile.in b/lang/gauche/patches/patch-src_Makefile.in
deleted file mode 100644
index 3c3cd11037a..00000000000
--- a/lang/gauche/patches/patch-src_Makefile.in
+++ /dev/null
@@ -1,44 +0,0 @@
-$NetBSD: patch-src_Makefile.in,v 1.2 2012/05/14 23:44:57 enami Exp $
-
-commit 0e669ec43bedce845d03c65a3bd1c233673e3fd6
-Author: Shiro Kawai <shiro@acm.org>
-Date: Sun May 13 22:42:22 2012 -1000
-
- Make sure install gauche-init.scm with mode 444
-
-commit 809ed95496ff1d753f34161f28f549248124bb63
-Author: Shiro Kawai <shiro@acm.org>
-Date: Sat May 12 14:47:15 2012 -1000
-
- build fix when DESTDIR is used
-
---- src/Makefile.in.orig 2012-05-11 04:21:29.000000000 +0000
-+++ src/Makefile.in
-@@ -415,10 +415,12 @@ INSTALL_DIRS = $(DESTDIR)$(HEADER_INSTAL
- @CROSS_COMPILING_no@GAUCHE_INSTALL = ./gosh -ftest $(srcdir)/gauche-install.in
- @CROSS_COMPILING_yes@GAUCHE_INSTALL = gosh $(srcdir)/gauche-install.in
-
--install : install-core install-aux
-+install : all install-dirs install-aux install-core
-
--install-core : all relink
-+install-dirs :
- $(MKINSTDIR) $(INSTALL_DIRS)
-+
-+install-core : relink
- $(INSTALL) $(INSTALL_LIBS) $(DESTDIR)$(LIB_INSTALL_DIR)
- $(INSTALL) $(INSTALL_LIBS) $(DESTDIR)$(ARCH_INSTALL_DIR)
- $(INSTALL) -m 555 $(INSTALL_BINS) $(DESTDIR)$(BIN_INSTALL_DIR)
-@@ -426,10 +428,10 @@ install-core : all relink
- @case `$(GAUCHE_CONFIG) --arch` in *-cygwin*|*-mingw*) \
- $(INSTALL) $(INSTALL_LIBS) $(DESTDIR)$(BIN_INSTALL_DIR);;\
- esac
-- $(INSTALL) $(srcdir)/gauche-init.scm $(DESTDIR)$(SCM_INSTALL_DIR)
-+ $(INSTALL) -m 444 $(srcdir)/gauche-init.scm $(DESTDIR)$(SCM_INSTALL_DIR)
- $(POSTINSTALL)
-
--install-aux : install-core
-+install-aux :
- $(GAUCHE_INSTALL) -m 444 -S $(srcdir) $(INSTALL_HEADERS) $(DESTDIR)$(HEADER_INSTALL_DIR)
- $(GAUCHE_INSTALL) -m 444 -S $(srcdir) $(INSTALL_SUBHEADERS) $(DESTDIR)$(HEADER_INSTALL_DIR)/gauche
- $(GAUCHE_INSTALL) -m 444 -S $(srcdir) $(INSTALL_SCMS) $(DESTDIR)$(SCM_INSTALL_DIR)