From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] leaktracer: New package
Date: Wed, 6 Jul 2016 23:35:24 +0200 [thread overview]
Message-ID: <f6cb2b96-270c-d11e-d6dd-c8d4fc14d00c@gmail.com> (raw)
In-Reply-To: <1467412308-17545-1-git-send-email-maxime.hadjinlian@gmail.com>
Hi Maxime,
Le 02/07/2016 ? 00:31, Maxime Hadjinlian a ?crit :
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
> ---
> package/Config.in | 1 +
> package/leaktracer/Config.in | 8 ++++++++
> package/leaktracer/leaktracer.mk | 27 +++++++++++++++++++++++++++
> 3 files changed, 36 insertions(+)
> create mode 100644 package/leaktracer/Config.in
> create mode 100644 package/leaktracer/leaktracer.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 5779d04..b465fe9 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -88,6 +88,7 @@ menu "Debugging, profiling and benchmark"
> source "package/ktap/Config.in"
> source "package/kyua/Config.in"
> source "package/latencytop/Config.in"
> + source "package/leaktracer/Config.in"
> source "package/lmbench/Config.in"
> if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
> source "package/lsof/Config.in"
> diff --git a/package/leaktracer/Config.in b/package/leaktracer/Config.in
> new file mode 100644
> index 0000000..18c07a7
> --- /dev/null
> +++ b/package/leaktracer/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_LEAKTRACER
> + bool "leaktracer"
leaktracer must depends on !musl and !uClibc-ng since it use execinfo.h
libleaktracer/include/MemoryTrace.hpp:25:22: fatal error: execinfo.h: No such
file or directory
#include <execinfo.h>
see
http://www.openwall.com/lists/musl/2015/04/09/3
Best regards,
Romain
> + help
> + LeakTracer is a small tool written to check a C++ program for memory
> + leaks. Ideal if valgrind is not ported to your platform or if you
> + can't use libduma.
> +
> + https://github.com/fredericgermain/LeakTracer
> diff --git a/package/leaktracer/leaktracer.mk b/package/leaktracer/leaktracer.mk
> new file mode 100644
> index 0000000..73dd0fc
> --- /dev/null
> +++ b/package/leaktracer/leaktracer.mk
> @@ -0,0 +1,27 @@
> +################################################################################
> +#
> +# leaktracer
> +#
> +################################################################################
> +
> +LEAKTRACER_VERSION = b1b6c44762669de4fa6b48a02a813bfd3eb53a23
> +LEAKTRACER_SITE = $(call github,fredericgermain,leaktracer,$(LEAKTRACER_VERSION))
> +LEAKTRACER_LICENSE = LGPLv2.1+ (Library) GPLv2+ (manual and tools)
> +LEAKTRACER_LICENSE_FILES = COPYING COPYING.LIB
> +LEAKTRACER_INSTALL_STAGING = YES
> +
> +define LEAKTRACER_BUILD_CMDS
> + $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" OBJDIR="$(@D)/build" -C $(@D)
> +endef
> +
> +define LEAKTRACER_INSTALL_STAGING_CMDS
> + $(MAKE) -C $(@D) install \
> + DESTDIR="$(STAGING_DIR)" PREFIX=/usr OBJDIR="$(@D)/build"
> +endef
> +
> +define LEAKTRACER_INSTALL_TARGET_CMDS
> + $(MAKE) -C $(@D) install \
> + DESTDIR="$(TARGET_DIR)" PREFIX=/usr OBJDIR="$(@D)/build"
> +endef
> +
> +$(eval $(generic-package))
>
next prev parent reply other threads:[~2016-07-06 21:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-01 22:31 [Buildroot] [PATCH] leaktracer: New package Maxime Hadjinlian
2016-07-06 21:35 ` Romain Naour [this message]
2016-07-24 21:49 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f6cb2b96-270c-d11e-d6dd-c8d4fc14d00c@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox