diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2007-12-24 09:56:31 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2007-12-24 09:56:31 +0000 |
commit | 237681c863dd72fcd04e87d4f4304a0ab8129688 (patch) | |
tree | bc8f711f48d38e21c9747480e66bfeb774777511 /dev-util/leaktracer | |
parent | Added hppa to KEYWORDS. (diff) | |
download | gentoo-2-237681c863dd72fcd04e87d4f4304a0ab8129688.tar.gz gentoo-2-237681c863dd72fcd04e87d4f4304a0ab8129688.tar.bz2 gentoo-2-237681c863dd72fcd04e87d4f4304a0ab8129688.zip |
Added to-be-included multi-stack patch. Fixed various compilation issues. Added patch to fix possible output problems on 64bit. Fixed bug #189399 by disabling tests (see comment)
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'dev-util/leaktracer')
-rw-r--r-- | dev-util/leaktracer/ChangeLog | 10 | ||||
-rw-r--r-- | dev-util/leaktracer/files/digest-leaktracer-2.4-r1 | 3 | ||||
-rw-r--r-- | dev-util/leaktracer/leaktracer-2.4-r1.ebuild | 57 |
3 files changed, 69 insertions, 1 deletions
diff --git a/dev-util/leaktracer/ChangeLog b/dev-util/leaktracer/ChangeLog index c458b594c24a..87610b2f113a 100644 --- a/dev-util/leaktracer/ChangeLog +++ b/dev-util/leaktracer/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-util/leaktracer # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/leaktracer/ChangeLog,v 1.10 2007/03/05 03:52:55 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/leaktracer/ChangeLog,v 1.11 2007/12/24 09:56:30 dev-zero Exp $ + +*leaktracer-2.4-r1 (24 Dec 2007) + + 24 Dec 2007; Tiziano Müller <dev-zero@gentoo.org> + +leaktracer-2.4-r1.ebuild: + Added to-be-included multi-stack patch. Fixed various compilation issues. + Added patch to fix possible output problems on 64bit. Fixed bug #189399 by + disabling tests (see comment) 05 Mar 2007; Marius Mauch <genone@gentoo.org> leaktracer-2.4.ebuild: Replacing einfo with elog diff --git a/dev-util/leaktracer/files/digest-leaktracer-2.4-r1 b/dev-util/leaktracer/files/digest-leaktracer-2.4-r1 new file mode 100644 index 000000000000..176a91e62a71 --- /dev/null +++ b/dev-util/leaktracer/files/digest-leaktracer-2.4-r1 @@ -0,0 +1,3 @@ +MD5 6e00ade602757621f7147e24ebbaf1c7 leaktracer-2.4-gentoo_p1.tbz2 18392 +RMD160 57f5264766d553f599044a4d2f0f010d91a2927c leaktracer-2.4-gentoo_p1.tbz2 18392 +SHA256 f29c4b0b9ff57602bcfc37cdd3e574085882ba1a8f32c381d05f6acedd91fb75 leaktracer-2.4-gentoo_p1.tbz2 18392 diff --git a/dev-util/leaktracer/leaktracer-2.4-r1.ebuild b/dev-util/leaktracer/leaktracer-2.4-r1.ebuild new file mode 100644 index 000000000000..413d772d1ac3 --- /dev/null +++ b/dev-util/leaktracer/leaktracer-2.4-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-util/leaktracer/leaktracer-2.4-r1.ebuild,v 1.1 2007/12/24 09:56:30 dev-zero Exp $ + +inherit eutils multilib toolchain-funcs + +# Upstream-package has no version in it's name. +# We therefore repackage it directly, together with the patches. +PATCH_LEVEL="1" + +DESCRIPTION="trace and analyze memory leaks in C++ programs" +HOMEPAGE="http://www.andreasen.org/LeakTracer/" +SRC_URI="mirror://gentoo/${P}-gentoo_p${PATCH_LEVEL}.tbz2" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND=">=dev-lang/perl-5 + sys-devel/gdb" +RDEPEND="${DEPEND}" + +# leaktracer is being realized using LD_PRELOAD and segfaults +# when being run in the sandbox and the library is _not_ in +# /usr/$(get_libdir) which is not possible before installation +RESTRICT="test" + +src_unpack() { + unpack ${A} + cd "${S}" + + EPATCH_SOURCE="${WORKDIR}/patches" + EPATCH_SUFFIX="patch" + epatch + + sed -i \ + -e "s|%LIB%|$(get_libdir)|" \ + LeakCheck || die "sed for setting lib path failed" +} + +src_compile() { + emake CXX=$(tc-getCXX) LDFLAGS=${LDFLAGS} || die "emake failed" +} + +src_install() { + dobin LeakCheck leak-analyze || die "dobin failed" + dolib.so LeakTracer.so || die "dolib.so failed" + dohtml README.html + dodoc README "${WORKDIR}/patches/multi-stack.readme" +} + +pkg_postinst() { + elog "To use LeakTracer, run LeakCheck my_prog and then leak-analyze my_prog leak.out" + elog "Please reffer to README file for more info." +} + |