Date: Tue, 26 Mar 2002 17:10:31 +0100 (CET) From: jure@kom.org To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/36336: port of ccmalloc Message-ID: <20020326161031.EA16253503@mail.voljatel.si>
next in thread | raw e-mail | index | archive | help
>Number: 36336 >Category: ports >Synopsis: port of ccmalloc >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 26 08:20:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jure Menart >Release: FreeBSD 4.5-RELEASE i386 >Organization: / >Environment: FreeBSD odin.hide.voljatel.si 4.5-RELEASE FreeBSD 4.5-RELEASE #1: Tue Feb 26 16:19:33 CET 2002 root@odin.hide.voljatel.si:/usr/src/sys/compile/MYKERNEL i386 >Description: This is port of ccmalloc, memory leak detector for C/C++. >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: # # /usr/ports/devel/ccmalloc/ # /usr/ports/devel/ccmalloc/files # /usr/ports/devel/ccmalloc/files/patch-ccmalloc_freebsd # /usr/ports/devel/ccmalloc/distinfo # /usr/ports/devel/ccmalloc/Makefile # /usr/ports/devel/ccmalloc/pkg-descr # /usr/ports/devel/ccmalloc/pkg-plist # /usr/ports/devel/ccmalloc/pkg-message # /usr/ports/devel/ccmalloc/pkg-comment # echo c - /usr/ports/devel/ccmalloc/ mkdir -p /usr/ports/devel/ccmalloc/ > /dev/null 2>&1 echo c - /usr/ports/devel/ccmalloc/files mkdir -p /usr/ports/devel/ccmalloc/files > /dev/null 2>&1 echo x - /usr/ports/devel/ccmalloc/files/patch-ccmalloc_freebsd sed 's/^X//' >/usr/ports/devel/ccmalloc/files/patch-ccmalloc_freebsd << 'END-of-/usr/ports/devel/ccmalloc/files/patch-ccmalloc_freebsd' Xdiff -urP ccmalloc-0.3.9/Makefile.in new_ccmalloc-0.3.9/Makefile.in X--- ccmalloc-0.3.9/Makefile.in Wed Jan 30 15:27:10 2002 X+++ new_ccmalloc-0.3.9/Makefile.in Mon Mar 18 17:39:49 2002 X@@ -3,6 +3,7 @@ X COMPILERS=@COMPILERS@ X TARGETS=lib/libccmalloc.a @TARGETS@ bin/ccmalloc X PREFIX=@PREFIX@ X+OPSYS=@OPSYS@ X X #--------------------------------------------------------------------------# X X@@ -43,6 +44,7 @@ X -e 's,@''PREFIX@,$(PREFIX),g' \ X -e 's,@''COMPILERS@,"$(COMPILERS)",g' \ X -e 's,@''VERSION@,@VERSION@,g' \ X+ -e 's,@''OPSYS@,@OPSYS@,g' \ X src/ccmalloc.in > $@ X chmod 755 $@ X Xdiff -urP ccmalloc-0.3.9/configure new_ccmalloc-0.3.9/configure X--- ccmalloc-0.3.9/configure Wed Feb 6 10:20:53 2002 X+++ new_ccmalloc-0.3.9/configure Mon Mar 18 17:53:16 2002 X@@ -27,7 +27,8 @@ X fmt="%-26s ..." X debug=no X prefix=/usr/local X-os=unsupported X+ X+OPSYS=unsupported X X #--------------------------------------------------------------------------# X # process command line options X@@ -70,26 +71,26 @@ X SunOS ) X case `uname -r` in X 5.* ) X- os=solaris X+ OPSYS=solaris X ;; X esac X ;; X Linux ) X- os=linux X+ OPSYS=linux X ;; X FreeBSD ) X- os=freebsd X+ OPSYS=freebsd X ;; X esac X X-if [ $os = unsupported ] X+if [ $OPSYS = unsupported ] X then X echo X echo "*** configure: unsupported operating system" 1>&2 X exit 1 X fi X X-echo " $os" X+echo " $OPSYS" X X #--------------------------------------------------------------------------# X # search for C compilers X@@ -205,7 +206,7 @@ X } X EOF X X-case $os in X+case $OPSYS in X freebsd ) X LIB="" X ;; X@@ -285,8 +286,9 @@ X ( X echo "#ifndef _config_h_INCLUDED" X [ $debug = no ] && echo "#define NDEBUG" X-[ $os = solaris ] && echo "#define OS_IS_SOLARIS" X-[ $os = linux ] && echo "#define OS_IS_LINUX" X+[ $OPSYS = solaris ] && echo "#define OS_IS_SOLARIS" X+[ $OPSYS = linux ] && echo "#define OS_IS_LINUX" X+[ $OPSYS = freebsd ] && echo "#define OS_IS_FREEBSD" X [ $atexit = yes ] && echo "#define HAVE_ATEXIT" X cat<<-EOF X #define VERSION "$version" X@@ -319,6 +321,7 @@ X -e "s,@COMPILERS@,$COMPILERS,g" \ X -e "s,@VERSION@,$version,g" \ X -e "s,@TARGETS@,$TARGETS,g" \ X+-e "s,@OPSYS@,$OPSYS,g" \ X Makefile.in > $dst X X echo >> $dst Xdiff -urP ccmalloc-0.3.9/src/ccmalloc.in new_ccmalloc-0.3.9/src/ccmalloc.in X--- ccmalloc-0.3.9/src/ccmalloc.in Wed Jan 30 15:23:55 2002 X+++ new_ccmalloc-0.3.9/src/ccmalloc.in Mon Mar 18 17:53:32 2002 X@@ -9,6 +9,13 @@ X # X COMPILERS=@COMPILERS@ X PREFIX=@PREFIX@ X+OPSYS=@OPSYS@ X+ X+case $OPSYS in X+ linux | solaris) COMP_ARGS='-lccmalloc -ldl';; X+ freebsd ) COMP_ARGS='-lccmalloc';; X+ *) COMP_ARGS='-lccmalloc -ldl';; X+esac X X usage () { X echo \ X@@ -104,10 +111,10 @@ X then X wrapper="$PREFIX/lib/ccmalloc-$CC.o" X echo "ccmalloc: using '$wrapper' as C++ wrapper" X- cmd="$args $wrapper -L$PREFIX/lib -lccmalloc -ldl" X+ cmd="$args $wrapper -L$PREFIX/lib $COMP_ARGS" X else X echo "ccmalloc: no C++ wrapper for '$base' installed" X- cmd="$args -L$PREFIX/lib -lccmalloc -ldl" X+ cmd="$args -L$PREFIX/lib $COMP_ARGS" X fi X X echo $cmd END-of-/usr/ports/devel/ccmalloc/files/patch-ccmalloc_freebsd echo x - /usr/ports/devel/ccmalloc/distinfo sed 's/^X//' >/usr/ports/devel/ccmalloc/distinfo << 'END-of-/usr/ports/devel/ccmalloc/distinfo' XMD5 (ccmalloc-0.3.9.tar.gz) = 9ba598edf3b21acc6a7a6196944f5af7 END-of-/usr/ports/devel/ccmalloc/distinfo echo x - /usr/ports/devel/ccmalloc/Makefile sed 's/^X//' >/usr/ports/devel/ccmalloc/Makefile << 'END-of-/usr/ports/devel/ccmalloc/Makefile' X# New ports collection makefile for: oaf X# Date created: 1st June 2000 X# Whom: Ade Lovett <ade@FreeBSD.org> X# X# $FreeBSD: ports/devel/oaf/Makefile,v 1.18 2002/02/14 01:51:13 sobomax Exp $ X# X XPORTNAME= ccmalloc XPORTVERSION= 0.3.9 XPORTREVISION= 1 XCATEGORIES= devel XMASTER_SITES= http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/ X XMAINTAINER= jure@kom.org X XPATCH_STRIP= -p1 XUSE_PERL5= yes XUSE_GMAKE= yes XHAS_CONFIGURE= yes X XCC= gcc -g -Wall XCXX= g++ gcc CC X Xpost-install: X @${CAT} pkg-message X X.include <bsd.port.mk> END-of-/usr/ports/devel/ccmalloc/Makefile echo x - /usr/ports/devel/ccmalloc/pkg-descr sed 's/^X//' >/usr/ports/devel/ccmalloc/pkg-descr << 'END-of-/usr/ports/devel/ccmalloc/pkg-descr' XCCMalloc can help you track down memory related problems with C/C++ Xprograms. X XWWW: http://www.inf.ethz.ch/personal/biere/projects/ccmalloc/ END-of-/usr/ports/devel/ccmalloc/pkg-descr echo x - /usr/ports/devel/ccmalloc/pkg-plist sed 's/^X//' >/usr/ports/devel/ccmalloc/pkg-plist << 'END-of-/usr/ports/devel/ccmalloc/pkg-plist' Xbin/ccmalloc Xlib/libccmalloc.a Xlib/ccmalloc-c++.o Xshare/ccmalloc/ccmalloc.cfg X@dirrm share/ccmalloc END-of-/usr/ports/devel/ccmalloc/pkg-plist echo x - /usr/ports/devel/ccmalloc/pkg-message sed 's/^X//' >/usr/ports/devel/ccmalloc/pkg-message << 'END-of-/usr/ports/devel/ccmalloc/pkg-message' X XPlease take a look at sample configuration file: X /usr/local/share/ccmalloc/ccmalloc.cfg X XYou should edit it and copy it to: ~/.ccmalloc X END-of-/usr/ports/devel/ccmalloc/pkg-message echo x - /usr/ports/devel/ccmalloc/pkg-comment sed 's/^X//' >/usr/ports/devel/ccmalloc/pkg-comment << 'END-of-/usr/ports/devel/ccmalloc/pkg-comment' XC/C++ memory profiler and memory leak tracer END-of-/usr/ports/devel/ccmalloc/pkg-comment 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?20020326161031.EA16253503>