diff options
author | enami <enami@pkgsrc.org> | 2012-05-30 02:50:11 +0000 |
---|---|---|
committer | enami <enami@pkgsrc.org> | 2012-05-30 02:50:11 +0000 |
commit | c2487228dad6da99aabfdad50caf5d51b1072fa3 (patch) | |
tree | 3184a4d0572a95a3adc770e5646ad8eb0acb777b /lang/gauche/patches | |
parent | 57d74bcb8116e60e7058d4c9b3f1f50a0cdef3f4 (diff) | |
download | pkgsrc-c2487228dad6da99aabfdad50caf5d51b1072fa3.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/patches')
-rw-r--r-- | lang/gauche/patches/patch-gc_configure | 45 | ||||
-rw-r--r-- | lang/gauche/patches/patch-gc_dyn__load.c | 43 | ||||
-rw-r--r-- | lang/gauche/patches/patch-src_Makefile.in | 44 |
3 files changed, 88 insertions, 44 deletions
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) |