Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package: add the duma memory debugging library
From: Baruch Siach @ 2011-10-06  8:49 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20111006101634.601b9e9f@skate>

Hi Thomas, Yann,

On Thu, Oct 06, 2011 at 10:16:34AM +0200, Thomas Petazzoni wrote:
> Le Wed, 5 Oct 2011 19:35:41 +0200,
> "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> a ?crit :
> 
> > > +	$(MAKE1) CC=$(TARGET_CC) CXX=$(TARGET_CXX) AR=$(TARGET_AR) \
> > > +		RANLIB=$(TARGET_RANLIB) DUMA_OPTIONS=$(strip $(DUMA_OPTIONS)) \
> > > +		$(DUMA_CPP) -C $(@D)
> > 
> > You forgot to pass HOSTCC, introduced in duma-2_5_15-cross-compile.patch

Well, HOSTCC is set in the top Makefile.

> Probably something like:
> 
> 	$(MAKE1) $(TARGET_CONFIGURE_OPTS) DUMA_OPTIONS=... -C $(@D)
> 
> would be even better. But then, the duma-2_5_15-cross-compile.patch
> would have to use CC_FOR_BUILD instead of HOSTCC to find the location
> of the native host compiler.

Looks better. I'll update the patch. Thanks.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

^ permalink raw reply

* [Buildroot] [Bug 4117] 2011.08: default config with qt + ssl. Linking fails
From: bugzilla at busybox.net @ 2011-10-06  8:51 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <bug-4117-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=4117

--- Comment #1 from AWa. <awa_wp@wp.pl>  ---
I confirm this bug.

arm-linux-gcc test.c -o test  -lpthread -static
/home/dl3/src/buildroot-2011.08_test/output/host/usr/lib/gcc/arm-unknown-linux-uclibcgnueabi/4.3.6/libgcc_eh.a(unwind-arm.o):
In function `__aeabi_unwind_cpp_pr0':
/home/dl3/src/buildroot-2011.08_test/output/toolchain/gcc-4.3.6/libgcc/../gcc/config/arm/unwind-arm.c:1251:
multiple definition of `__aeabi_unwind_cpp_pr0'
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a(aeabi_unwind_cpp_pr1.os):/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/./libc/sysdeps/linux/arm/../../../../libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c:29:
first defined here
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(sigprocmask.os):
In function `*__GI_sigprocmask':
/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/libc/sysdeps/linux/common/sigprocmask.c:27:
multiple definition of `sigprocmask'
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a(pt-sigprocmask.os):/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/./libc/sysdeps/linux/arm/../../../../libc/sysdeps/linux/common/sigprocmask.c:27:
first defined here
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(sigaction.os):
In function `__libc_sigaction':
/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/./libc/sysdeps/linux/arm/sigaction.c:50:
multiple definition of `__libc_sigaction'
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a(pt-sigaction.os):/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/./libc/sysdeps/linux/arm/sigaction.c:50:
first defined here
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(sigaction.os):
In function `__sigaction':
/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/libpthread/nptl/sysdeps/pthread/sigaction.c:32:
multiple definition of `__sigaction'
/home/dl3/src/buildroot-2011.08_test/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr/lib/libpthread.a(pt-sigaction.os):/home/dl3/src/buildroot-2011.08_test/output/toolchain/uClibc-0.9.32/libpthread/nptl/sysdeps/pthread/pt-sigaction.c:32:
first defined here
collect2: ld returned 1 exit status

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply

* [Buildroot] [Bug 4117] 2011.08: default config with qt + ssl. Linking fails
From: bugzilla at busybox.net @ 2011-10-06  8:58 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <bug-4117-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=4117

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com>  ---
Can you please provide your Buildroot .config + source code of the test program
?

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply

* [Buildroot] [PATCH 4/4] Add the libplayer package
From: Peter Korsgaard @ 2011-10-06  9:08 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <d0ce7b4624a0a4fc886c8fcbc9c6730e7a931981.1317636624.git.maxime.ripard@free-electrons.com>

>>>>> "Maxime" == Maxime Ripard <maxime.ripard@free-electrons.com> writes:

 Maxime> From: Maxime Ripard <maxime@free-electrons.com>
 Maxime> Signed-off-by: Maxime Ripard <maxime@free-electrons.com>

Committed with minor changes, thanks.

 Maxime> diff --git a/package/multimedia/libplayer/Config.in b/package/multimedia/libplayer/Config.in
 Maxime> new file mode 100644
 Maxime> index 0000000..38315ec
 Maxime> --- /dev/null
 Maxime> +++ b/package/multimedia/libplayer/Config.in
 Maxime> @@ -0,0 +1,27 @@
 Maxime> +config BR2_PACKAGE_LIBPLAYER
 Maxime> +	depends on BR2_LARGEFILE
 Maxime> +	bool "libplayer"
 Maxime> +	help
 Maxime> +	  libplayer provides a generic A/V API that relies on various multimedia
 Maxime> +	  player for Linux systems. It currently supports MPlayer, xine VLC and
 Maxime> +	  GStreamer only
 Maxime> +
 Maxime> +	  http://libplayer.geexbox.org/
 Maxime> +
 Maxime> +comment "Libplayer requires a toolchain with LARGEFILE support"
 Maxime> +	depends on !BR2_LARGEFILE
 Maxime> +

This should be at the bottom of the file (after the sub options),
otherwise those don't get indented under BR2_PACKAGE_LIBPLAYER

 Maxime> +if BR2_PACKAGE_LIBPLAYER
 Maxime> +config BR2_PACKAGE_LIBPLAYER_MPLAYER
 Maxime> +	depends on BR2_PACKAGE_MPLAYER
 Maxime> +	bool "Libplayer mplayer backend"

It's not really clear for people who don't know the libplayer
implementation that they need to go and enable mplayer/gstreamer to get
libplayer to do anything useful, so I've changed these 'depends on' to
select like we normally do for libraries (yes, mplayer isn't really a
library, but here it is used as one).

At the same time I tweaked the option names a bit.

-- 
Bye, Peter Korsgaard

^ permalink raw reply

* [Buildroot] [git commit] Add the libplayer package
From: Peter Korsgaard @ 2011-10-06  9:13 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=ddb3e10707eb5da80d0a9d57d251fbf626127178
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

[Peter: use select instead of depends for mplayer/gstreamer, small tweaks]
Signed-off-by: Maxime Ripard <maxime@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/multimedia/Config.in              |    1 +
 package/multimedia/libplayer/Config.in    |   30 +++++++++++++++++++
 package/multimedia/libplayer/libplayer.mk |   44 +++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+), 0 deletions(-)

diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in
index 40760b7..7b63c14 100644
--- a/package/multimedia/Config.in
+++ b/package/multimedia/Config.in
@@ -26,6 +26,7 @@ source "package/multimedia/libmms/Config.in"
 source "package/multimedia/libmpd/Config.in"
 source "package/multimedia/libmpeg2/Config.in"
 source "package/multimedia/libogg/Config.in"
+source "package/multimedia/libplayer/Config.in"
 source "package/multimedia/libreplaygain/Config.in"
 source "package/multimedia/libsamplerate/Config.in"
 source "package/multimedia/libsndfile/Config.in"
diff --git a/package/multimedia/libplayer/Config.in b/package/multimedia/libplayer/Config.in
new file mode 100644
index 0000000..c9add53
--- /dev/null
+++ b/package/multimedia/libplayer/Config.in
@@ -0,0 +1,30 @@
+config BR2_PACKAGE_LIBPLAYER
+	depends on BR2_LARGEFILE
+	bool "libplayer"
+	help
+	  libplayer provides a generic A/V API that relies on various multimedia
+	  player for Linux systems. It currently supports MPlayer, xine VLC and
+	  GStreamer only
+
+	  http://libplayer.geexbox.org/
+
+if BR2_PACKAGE_LIBPLAYER
+config BR2_PACKAGE_LIBPLAYER_MPLAYER
+	bool "mplayer backend"
+	select BR2_PACKAGE_MPLAYER
+
+config BR2_PACKAGE_LIBPLAYER_GSTREAMER
+	bool "gstreamer backend"
+	depends on BR2_USE_WCHAR # glib2
+	select BR2_PACKAGE_GSTREAMER
+
+comment "gstreamer backend requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
+
+config BR2_PACKAGE_LIBPLAYER_PYTHON
+	depends on BR2_PACKAGE_PYTHON
+	bool "Libplayer python bindings"
+endif
+
+comment "libplayer requires a toolchain with LARGEFILE support"
+	depends on !BR2_LARGEFILE
diff --git a/package/multimedia/libplayer/libplayer.mk b/package/multimedia/libplayer/libplayer.mk
new file mode 100644
index 0000000..1552431
--- /dev/null
+++ b/package/multimedia/libplayer/libplayer.mk
@@ -0,0 +1,44 @@
+#############################################################
+#
+# libplayer
+#
+#############################################################
+LIBPLAYER_VERSION = 2.0.1
+LIBPLAYER_SITE = http://libplayer.geexbox.org/releases/
+LIBPLAYER_SOURCE = libplayer-$(LIBPLAYER_VERSION).tar.bz2
+
+# When passing the standard buildroot configure arguments, the configure script
+# breaks on --target and --host options. Thus we need to define a configure cmd
+# ourselves.
+define LIBPLAYER_CONFIGURE_CMDS
+	(cd $(@D) && rm -rf config.cache && \
+	$(TARGET_CONFIGURE_OPTS) \
+	$(TARGET_CONFIGURE_ARGS) \
+	./configure \
+		--prefix=/usr \
+		--cross-compile \
+		$(SHARED_STATIC_LIBS_OPTS) \
+		$(QUIET) $(LIBPLAYER_CONF_OPT) \
+	)
+endef
+
+ifeq ($(BR2_PACKAGE_LIBPLAYER_MPLAYER),y)
+	LIBPLAYER_DEPENDENCIES += mplayer
+	LIBPLAYER_CONF_OPT += --enable-mplayer
+else
+	LIBPLAYER_CONF_OPT += --disable-mplayer
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPLAYER_GSTREAMER),y)
+	LIBPLAYER_DEPENDENCIES += gstreamer
+	LIBPLAYER_CONF_OPT += --enable-gstreamer
+else
+	LIBPLAYER_CONF_OPT += --disable-gstreamer
+endif
+
+ifeq ($(BR2_PACKAGE_LIBPLAYER_PYTHON),y)
+	LIBPLAYER_DEPENDENCIES += python
+	LIBPLAYER_CONF_OPT += --enable-binding-python
+endif
+
+$(eval $(call AUTOTARGETS,package,libplayer))

^ permalink raw reply related

* [Buildroot] [PATCHv2] package: add the duma memory debugging library
From: Baruch Siach @ 2011-10-06  9:15 UTC (permalink / raw)
  To: buildroot

Acked-by: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Changes from v1:
	When no C++ support disable it in the library itself
	Add '/usr' to the install prefix
	Use the standard TARGET_CONFIGURE_OPTS instead of open coding
	Adapt the cross compile patch to use CC_FOR_BUILD

 package/Config.in                            |    1 +
 package/duma/Config.in                       |   15 ++++++++++
 package/duma/duma-2_5_15-cross-compile.patch |   36 +++++++++++++++++++++++++
 package/duma/duma-2_5_15-separate-cpp.patch  |   23 ++++++++++++++++
 package/duma/duma.mk                         |   37 ++++++++++++++++++++++++++
 5 files changed, 112 insertions(+), 0 deletions(-)
 create mode 100644 package/duma/Config.in
 create mode 100644 package/duma/duma-2_5_15-cross-compile.patch
 create mode 100644 package/duma/duma-2_5_15-separate-cpp.patch
 create mode 100644 package/duma/duma.mk

diff --git a/package/Config.in b/package/Config.in
index 173e19d..de7d353 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -20,6 +20,7 @@ menu "Debugging, profiling and benchmark"
 source "package/bonnie/Config.in"
 source "package/dhrystone/Config.in"
 source "package/dmalloc/Config.in"
+source "package/duma/Config.in"
 source "package/kexec/Config.in"
 source "package/lmbench/Config.in"
 source "package/lsof/Config.in"
diff --git a/package/duma/Config.in b/package/duma/Config.in
new file mode 100644
index 0000000..7f7a765
--- /dev/null
+++ b/package/duma/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_DUMA
+	bool "duma"
+	help
+	  D.U.M.A. - Detect Unintended Memory Access. A fork of the Electric
+	  Fence library. Detects buffer overflow and underflow, and also memory
+	  leaks.
+
+	  http://duma.sourceforge.net
+
+if BR2_PACKAGE_DUMA
+
+config BR2_PACKAGE_DUMA_NO_LEAKDETECTION
+	bool "disable memory leak detection"
+
+endif # BR2_PACKAGE_DUMA
diff --git a/package/duma/duma-2_5_15-cross-compile.patch b/package/duma/duma-2_5_15-cross-compile.patch
new file mode 100644
index 0000000..9c44c7f
--- /dev/null
+++ b/package/duma/duma-2_5_15-cross-compile.patch
@@ -0,0 +1,36 @@
+Allow cross compilation. Adapted from crosstool-ng.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
+--- duma_2_5_15.orig/GNUmakefile	2008-08-03 21:22:38.000000000 +0200
++++ duma_2_5_15/GNUmakefile	2009-06-19 15:32:23.000000000 +0200
+@@ -93,10 +93,6 @@
+ # also define 'WIN32'
+ 
+ # some defaults:
+-CC=gcc
+-CXX=g++
+-AR=ar
+-RANLIB=ranlib
+ INSTALL=install
+ RM=rm
+ RMFORCE=rm -f
+@@ -471,7 +467,7 @@
+ 
+ createconf$(EXEPOSTFIX): createconf.o
+ 	- $(RMFORCE) createconf$(EXEPOSTFIX)
+-	$(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
++	$(CC_FOR_BUILD) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
+ 
+ tstheap$(EXEPOSTFIX): libduma.a tstheap.o
+ 	- $(RMFORCE) tstheap$(EXEPOSTFIX)
+@@ -532,7 +528,7 @@
+ # define rules how to build objects for createconf
+ #
+ createconf.o:
+-	$(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
++	$(CC_FOR_BUILD) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
+ 
+ 
+ #
diff --git a/package/duma/duma-2_5_15-separate-cpp.patch b/package/duma/duma-2_5_15-separate-cpp.patch
new file mode 100644
index 0000000..ad10882
--- /dev/null
+++ b/package/duma/duma-2_5_15-separate-cpp.patch
@@ -0,0 +1,23 @@
+Allow build without C++ support. Taken from crosstool-ng.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
+--- duma_2_5_15.orig/GNUmakefile	2009-06-19 16:41:53.000000000 +0200
++++ duma_2_5_15/GNUmakefile	2009-06-19 16:43:53.000000000 +0200
+@@ -289,9 +289,13 @@
+ 	dumatest.c tstheap.c thread-test.c testmt.c dumatestpp.cpp testoperators.cpp \
+ 	createconf.c
+ 
+-OBJECTS=dumapp.o duma.o sem_inc.o print.o
++OBJECTS = duma.o sem_inc.o print.o
++SO_OBJECTS = duma_so.o sem_inc_so.o print_so.o
+ 
+-SO_OBJECTS=dumapp_so.o duma_so.o sem_inc_so.o print_so.o
++ifeq ($(DUMA_CPP),1)
++OBJECTS += dumapp.o
++SO_OBJECTS += dumapp_so.o
++endif
+ 
+ # Make all the top-level targets the makefile knows about.
+ all:	libduma.a tstheap$(EXEPOSTFIX) dumatest$(EXEPOSTFIX) thread-test$(EXEPOSTFIX) testmt$(EXEPOSTFIX) dumatestpp$(EXEPOSTFIX) testoperators$(EXEPOSTFIX) $(DUMA_DYN_DEPS)
diff --git a/package/duma/duma.mk b/package/duma/duma.mk
new file mode 100644
index 0000000..1748e60
--- /dev/null
+++ b/package/duma/duma.mk
@@ -0,0 +1,37 @@
+#############################################################
+#
+# duma
+#
+#############################################################
+DUMA_VERSION = 2_5_15
+DUMA_SOURCE = duma_$(DUMA_VERSION).tar.gz
+DUMA_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/duma
+DUMA_INSTALL_STAGING = YES
+
+DUMA_OPTIONS = $(if $(BR2_PACKAGE_DUMA_NO_LEAKDETECTION), \
+			-DDUMA_LIB_NO_LEAKDETECTION)
+
+ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
+DUMA_CPP = DUMA_CPP=1
+else
+DUMA_CPP =
+DUMA_OPTIONS += -DDUMA_SO_NO_CPP_SUPPORT -DDUMA_LIB_NO_CPP_SUPPORT
+endif
+
+# The dependency of some source files in duma_config.h, which is generated at 
+# build time, is not specified in the Makefile. Force non-parallel build.
+define DUMA_BUILD_CMDS
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS)		\
+		DUMA_OPTIONS=$(strip $(DUMA_OPTIONS))	\
+		$(DUMA_CPP) -C $(@D)
+endef
+
+define DUMA_INSTALL_STAGING_CMDS
+	$(MAKE) prefix=$(STAGING_DIR)/usr install -C $(@D)
+endef
+
+define DUMA_INSTALL_TARGET_CMDS
+	$(MAKE) prefix=$(TARGET_DIR)/usr install -C $(@D)
+endef
+
+$(eval $(call GENTARGETS))
-- 
1.7.6.3

^ permalink raw reply related

* [Buildroot] [PATCH] pkg-stats: update script location in usage instructions
From: Sven Neumann @ 2011-10-06 12:37 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
 support/scripts/pkg-stats |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 0a030c1..64aae5f 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -22,7 +22,7 @@
 #
 # Run the script from the Buildroot toplevel directory:
 #
-#  ./scripts/pkg-stats > /tmp/pkg.html
+#  ./support/scripts/pkg-stats > /tmp/pkg.html
 #
 
 echo "<head>
-- 
1.7.4.1

^ permalink raw reply related

* [Buildroot] [PATCH] picocom: remove useless arguments from GENTARGETS
From: Sven Neumann @ 2011-10-06 12:39 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
 package/picocom/picocom.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/picocom/picocom.mk b/package/picocom/picocom.mk
index fa02594..fce50d9 100644
--- a/package/picocom/picocom.mk
+++ b/package/picocom/picocom.mk
@@ -15,4 +15,4 @@ define PICOCOM_INSTALL_TARGET_CMDS
 	install -D -m 0755 $(@D)/picocom $(TARGET_DIR)/usr/bin/picocom
 endef
 
-$(eval $(call GENTARGETS,package,picocom))
+$(eval $(call GENTARGETS))
-- 
1.7.4.1

^ permalink raw reply related

* [Buildroot] [Bug 4117] 2011.08: default config with qt + ssl. Linking fails
From: bugzilla at busybox.net @ 2011-10-06 12:39 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <bug-4117-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=4117

--- Comment #3 from AWa. <awa_wp@wp.pl>  ---
Created attachment 3619
  --> https://bugs.busybox.net/attachment.cgi?id=3619
Buildroot configuration file.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply

* [Buildroot] [PATCH] picocom: remove useless arguments from GENTARGETS
From: Peter Korsgaard @ 2011-10-06 12:46 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1317904752-21507-1-git-send-email-s.neumann@raumfeld.com>

>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:

 Sven> Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply

* [Buildroot] [git commit] picocom: remove useless arguments from GENTARGETS
From: Peter Korsgaard @ 2011-10-06 12:47 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=2e2244d6a439c2c5fa0dfeb11a6fa949158b0adf
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/picocom/picocom.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/picocom/picocom.mk b/package/picocom/picocom.mk
index fa02594..fce50d9 100644
--- a/package/picocom/picocom.mk
+++ b/package/picocom/picocom.mk
@@ -15,4 +15,4 @@ define PICOCOM_INSTALL_TARGET_CMDS
 	install -D -m 0755 $(@D)/picocom $(TARGET_DIR)/usr/bin/picocom
 endef
 
-$(eval $(call GENTARGETS,package,picocom))
+$(eval $(call GENTARGETS))

^ permalink raw reply related

* [Buildroot] [git commit] libplayer: remove unneeded extra AUTOTARGETS parameters
From: Peter Korsgaard @ 2011-10-06 12:48 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=77ffba834f81a1fb6a9d499c004eb9a8cd82085a
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/multimedia/libplayer/libplayer.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/multimedia/libplayer/libplayer.mk b/package/multimedia/libplayer/libplayer.mk
index 1552431..093821e 100644
--- a/package/multimedia/libplayer/libplayer.mk
+++ b/package/multimedia/libplayer/libplayer.mk
@@ -41,4 +41,4 @@ ifeq ($(BR2_PACKAGE_LIBPLAYER_PYTHON),y)
 	LIBPLAYER_CONF_OPT += --enable-binding-python
 endif
 
-$(eval $(call AUTOTARGETS,package,libplayer))
+$(eval $(call AUTOTARGETS))

^ permalink raw reply related

* [Buildroot] [git commit] pkg-stats: update script location in usage instructions
From: Peter Korsgaard @ 2011-10-06 12:49 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=bc9954e6d6b67556ccb4bcbf9b1e96e24a18b7e1
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 support/scripts/pkg-stats |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 0a030c1..64aae5f 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -22,7 +22,7 @@
 #
 # Run the script from the Buildroot toplevel directory:
 #
-#  ./scripts/pkg-stats > /tmp/pkg.html
+#  ./support/scripts/pkg-stats > /tmp/pkg.html
 #
 
 echo "<head>

^ permalink raw reply related

* [Buildroot] [PATCH] pkg-stats: update script location in usage instructions
From: Peter Korsgaard @ 2011-10-06 12:49 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1317904647-21410-1-git-send-email-s.neumann@raumfeld.com>

>>>>> "Sven" == Sven Neumann <s.neumann@raumfeld.com> writes:

 Sven> Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply

* [Buildroot] [Bug 4117] 2011.08: default config with qt + ssl. Linking fails
From: bugzilla at busybox.net @ 2011-10-06 12:56 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <bug-4117-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=4117

--- Comment #4 from AWa. <awa_wp@wp.pl>  ---
System:
  Linux apps 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:02:55 UTC 2011
x86_64 x86_64 x86_64 GNU/Linux

Buildroot:
  buildroot-2011.08.tar.bz2
  arm/arm926t
  Config file attached.

Test program:
  http://blog.superpat.com/2010/07/14/semaphores-on-linux-sem_init-vs-sem_open/

If this program is build with dynamic library it fail when run on sem_init()
with error: "Function not implemented".

Semaphores on my system works,  for example, when I use semget().
Program can be linked as static or dynamic executable.
Example program from:
 http://www.cs.uregina.ca/Links/class-info/330/Semaphore/semaphore.html
program7_1.cpp

AWa.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

^ permalink raw reply

* [Buildroot] GUPnP packages (update)
From: Sven Neumann @ 2011-10-06 13:14 UTC (permalink / raw)
  To: buildroot

Resubmitting these packages updated to reflect recent changes
in the buildroot package infrastructure.

^ permalink raw reply

* [Buildroot] [PATCH 1/3] new package: gssdp
From: Sven Neumann @ 2011-10-06 13:14 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1317906857-24169-1-git-send-email-s.neumann@raumfeld.com>

GSSDP implements resource discovery and announcement over SSDP.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
 package/Config.in       |    1 +
 package/gssdp/Config.in |   11 +++++++++++
 package/gssdp/gssdp.mk  |   17 +++++++++++++++++
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100755 package/gssdp/Config.in
 create mode 100755 package/gssdp/gssdp.mk

diff --git a/package/Config.in b/package/Config.in
index 7dfcc55..adb8c25 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -321,6 +321,7 @@ endmenu
 endif
 
 menu "Networking"
+source "package/gssdp/Config.in"
 source "package/libcgi/Config.in"
 source "package/libcgicc/Config.in"
 source "package/libcurl/Config.in"
diff --git a/package/gssdp/Config.in b/package/gssdp/Config.in
new file mode 100755
index 0000000..7287e69
--- /dev/null
+++ b/package/gssdp/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_GSSDP
+	bool "gssdp"
+	select BR2_PACKAGE_LIBSOUP
+	depends on BR2_USE_WCHAR
+	help
+          GSSDP implements resource discovery and announcement over SSDP.
+
+	  http://www.gupnp.org
+
+comment "gssdp requires a toolchain with WCHAR support"
+	depends on !BR2_USE_WCHAR
diff --git a/package/gssdp/gssdp.mk b/package/gssdp/gssdp.mk
new file mode 100755
index 0000000..28911a0
--- /dev/null
+++ b/package/gssdp/gssdp.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# gssdp
+#
+#############################################################
+
+GSSDP_VERSION = 0.8.2
+GSSDP_SOURCE = gssdp-$(GSSDP_VERSION).tar.gz
+GSSDP_SITE = http://www.gupnp.org/sites/all/files/sources
+GSSDP_INSTALL_STAGING = YES
+
+GSSDP_CONF_ENV = \
+	ac_cv_path_GLIB_GENMARSHAL=$(LIBGLIB2_HOST_BINARY)
+
+GSSDP_DEPENDENCIES = host-pkg-config host-libglib2 libsoup
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.4.1

^ permalink raw reply related

* [Buildroot] [PATCH 2/3] new package: gupnp
From: Sven Neumann @ 2011-10-06 13:14 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1317906857-24169-1-git-send-email-s.neumann@raumfeld.com>

GUPnP implements the UPnP specification.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
 package/Config.in       |    1 +
 package/gupnp/Config.in |   17 +++++++++++++++++
 package/gupnp/gupnp.mk  |   17 +++++++++++++++++
 3 files changed, 35 insertions(+), 0 deletions(-)
 create mode 100755 package/gupnp/Config.in
 create mode 100755 package/gupnp/gupnp.mk

diff --git a/package/Config.in b/package/Config.in
index adb8c25..bf143f4 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -322,6 +322,7 @@ endif
 
 menu "Networking"
 source "package/gssdp/Config.in"
+source "package/gupnp/Config.in"
 source "package/libcgi/Config.in"
 source "package/libcgicc/Config.in"
 source "package/libcurl/Config.in"
diff --git a/package/gupnp/Config.in b/package/gupnp/Config.in
new file mode 100755
index 0000000..ddf010b
--- /dev/null
+++ b/package/gupnp/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_GUPNP
+	bool "gupnp"
+	select BR2_PACKAGE_GSSDP
+	select BR2_PACKAGE_LIBXML2
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+	depends on BR2_LARGEFILE
+	depends on BR2_USE_WCHAR
+	help
+	  GUPnP implements the UPnP specification: resource announcement
+	  and discovery, description, control, event notification, and
+	  presentation.
+
+	  http://www.gupnp.org/
+
+comment "gupnp requires a toolchain with LARGEFILE + WCHAR support"
+	depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
diff --git a/package/gupnp/gupnp.mk b/package/gupnp/gupnp.mk
new file mode 100755
index 0000000..8d2cc23
--- /dev/null
+++ b/package/gupnp/gupnp.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# gupnp
+#
+#############################################################
+
+GUPNP_VERSION = 0.14.1
+GUPNP_SOURCE = gupnp-$(GUPNP_VERSION).tar.gz
+GUPNP_SITE = http://www.gupnp.org/sites/all/files/sources
+GUPNP_INSTALL_STAGING = YES
+
+GUPNP_CONF_ENV = \
+	ac_cv_path_GLIB_GENMARSHAL=$(LIBGLIB2_HOST_BINARY)
+
+GUPNP_DEPENDENCIES = host-pkg-config host-libglib2 libxml2 gssdp util-linux
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.4.1

^ permalink raw reply related

* [Buildroot] [PATCH 3/3] new package: gupnp-av
From: Sven Neumann @ 2011-10-06 13:14 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1317906857-24169-1-git-send-email-s.neumann@raumfeld.com>

GUPnP-AV is a collection of helpers for building AV (audio/video)
applications using GUPnP.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
---
 package/Config.in            |    1 +
 package/gupnp-av/Config.in   |    8 ++++++++
 package/gupnp-av/gupnp-av.mk |   17 +++++++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100755 package/gupnp-av/Config.in
 create mode 100755 package/gupnp-av/gupnp-av.mk

diff --git a/package/Config.in b/package/Config.in
index bf143f4..4c1c372 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -323,6 +323,7 @@ endif
 menu "Networking"
 source "package/gssdp/Config.in"
 source "package/gupnp/Config.in"
+source "package/gupnp-av/Config.in"
 source "package/libcgi/Config.in"
 source "package/libcgicc/Config.in"
 source "package/libcurl/Config.in"
diff --git a/package/gupnp-av/Config.in b/package/gupnp-av/Config.in
new file mode 100755
index 0000000..3b7537d
--- /dev/null
+++ b/package/gupnp-av/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_GUPNP_AV
+	bool "gupnp-av"
+	depends on BR2_PACKAGE_GUPNP
+	help
+	  GUPnP-AV is a collection of helpers for building AV (audio/video)
+	  applications using GUPnP.
+
+	  http://www.gupnp.org/
diff --git a/package/gupnp-av/gupnp-av.mk b/package/gupnp-av/gupnp-av.mk
new file mode 100755
index 0000000..ed1b3fb
--- /dev/null
+++ b/package/gupnp-av/gupnp-av.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# gupnp-av
+#
+#############################################################
+
+GUPNP_AV_VERSION = 0.6.3
+GUPNP_AV_SOURCE = gupnp-av-$(GUPNP_AV_VERSION).tar.gz
+GUPNP_AV_SITE = http://www.gupnp.org/sites/all/files/sources
+GUPNP_AV_INSTALL_STAGING = YES
+
+GUPNP_AV_CONF_ENV = \
+	ac_cv_path_GLIB_GENMARSHAL=$(LIBGLIB2_HOST_BINARY)
+
+GUPNP_AV_DEPENDENCIES = host-pkg-config host-libglib2 gupnp
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.4.1

^ permalink raw reply related

* [Buildroot] Add 'pv' (Pipe-Viewer) to BuildRoot
From: Roeland Van Praet @ 2011-10-06 15:00 UTC (permalink / raw)
  To: buildroot

diff -ruN a/package/Config.in b/package/Config.in
--- a/package/Config.in	2011-10-06 16:47:32.000000000 +0200
+++ b/package/Config.in	2011-10-06 16:47:47.000000000 +0200
@@ -31,6 +31,7 @@
 source "package/strace/Config.in"
 source "package/whetstone/Config.in"
 source "package/valgrind/Config.in"
+source "package/pv/Config.in"
 endmenu
 
 menu "Development tools"
diff -ruN a/package/pv/Config.in b/package/pv/Config.in
--- a/package/pv/Config.in	1970-01-01 01:00:00.000000000 +0100
+++ b/package/pv/Config.in	2011-10-06 15:50:50.000000000 +0200
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PV
+	bool "pv"
+	help
+	  Pipe Viewer - is a terminal-based tool for
+          monitoring the progress of data through a
+          pipeline.
+
+	  http://www.ivarch.com/programs/pv.shtml
diff -ruN a/package/pv/pv-1.2.0-fixld.patch
b/package/pv/pv-1.2.0-fixld.patch
--- a/package/pv/pv-1.2.0-fixld.patch	1970-01-01 01:00:00.000000000
+0100
+++ b/package/pv/pv-1.2.0-fixld.patch	2011-10-06 16:36:28.000000000
+0200
@@ -0,0 +1,12 @@
+diff -ruN a/autoconf/make/vars.mk b/autoconf/make/vars.mk
+--- a/autoconf/make/vars.mk	2010-03-11 00:43:19.000000000 +0100
++++ b/autoconf/make/vars.mk	2011-10-06 15:47:18.000000000 +0200
+@@ -30,7 +30,7 @@
+ @SET_MAKE@
+ SHELL = /bin/sh
+ CC = @CC@
+-LD = ld
++LD = $(CC:gcc=ld)
+ DO_GZIP = @DO_GZIP@
+ INSTALL = @INSTALL@
+ INSTALL_DATA = @INSTALL_DATA@
diff -ruN a/package/pv/pv.mk b/package/pv/pv.mk
--- a/package/pv/pv.mk	1970-01-01 01:00:00.000000000 +0100
+++ b/package/pv/pv.mk	2011-10-06 15:50:50.000000000 +0200
@@ -0,0 +1,13 @@
+#######################
+#
+# pv - Pipe Viewer
+#
+#######################
+
+PV_VERSION = 1.2.0
+PV_SOURCE = pv-$(PV_VERSION).tar.bz2
+PV_SITE = http://pipeviewer.googlecode.com/files
+
+PV_INSTALL_TARGET = YES
+
+$(eval $(call AUTOTARGETS,package,pv))

^ permalink raw reply

* [Buildroot] Add 'pv' (Pipe-Viewer) to BuildRoot
From: Thomas Petazzoni @ 2011-10-06 16:30 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <1317913244.21369.15.camel@roelpc.telenet.be>

Le Thu, 06 Oct 2011 17:00:44 +0200,
Roeland Van Praet <roelvp@mind.be> a ?crit :

> diff -ruN a/package/Config.in b/package/Config.in
> --- a/package/Config.in	2011-10-06 16:47:32.000000000 +0200
> +++ b/package/Config.in	2011-10-06 16:47:47.000000000 +0200
> @@ -31,6 +31,7 @@
>  source "package/strace/Config.in"
>  source "package/whetstone/Config.in"
>  source "package/valgrind/Config.in"
> +source "package/pv/Config.in"
>  endmenu
>  
>  menu "Development tools"
> diff -ruN a/package/pv/Config.in b/package/pv/Config.in
> --- a/package/pv/Config.in	1970-01-01 01:00:00.000000000 +0100
> +++ b/package/pv/Config.in	2011-10-06 15:50:50.000000000 +0200
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_PV
> +	bool "pv"
> +	help
> +	  Pipe Viewer - is a terminal-based tool for
> +          monitoring the progress of data through a
> +          pipeline.

Incorrect indentation for the help text. It should be one tab + two
spaces for each line.

> --- a/package/pv/pv-1.2.0-fixld.patch	1970-01-01 01:00:00.000000000
> +0100
> +++ b/package/pv/pv-1.2.0-fixld.patch	2011-10-06 16:36:28.000000000
> +0200

Each patch must contain a description + Signed-off-by line.

> --- a/package/pv/pv.mk	1970-01-01 01:00:00.000000000 +0100
> +++ b/package/pv/pv.mk	2011-10-06 15:50:50.000000000 +0200
> @@ -0,0 +1,13 @@
> +#######################
> +#
> +# pv - Pipe Viewer
> +#
> +#######################
> +
> +PV_VERSION = 1.2.0
> +PV_SOURCE = pv-$(PV_VERSION).tar.bz2
> +PV_SITE = http://pipeviewer.googlecode.com/files
> +
> +PV_INSTALL_TARGET = YES

Line not needed, this is the default.

> +$(eval $(call AUTOTARGETS,package,pv))

This should now be:

$(eval $(call AUTOTARGETS))

This is a very recent change in Buildroot Git, and the doc has not been
updated yet.

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply

* [Buildroot] Add 'pv' (Pipe-Viewer) to BuildRoot
From: Roeland Van Praet @ 2011-10-06 16:55 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <20111006183012.24ff3f7d@skate>

On Thu, 2011-10-06 at 18:30 +0200, Thomas Petazzoni wrote:
> Le Thu, 06 Oct 2011 17:00:44 +0200,
> Roeland Van Praet <roelvp@mind.be> a ?crit :
> 
> > diff -ruN a/package/Config.in b/package/Config.in
> > --- a/package/Config.in	2011-10-06 16:47:32.000000000 +0200
> > +++ b/package/Config.in	2011-10-06 16:47:47.000000000 +0200
> > @@ -31,6 +31,7 @@
> >  source "package/strace/Config.in"
> >  source "package/whetstone/Config.in"
> >  source "package/valgrind/Config.in"
> > +source "package/pv/Config.in"
> >  endmenu
> >  
> >  menu "Development tools"
> > diff -ruN a/package/pv/Config.in b/package/pv/Config.in
> > --- a/package/pv/Config.in	1970-01-01 01:00:00.000000000 +0100
> > +++ b/package/pv/Config.in	2011-10-06 15:50:50.000000000 +0200
> > @@ -0,0 +1,8 @@
> > +config BR2_PACKAGE_PV
> > +	bool "pv"
> > +	help
> > +	  Pipe Viewer - is a terminal-based tool for
> > +          monitoring the progress of data through a
> > +          pipeline.
> 
> Incorrect indentation for the help text. It should be one tab + two
> spaces for each line.
> 
> > --- a/package/pv/pv-1.2.0-fixld.patch	1970-01-01 01:00:00.000000000
> > +0100
> > +++ b/package/pv/pv-1.2.0-fixld.patch	2011-10-06 16:36:28.000000000
> > +0200
> 
> Each patch must contain a description + Signed-off-by line.
> 
> > --- a/package/pv/pv.mk	1970-01-01 01:00:00.000000000 +0100
> > +++ b/package/pv/pv.mk	2011-10-06 15:50:50.000000000 +0200
> > @@ -0,0 +1,13 @@
> > +#######################
> > +#
> > +# pv - Pipe Viewer
> > +#
> > +#######################
> > +
> > +PV_VERSION = 1.2.0
> > +PV_SOURCE = pv-$(PV_VERSION).tar.bz2
> > +PV_SITE = http://pipeviewer.googlecode.com/files
> > +
> > +PV_INSTALL_TARGET = YES
> 
> Line not needed, this is the default.
> 
> > +$(eval $(call AUTOTARGETS,package,pv))
> 
> This should now be:
> 
> $(eval $(call AUTOTARGETS))
> 
> This is a very recent change in Buildroot Git, and the doc has not been
> updated yet.
> 
> Thomas
> -- 
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Ok, I'll submit a new patch tomorrow.

Roeland

^ permalink raw reply

* [Buildroot] PHP not loading modules
From: Otavio Augusto @ 2011-10-06 17:20 UTC (permalink / raw)
  To: buildroot

Hi,
I install the php package e compile my own module wiht the tool chain
of buildroot.
The module is not loading by php
How do to active load dynamic module in php ?


php 5.2.17
buildroot 2011.08
.
Tank 's

-- 
Otavio Augusto
---------------------
Consultor de TI

^ permalink raw reply

* [Buildroot] [PATCH] libevent: bump version to 2.0.14
From: H Hartley Sweeten @ 2011-10-06 20:35 UTC (permalink / raw)
  To: buildroot

Released 2011-08-31.  Mostly bugfixes.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/package/libevent/libevent.mk b/package/libevent/libevent.mk
index 31122fe..76fb627 100644
--- a/package/libevent/libevent.mk
+++ b/package/libevent/libevent.mk
@@ -3,9 +3,9 @@
 # libevent
 #
 #############################################################
-LIBEVENT_VERSION = 2.0.13
+LIBEVENT_VERSION = 2.0.14
 LIBEVENT_SOURCE = libevent-$(LIBEVENT_VERSION)-stable.tar.gz
-LIBEVENT_SITE = http://monkey.org/~provos/
+LIBEVENT_SITE = https://github.com/downloads/libevent/libevent
 
 LIBEVENT_AUTORECONF = NO
 LIBEVENT_INSTALL_STAGING = YES

^ permalink raw reply related

* [Buildroot] [PATCHv2] package: add the duma memory debugging library
From: Yann E. MORIN @ 2011-10-06 21:17 UTC (permalink / raw)
  To: buildroot
In-Reply-To: <0531bbe91bfb489fd29c9fe994fb11d7b802eeb6.1317891858.git.baruch@tkos.co.il>

Baruch, All,

On Thursday 06 October 2011 11:15:46 Baruch Siach wrote:
> Acked-by: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>

Where did you see that I acked that patch? "looks good" does not mean
"acked-by". Besides, I made a comment on your v1, so I definitely did
not Ack it.

But, now, you can add my:

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>

(see the Linuc kernel doc why I add reviewd-by, and not Acked-by).

> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> Changes from v1:
> 	When no C++ support disable it in the library itself
> 	Add '/usr' to the install prefix
> 	Use the standard TARGET_CONFIGURE_OPTS instead of open coding
> 	Adapt the cross compile patch to use CC_FOR_BUILD
> 
>  package/Config.in                            |    1 +
>  package/duma/Config.in                       |   15 ++++++++++
>  package/duma/duma-2_5_15-cross-compile.patch |   36 +++++++++++++++++++++++++
>  package/duma/duma-2_5_15-separate-cpp.patch  |   23 ++++++++++++++++
>  package/duma/duma.mk                         |   37 ++++++++++++++++++++++++++
>  5 files changed, 112 insertions(+), 0 deletions(-)
>  create mode 100644 package/duma/Config.in
>  create mode 100644 package/duma/duma-2_5_15-cross-compile.patch
>  create mode 100644 package/duma/duma-2_5_15-separate-cpp.patch
>  create mode 100644 package/duma/duma.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 173e19d..de7d353 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -20,6 +20,7 @@ menu "Debugging, profiling and benchmark"
>  source "package/bonnie/Config.in"
>  source "package/dhrystone/Config.in"
>  source "package/dmalloc/Config.in"
> +source "package/duma/Config.in"
>  source "package/kexec/Config.in"
>  source "package/lmbench/Config.in"
>  source "package/lsof/Config.in"
> diff --git a/package/duma/Config.in b/package/duma/Config.in
> new file mode 100644
> index 0000000..7f7a765
> --- /dev/null
> +++ b/package/duma/Config.in
> @@ -0,0 +1,15 @@
> +config BR2_PACKAGE_DUMA
> +	bool "duma"
> +	help
> +	  D.U.M.A. - Detect Unintended Memory Access. A fork of the Electric
> +	  Fence library. Detects buffer overflow and underflow, and also memory
> +	  leaks.
> +
> +	  http://duma.sourceforge.net
> +
> +if BR2_PACKAGE_DUMA
> +
> +config BR2_PACKAGE_DUMA_NO_LEAKDETECTION
> +	bool "disable memory leak detection"
> +
> +endif # BR2_PACKAGE_DUMA
> diff --git a/package/duma/duma-2_5_15-cross-compile.patch b/package/duma/duma-2_5_15-cross-compile.patch
> new file mode 100644
> index 0000000..9c44c7f
> --- /dev/null
> +++ b/package/duma/duma-2_5_15-cross-compile.patch
> @@ -0,0 +1,36 @@
> +Allow cross compilation. Adapted from crosstool-ng.
> +
> +Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> +---
> +diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
> +--- duma_2_5_15.orig/GNUmakefile	2008-08-03 21:22:38.000000000 +0200
> ++++ duma_2_5_15/GNUmakefile	2009-06-19 15:32:23.000000000 +0200
> +@@ -93,10 +93,6 @@
> + # also define 'WIN32'
> + 
> + # some defaults:
> +-CC=gcc
> +-CXX=g++
> +-AR=ar
> +-RANLIB=ranlib
> + INSTALL=install
> + RM=rm
> + RMFORCE=rm -f
> +@@ -471,7 +467,7 @@
> + 
> + createconf$(EXEPOSTFIX): createconf.o
> + 	- $(RMFORCE) createconf$(EXEPOSTFIX)
> +-	$(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
> ++	$(CC_FOR_BUILD) $(HOSTCFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
> + 
> + tstheap$(EXEPOSTFIX): libduma.a tstheap.o
> + 	- $(RMFORCE) tstheap$(EXEPOSTFIX)
> +@@ -532,7 +528,7 @@
> + # define rules how to build objects for createconf
> + #
> + createconf.o:
> +-	$(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
> ++	$(CC_FOR_BUILD) $(HOSTCFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
> + 
> + 
> + #
> diff --git a/package/duma/duma-2_5_15-separate-cpp.patch b/package/duma/duma-2_5_15-separate-cpp.patch
> new file mode 100644
> index 0000000..ad10882
> --- /dev/null
> +++ b/package/duma/duma-2_5_15-separate-cpp.patch
> @@ -0,0 +1,23 @@
> +Allow build without C++ support. Taken from crosstool-ng.
> +
> +Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> +---
> +diff -durN duma_2_5_15.orig/GNUmakefile duma_2_5_15/GNUmakefile
> +--- duma_2_5_15.orig/GNUmakefile	2009-06-19 16:41:53.000000000 +0200
> ++++ duma_2_5_15/GNUmakefile	2009-06-19 16:43:53.000000000 +0200
> +@@ -289,9 +289,13 @@
> + 	dumatest.c tstheap.c thread-test.c testmt.c dumatestpp.cpp testoperators.cpp \
> + 	createconf.c
> + 
> +-OBJECTS=dumapp.o duma.o sem_inc.o print.o
> ++OBJECTS = duma.o sem_inc.o print.o
> ++SO_OBJECTS = duma_so.o sem_inc_so.o print_so.o
> + 
> +-SO_OBJECTS=dumapp_so.o duma_so.o sem_inc_so.o print_so.o
> ++ifeq ($(DUMA_CPP),1)
> ++OBJECTS += dumapp.o
> ++SO_OBJECTS += dumapp_so.o
> ++endif
> + 
> + # Make all the top-level targets the makefile knows about.
> + all:	libduma.a tstheap$(EXEPOSTFIX) dumatest$(EXEPOSTFIX) thread-test$(EXEPOSTFIX) testmt$(EXEPOSTFIX) dumatestpp$(EXEPOSTFIX) testoperators$(EXEPOSTFIX) $(DUMA_DYN_DEPS)
> diff --git a/package/duma/duma.mk b/package/duma/duma.mk
> new file mode 100644
> index 0000000..1748e60
> --- /dev/null
> +++ b/package/duma/duma.mk
> @@ -0,0 +1,37 @@
> +#############################################################
> +#
> +# duma
> +#
> +#############################################################
> +DUMA_VERSION = 2_5_15
> +DUMA_SOURCE = duma_$(DUMA_VERSION).tar.gz
> +DUMA_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/duma
> +DUMA_INSTALL_STAGING = YES
> +
> +DUMA_OPTIONS = $(if $(BR2_PACKAGE_DUMA_NO_LEAKDETECTION), \
> +			-DDUMA_LIB_NO_LEAKDETECTION)
> +
> +ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
> +DUMA_CPP = DUMA_CPP=1
> +else
> +DUMA_CPP =
> +DUMA_OPTIONS += -DDUMA_SO_NO_CPP_SUPPORT -DDUMA_LIB_NO_CPP_SUPPORT
> +endif
> +
> +# The dependency of some source files in duma_config.h, which is generated at 
> +# build time, is not specified in the Makefile. Force non-parallel build.
> +define DUMA_BUILD_CMDS
> +	$(MAKE1) $(TARGET_CONFIGURE_OPTS)		\
> +		DUMA_OPTIONS=$(strip $(DUMA_OPTIONS))	\
> +		$(DUMA_CPP) -C $(@D)
> +endef
> +
> +define DUMA_INSTALL_STAGING_CMDS
> +	$(MAKE) prefix=$(STAGING_DIR)/usr install -C $(@D)
> +endef
> +
> +define DUMA_INSTALL_TARGET_CMDS
> +	$(MAKE) prefix=$(TARGET_DIR)/usr install -C $(@D)
> +endef
> +
> +$(eval $(call GENTARGETS))
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox