* [Buildroot] [PATCH] leaktracer: New package
@ 2016-07-01 22:31 Maxime Hadjinlian
2016-07-06 21:35 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Hadjinlian @ 2016-07-01 22:31 UTC (permalink / raw)
To: buildroot
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"
+ 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))
--
2.8.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] leaktracer: New package
2016-07-01 22:31 [Buildroot] [PATCH] leaktracer: New package Maxime Hadjinlian
@ 2016-07-06 21:35 ` Romain Naour
2016-07-24 21:49 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2016-07-06 21:35 UTC (permalink / raw)
To: buildroot
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))
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] leaktracer: New package
2016-07-06 21:35 ` Romain Naour
@ 2016-07-24 21:49 ` Thomas Petazzoni
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-07-24 21:49 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 6 Jul 2016 23:35:24 +0200, Romain Naour wrote:
> > 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
Or alternatively (better), make sure that the Makefile does not pass
-DUSE_BACKTRACE. Indeed, it is already planned in the leaktracer source
code to support systems with <execinfo.h>. Maybe a simple patch to the
Makefile would allow passing a make variable to disable backtrace usage.
Maxime, can you look into this and respin a new version of this patch?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-24 21:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-01 22:31 [Buildroot] [PATCH] leaktracer: New package Maxime Hadjinlian
2016-07-06 21:35 ` Romain Naour
2016-07-24 21:49 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox