Permalink
Browse files

latest boehm-gc pkgsrc from NetBSD-current

  • Loading branch information...
1 parent 5f4217e commit 490324e16752d8df58be76d4457135d1214ed176 itojun committed Mar 2, 2000
@@ -1,22 +1,26 @@
-# $NetBSD: Makefile,v 1.11 1999/05/24 20:39:37 tv Exp $
+# $NetBSD: Makefile,v 1.12 1999/09/24 16:42:05 jlam Exp $
# FreeBSD Id: Makefile,v 1.1 1996/11/16 01:51:25 jdp Exp
#
-DISTNAME= gc4.12
-PKGNAME= boehm-gc-4.12
+DISTNAME= gc5.0alpha3
+PKGNAME= boehm-gc-5.0a3
CATEGORIES= devel
-MASTER_SITES= http://reality.sgi.com/employees/boehm_mti/gc_source/
+MASTER_SITES= http://reality.sgi.com/boehm_mti/gc_source/
MAINTAINER= packages@netbsd.org
-HOMEPAGE= http://reality.sgi.com/employees/boehm_mti/gc.html
-
-NOT_FOR_PLATFORM= *-*-sparc # SEGV in "./test_cpp 1" in build: target
-NOT_FOR_PLATFORM+= *-*-alpha # needs dlopen, ELF, still SEGV's
+HOMEPAGE= http://reality.sgi.com/boehm_mti/gc.html
WRKSRC= ${WRKDIR}/gc
ALL_TARGET= BSD-pkg-all
INSTALL_TARGET= BSD-pkg-install
MAKE_ENV+= CP="${CP}" INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_MAN="${INSTALL_MAN}"
+post-extract:
+ ${MV} ${WRKSRC}/gc.man ${WRKSRC}/gc.man.in
+
+pre-build:
+ ${SED} -e "s,@PREFIX@,${PREFIX},g" ${WRKSRC}/gc.man.in \
+ > ${WRKSRC}/gc.man
+
.include "../../mk/bsd.pkg.mk"
@@ -1,3 +1,3 @@
-$NetBSD: md5,v 1.3 1998/08/07 13:21:23 agc Exp $
+$NetBSD: md5,v 1.4 1999/09/24 16:42:06 jlam Exp $
-MD5 (gc4.12.tar.gz) = 4bd802b9f586cac4a841b4730a6f3449
+MD5 (gc5.0alpha3.tar.gz) = af5221c6ce00d7dd1c4e0662e0c87008
@@ -1,5 +1,10 @@
-$NetBSD: patch-sum,v 1.1 1999/07/09 13:50:32 agc Exp $
+$NetBSD: patch-sum,v 1.5 1999/12/28 14:12:30 minoura Exp $
-MD5 (patch-aa) = a87d073f91bccbb59314c4517952be50
-MD5 (patch-ab) = 9cbea562a16550e27f2a48a3303234a7
-MD5 (patch-ac) = 28b3827fd6202e0d39aa65e77de3d820
+MD5 (patch-aa) = 45c6600f71503b6da766239e96e55ac7
+MD5 (patch-ab) = a0d21ebc72d75966e6ecbb1aaca196a3
+MD5 (patch-ac) = eda45a71c3bbbd89861e54fcc7248ecd
+MD5 (patch-ad) = dab09cbcc09d8140fe07588ab375e9ce
+MD5 (patch-ae) = 1aa3ea19d2a773f3e4a2fbdf4d83b17c
+MD5 (patch-af) = fac88bab69e4dfa6dfd93f096346a7a5
+MD5 (patch-ag) = 38b5a5d42d578b6068071f78d057395d
+MD5 (patch-ah) = 98e91c395cc2eba749868181f0b018e0
@@ -1,22 +1,20 @@
-$NetBSD: patch-aa,v 1.3 1998/08/07 10:40:22 agc Exp $
-
---- Makefile.orig Thu Aug 21 01:17:10 1997
-+++ Makefile Thu Feb 26 16:36:41 1998
-@@ -8,15 +8,35 @@
- # c++ interface to gc.a
+$NetBSD: patch-aa,v 1.6 1999/12/28 04:57:49 wiz Exp $
+--- Makefile.orig Sat Sep 11 08:49:18 1999
++++ Makefile Tue Oct 26 10:48:45 1999
+@@ -9,8 +9,8 @@
# cord/de - builds dumb editor based on cords.
- CC=cc
--CXX=CC
-+CXX=c++
- AS=as
+ ABI_FLAG=
+ CC=cc $(ABI_FLAG)
+-CXX=CC $(ABI_FLAG)
+-AS=as $(ABI_FLAG)
++CXX=c++ $(ABI_FLAG)
++AS=gcc -c -x assembler-with-cpp $(ABI_FLAG)
# The above doesn't work with gas, which doesn't run cpp.
# Define AS as `gcc -c -x assembler-with-cpp' instead.
- # Under Irix 6, you will have to specify the ABI for as if you specify
- # it for the C compiler.
+ # Under Irix 6, you will have to specify the ABI (-o32, -n32, or -64)
+@@ -18,6 +18,25 @@
--CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DATOMIC_UNCOLLECTABLE -DNO_EXECUTE_PERMISSION -DSILENT
-+CFLAGS= -O -DNO_SIGNALS -DALL_INTERIOR_POINTERS -DATOMIC_UNCOLLECTABLE \
-+ -DNO_EXECUTE_PERMISSION -DSILENT -DREDIRECT_MALLOC=GC_malloc
+ CFLAGS= -O -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT
+LEAKFLAGS=$(CFLAGS) -DFIND_LEAK
+
@@ -36,20 +34,29 @@ $NetBSD: patch-aa,v 1.3 1998/08/07 10:40:22 agc Exp $
+ ${INSTALL_DATA} libleak.a libgc.a ${PREFIX}/lib
+ ${INSTALL_DATA} gc.h gc_cpp.h ${PREFIX}/include
+ ${INSTALL_MAN} gc.man ${PREFIX}/man/man3/gc.3
-+
- # Setjmp_test may yield overly optimistic results when compiled
- # without optimization.
- # -DSILENT disables statistics printing, and improves performance.
-@@ -162,8 +182,6 @@
++
+ # For dynamic library builds, it may be necessary to add flags to generate
+ # PIC code, e.g. -fPIC on Linux.
+
+@@ -163,7 +182,7 @@
+ threadlibs.c if_mach.c if_not_there.c gc_cpp.cc gc_cpp.h weakpointer.h \
+ gcc_support.c mips_ultrix_mach_dep.s include/gc_alloc.h gc_alloc.h \
+ include/new_gc_alloc.h include/javaxfc.h sparc_sunos4_mach_dep.s \
+- solaris_threads.h backptr.h $(CORD_SRCS)
++ sparc_netbsd_mach_dep.s solaris_threads.h backptr.h $(CORD_SRCS)
+
+ OTHER_FILES= Makefile PCR-Makefile OS2_MAKEFILE NT_MAKEFILE BCC_MAKEFILE \
+ README test.c test_cpp.cc setjmp_t.c SMakefile.amiga \
+@@ -202,8 +221,6 @@
# not time-critical anyway.
# Set SPECIALCFLAGS to -q nodirect_code on Encore.
-all: gc.a gctest
-
- pcr: PCR-Makefile gc_private.h gc_hdrs.h gc.h config.h mach_dep.o $(SRCS)
+ pcr: PCR-Makefile gc_private.h gc_hdrs.h gc.h gcconfig.h mach_dep.o $(SRCS)
make -f PCR-Makefile depend
make -f PCR-Makefile
-@@ -210,13 +228,18 @@
+@@ -245,6 +262,12 @@
./if_mach HP_PA "" $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a -ldld
./if_not_there test_cpp $(CXX) $(CXXFLAGS) -o test_cpp $(srcdir)/test_cpp.cc gc_cpp.o gc.a `./threadlibs`
@@ -60,12 +67,21 @@ $NetBSD: patch-aa,v 1.3 1998/08/07 10:40:22 agc Exp $
+ @echo "Use ./test_cpp 1 to test the leak library"
+
c++: gc_cpp.o $(srcdir)/gc_cpp.h test_cpp
- rm -f on_sparc_sunos5
- ./if_mach SPARC SUNOS5 touch on_sparc_sunos5
- ./if_mach SPARC SUNOS5 $(AR) rus gc.a gc_cpp.o
- ./if_not_there on_sparc_sunos5 $(AR) ru gc.a gc_cpp.o
- ./if_not_there on_sparc_sunos5 $(RANLIB) gc.a || cat /dev/null
+ rm -f dont_ar_4
+ ./if_mach SPARC SUNOS5 touch dont_ar_4
+@@ -253,7 +276,6 @@
+ ./if_mach M68K AMIGA $(AR) -vrus gc.a gc_cpp.o
+ ./if_not_there dont_ar_4 $(AR) ru gc.a gc_cpp.o
+ ./if_not_there dont_ar_4 $(RANLIB) gc.a || cat /dev/null
- ./test_cpp 1
echo > c++
dyn_load_sunos53.o: dyn_load.c
+@@ -302,6 +324,7 @@
+ ./if_mach SPARC SUNOS5 $(AS) -o mach_dep.o $(srcdir)/sparc_mach_dep.s
+ ./if_mach SPARC SUNOS4 $(AS) -o mach_dep.o $(srcdir)/sparc_sunos4_mach_dep.s
+ ./if_mach SPARC OPENBSD $(AS) -o mach_dep.o $(srcdir)/sparc_sunos4_mach_dep.s
++ ./if_mach SPARC NETBSD $(AS) -o mach_dep.o $(srcdir)/sparc_netbsd_mach_dep.s
+ ./if_not_there mach_dep.o $(CC) -c $(SPECIALCFLAGS) $(srcdir)/mach_dep.c
+
+ mark_rts.o: $(srcdir)/mark_rts.c if_mach if_not_there $(UTILS)
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.3 1998/08/07 10:40:22 agc Exp $
+$NetBSD: patch-ab,v 1.4 1999/09/24 16:42:06 jlam Exp $
-*** gc.man.orig Fri Nov 15 08:56:14 1996
---- gc.man Fri Nov 15 09:30:14 1996
+*** gc.man.in.orig Fri Nov 15 08:56:14 1996
+--- gc.man.in Fri Nov 15 09:30:14 1996
***************
*** 9,15 ****
... malloc(...) ...
@@ -34,10 +34,10 @@ $NetBSD: patch-ab,v 1.3 1998/08/07 10:40:22 agc Exp $
+ .I gc.h
+ and
+ .I gc_cpp.h
-+ will probably be found in
-+ .I /usr/local/include,
++ will be found in
++ .I @PREFIX@/include,
+ and the libraries in
-+ .I /usr/local/lib.
++ .I @PREFIX@/lib.
+ .LP
+ These libraries have been compiled as drop-in replacements
+ for malloc and free (which is to say, all malloc
Oops, something went wrong.

0 comments on commit 490324e

Please sign in to comment.