Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Feb 2001 12:03:08 +0300
From:      skv@protey.ru
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24947: New port: gc - a garbage collecting storage allocator that is intended to be used as a plug-in replacement for C's malloc
Message-ID:  <E14Qmyq-000Cv9-00@jivago.ryazan.ru>

next in thread | raw e-mail | index | archive | help

>Number:         24947
>Category:       ports
>Synopsis:       New port: gc - a garbage collecting storage allocator that is intended to be used as a plug-in replacement for C's malloc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 08 01:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Skvortsov
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

	

>Description:

New port: gc - a garbage collecting storage allocator that is intended to be used as a plug-in replacement for C's malloc

>How-To-Repeat:

	

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	gc
#	gc/Makefile
#	gc/distinfo
#	gc/pkg-plist
#	gc/files
#	gc/files/patch-Makefile
#	gc/pkg-comment
#	gc/pkg-descr
#
echo c - gc
mkdir -p gc > /dev/null 2>&1
echo x - gc/Makefile
sed 's/^X//' >gc/Makefile << 'END-of-gc/Makefile'
X# New ports collection makefile for:	gc
X# Date created:		08 Feb 2001
X# Whom:			Sergey Skvortsov <skv@protey.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gc
XPORTVERSION= 	6.0alpha5
XCATEGORIES=	devel
XMASTER_SITES=	http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/
XDISTNAME=	${PORTNAME}${PORTVERSION}
X
XMAINTAINER=	skv@protey.ru
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XALL_TARGET=	BSD-pkg-all
XMAN3=		gc.3
X
Xdo-install:
X	${INSTALL_DATA}	${WRKSRC}/include/gc.h ${PREFIX}/include
X	${INSTALL_DATA}	${WRKSRC}/include/gc_cpp.h ${PREFIX}/include
X	${INSTALL_DATA}	${WRKSRC}/libgc.a ${PREFIX}/lib
X	${INSTALL_MAN}	${WRKSRC}/doc/gc.man ${PREFIX}/man/man3/gc.3
X
X.include <bsd.port.mk>
END-of-gc/Makefile
echo x - gc/distinfo
sed 's/^X//' >gc/distinfo << 'END-of-gc/distinfo'
XMD5 (gc6.0alpha5.tar.gz) = c8e1c89dac9d355f0d6d8e7ead2481e4
END-of-gc/distinfo
echo x - gc/pkg-plist
sed 's/^X//' >gc/pkg-plist << 'END-of-gc/pkg-plist'
Xinclude/gc.h
Xinclude/gc_cpp.h
Xlib/libgc.a
X
END-of-gc/pkg-plist
echo c - gc/files
mkdir -p gc/files > /dev/null 2>&1
echo x - gc/files/patch-Makefile
sed 's/^X//' >gc/files/patch-Makefile << 'END-of-gc/files/patch-Makefile'
X*** Makefile.orig	Thu Feb  1 12:48:37 2001
X--- Makefile	Thu Feb  1 13:08:43 2001
X***************
X*** 6,15 ****
X  #      	 and runs some tests of collector and cords.  Does not add cords or
X  #	 c++ interface to gc.a
X  # cord/de - builds dumb editor based on cords.
X! ABI_FLAG= 
X! CC=cc $(ABI_FLAG)
X! CXX=g++ $(ABI_FLAG)
X! AS=as $(ABI_FLAG)
X  #  The above doesn't work with gas, which doesn't run cpp.
X  #  Define AS as `gcc -c -x assembler-with-cpp' instead.
X  #  Under Irix 6, you will have to specify the ABI (-o32, -n32, or -64)
X--- 6,15 ----
X  #      	 and runs some tests of collector and cords.  Does not add cords or
X  #	 c++ interface to gc.a
X  # cord/de - builds dumb editor based on cords.
X! #ABI_FLAG= 
X! #CC=cc $(ABI_FLAG)
X! #CXX=g++ $(ABI_FLAG)
X! #AS=as $(ABI_FLAG)
X  #  The above doesn't work with gas, which doesn't run cpp.
X  #  Define AS as `gcc -c -x assembler-with-cpp' instead.
X  #  Under Irix 6, you will have to specify the ABI (-o32, -n32, or -64)
X***************
X*** 20,26 ****
X  srcdir= .
X  VPATH= $(srcdir)
X  
X! CFLAGS= -O -I$(srcdir)/include -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT
X  
X  # To build the parallel collector on Linux, add to the above:
X  # -DGC_LINUX_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC
X--- 20,26 ----
X  srcdir= .
X  VPATH= $(srcdir)
X  
X! CFLAGS= -O -I$(srcdir)/include -I$(srcdir) -DATOMIC_UNCOLLECTABLE -DNO_SIGNALS -DNO_EXECUTE_PERMISSION -DALL_INTERIOR_POINTERS -DSILENT
X  
X  # To build the parallel collector on Linux, add to the above:
X  # -DGC_LINUX_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC
X***************
X*** 256,262 ****
X  
X  bsd-libgc.a:
X  	$(MAKE) CFLAGS="$(CFLAGS)" clean c++-t
X! 	mv gc.a bsd-libgc.a
X  
X  BSD-pkg-install: BSD-pkg-all
X  	${CP} bsd-libgc.a libgc.a
X--- 256,262 ----
X  
X  bsd-libgc.a:
X  	$(MAKE) CFLAGS="$(CFLAGS)" clean c++-t
X! 	mv gc.a libgc.a
X  
X  BSD-pkg-install: BSD-pkg-all
X  	${CP} bsd-libgc.a libgc.a
END-of-gc/files/patch-Makefile
echo x - gc/pkg-comment
sed 's/^X//' >gc/pkg-comment << 'END-of-gc/pkg-comment'
Xa garbage collecting storage allocator that is intended to be used as a plug-in replacement for C's malloc
END-of-gc/pkg-comment
echo x - gc/pkg-descr
sed 's/^X//' >gc/pkg-descr << 'END-of-gc/pkg-descr'
XThis is a garbage collecting storage allocator that is intended to be
Xused as a plug-in replacement for C's malloc.
X
Xhttp://www.hpl.hp.com/personal/Hans_Boehm/gc
END-of-gc/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E14Qmyq-000Cv9-00>