--- leaktracer-2.4.orig/Makefile +++ leaktracer-2.4/Makefile @@ -7,7 +7,8 @@ THREAD=-DTHREAD_SAVE -D_REENTRANT -D_THREAD_SAFE -pthread # Common flags -C_FLAGS = -g -pipe -Wall -W $(THREAD) +CFLAGS = -g -Wall -W +C_FLAGS = $(CFLAGS) -pipe $(THREAD) O_FLAGS = $(C_FLAGS) # Object files @@ -22,6 +23,9 @@ clean: tidy rm -f $(OBJ) leak.out +realclean: clean + rm -f test *.so + tidy: rm -f *~ *orig *bak *rej --- leaktracer-2.4.orig/LeakCheck +++ leaktracer-2.4/LeakCheck @@ -8,7 +8,7 @@ # LeakCheck script resides; modify to your # needs: SHLIB=`dirname $0`/LeakTracer.so -if [ ! -x $SHLIB ] ; then +if [ ! -r $SHLIB ] ; then echo "$SHLIB not found" exit 1 fi --- leaktracer-2.4.orig/debian/LeakTracer.sgml +++ leaktracer-2.4/debian/LeakTracer.sgml @@ -0,0 +1,115 @@ + + + + + + + June 7, 2003 + +
+ dirson@debian.org +
+ + Yann + Dirson + + + 2001 + 2003 + Yann Dirson + + +]]> + + + LeakTracer + 1 + + + + LeakTracer + + a memory-usage debugger for C++ programs + + + + + LeakCheck + program + program arguments + + + + leak-analyze + program + leak.out + main + program arguments + + + + + Description + + This manual page documents briefly the LeakCheck + and leak-analyze commands. + + This manual page was written for the + Debian distribution because the + original program does not have a manual page. Instead, it has + documentation in the HTML format; see + below. + + LeakCheck is a small script that executes a C++ + program while logging informations about calls to + new and delete into a + leak.out file. + + leak-analyze gives a human-readable report of + the contents of a leak.out file, by calling + gdb 1 to + display the faulty lines. + + + + Options + + These programs accept no special options. For an + explanation of the possible arguments to leak-analyze, + see the full documentation. + + + + See also + + The official documentation in + /usr/share/doc/leaktracer/README.*, available both in + HTML and plain text. + + gdb 1 + + + + Author + + This manual page was written by Yann Dirson + dirson@debian.org for the + Debian system (but may be used by + others). Permission is granted to copy, distribute and/or modify + this document under the terms of the GNU Free + Documentation License, Version 1.1, as published by the Free + Software Foundation, with no Invariant Sections, no Front-Cover + Texts and no Back-Cover Texts. + +
+ + --- leaktracer-2.4.orig/debian/changelog +++ leaktracer-2.4/debian/changelog @@ -0,0 +1,75 @@ +leaktracer (2.4-5) unstable; urgency=low + + * Stop declaring obsolete task c-dev (Closes: #318940). + * Bumped Standards-Version to 3.6.2, no change. + * Bumped debhelper compat level to 4, no change. + + -- Yann Dirson Mon, 18 Jul 2005 23:16:06 +0200 + +leaktracer (2.4-4) unstable; urgency=low + + * Build with g++-4.0. + + -- Yann Dirson Tue, 5 Jul 2005 23:32:24 +0200 + +leaktracer (2.4-3) unstable; urgency=low + + * Removed XB-Task field from debian/control and use a parameter to + dh_gencontrol instead, since dpkg-gencontrol messes with the field's + case (Closes: #305754). + * Removed g++ from the build-deps, it is essential now. + * Added debian/watch file - mostly useless since upstream does not put + version in the tarball name. + * Bumped Standards-Version to 3.6.1, no change. + + -- Yann Dirson Tue, 26 Apr 2005 22:35:30 +0200 + +leaktracer (2.4-2) unstable; urgency=low + + * Fixed manpage SGML markup (CLoses: #223779). + * Extract manpage generation into its own rule. + * Prefixed Task: field with XB- in debian/control. + + -- Yann Dirson Fri, 9 Jan 2004 14:58:55 +0100 + +leaktracer (2.4-1) unstable; urgency=low + + * New upstream release. + * Use dh-buildinfo. + + -- Yann Dirson Mon, 22 Sep 2003 14:55:04 +0200 + +leaktracer (2.3-3) unstable; urgency=low + + * s/info/html/ in manpage (Closes: #194284). + * Commented out refentryinfo in manpage, since that's not supported by + the converter. + * Be sure to remove auxiliary generated files from docbook2man on + debian/rules clean. + * Rebuilt with g++ 3.3. + * Build with -g -O2 as per current policy, and support "noopt" flag + instead of "debug". + * Install the LD_PRELOAD object in a subdir of /usr/lib/, since that's + not a real full-fledged shared lib (lintian). + * Use debian/compat; build-deb on debhelper 3.4.4. + * Updated debian/rules copyright. + * Bumped Standards-Version to 3.5.10. + + -- Yann Dirson Sat, 7 Jun 2003 17:39:55 +0200 + +leaktracer (2.3-2) unstable; urgency=low + + * Rebuilt for the g++-3.2 transition. + + -- Yann Dirson Thu, 9 Jan 2003 10:11:10 +0100 + +leaktracer (2.3-1) unstable; urgency=low + + * Initial Release (Closes: #141937). + * Changed Makefile to ease CFLAGS tweeking. + * Added realclean: target to Makefile. + * Written a small manpage. Format it with docbook-utils, as docbook-to-man + does a wrong job here. + + -- Yann Dirson Thu, 9 Apr 2002 21:31:44 +0200 + --- leaktracer-2.4.orig/debian/rules +++ leaktracer-2.4/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# debian/rules for leaktrace +# (c) 2001-2003 by Yann Dirson +# based on sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +CFLAGS=-Wall -W -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp + +build-stamp: debian/LeakTracer.1 + dh_testdir + + $(MAKE) CFLAGS="${CFLAGS}" + + touch build-stamp + +%.1: %.sgml + cd `dirname $<` && docbook2man `basename $<` + +clean: + dh_testdir + dh_testroot + rm -f build-stamp debian/LeakTracer.1 debian/manpage.refs + + -$(MAKE) realclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/bin usr/lib/leaktracer + + cp -p leak-analyze debian/leaktracer/usr/bin + sed "s,\`dirname \$$0\`,/usr/lib/leaktracer," < LeakCheck \ + > debian/leaktracer/usr/bin/LeakCheck + chmod +x debian/leaktracer/usr/bin/LeakCheck + cp -p LeakTracer.so debian/leaktracer/usr/lib/leaktracer + + mkdir -p debian/leaktracer/usr/share/man/man1/ + install -m644 debian/LeakTracer.1 \ + debian/leaktracer/usr/share/man/man1/ + cd debian/leaktracer/usr/share/man/man1/ && \ + ln -s LeakTracer.1 LeakCheck.1 && \ + ln -s LeakTracer.1 leak-analyze.1 + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README* + dh_buildinfo +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs +# dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- leaktracer-2.4.orig/debian/control +++ leaktracer-2.4/debian/control @@ -0,0 +1,20 @@ +Source: leaktracer +Section: devel +Priority: optional +Maintainer: Yann Dirson +Build-Depends: debhelper (>= 4), docbook-utils, dh-buildinfo +Standards-Version: 3.6.2 + +Package: leaktracer +Architecture: any +Depends: gdb, ${shlibs:Depends}, ${perl:Depends} +Description: Simple and efficient memory-leak tracer for C++ programs + LeakTracer traces calls to new and delete, and reports + inconsistencies in the C++-level memory-management. + . + It has limitations (eg. when you override the new and delete + operators yourself), but is very easy to use (eg. compared to more + complete tools like mpatrol), traces the C++ level (unlike most other + tools), and gives pretty good results. + . + It uses gdb to display source-file information. --- leaktracer-2.4.orig/debian/leaktracer.doc-base +++ leaktracer-2.4/debian/leaktracer.doc-base @@ -0,0 +1,14 @@ +Document: leaktracer +Title: LeakTracer Manual +Author: Erwin Andreasen +Abstract: This manual describes how LeakTracer can be used to + find memory leaks and other memory-management problems in + C++ programs. +Section: Apps/Programming + +Format: text +Files: /usr/share/doc/leaktracer/README.gz + +Format: HTML +Index: /usr/share/doc/leaktracer/README.html +Files: /usr/share/doc/leaktracer/README.html --- leaktracer-2.4.orig/debian/copyright +++ leaktracer-2.4/debian/copyright @@ -0,0 +1,15 @@ +This package was debianized by Yann Dirson in +April 2002. + +It was downloaded from http://www.andreasen.org/LeakTracer/ + +Upstream Authors: + +Initial version of LeakTracer was written by Erwin Andreasen. Henner +Zeller (foobar@to.com) contributed a rewrite of the code which +introduced dynamic loading of LeakTracer and more. + + +Copyright: + +LeakTracer is public domain (i.e. do with it whatever you feel like). --- leaktracer-2.4.orig/debian/compat +++ leaktracer-2.4/debian/compat @@ -0,0 +1 @@ +4 --- leaktracer-2.4.orig/debian/watch +++ leaktracer-2.4/debian/watch @@ -0,0 +1,3 @@ +version=2 +http://www.andreasen.org/LeakTracer/ LeakTracer.tar.gz + --- leaktracer-2.4.orig/debian/semantic.cache +++ leaktracer-2.4/debian/semantic.cache @@ -0,0 +1,14 @@ +;; Object debian/ +;; SEMANTICDB Tags save file +(semanticdb-project-database-file "debian/" + :tables (list + (semanticdb-table "rules" + :major-mode 'makefile-mode + :tags 'nil + :file "rules" + ) + ) + :file "semantic.cache" + :semantic-tag-version "2.0beta3" + :semanticdb-version "2.0beta3" + )