packae/duma: do not build test programs
PATCH 1/2 packae/duma: do not build test programs
Building test programs fails for a static link, because duma.a redefines memcpy and strcpy, which are already present in the C library.
Fixes quite some build failures:
http://autobuild.buildroot.net/results/3c7/3c7a4751c7ca71ad429c2d67f380aa225f151350/ (arm) http://autobuild.buildroot.net/results/358/358293d22ae24237719f0aa27e88e87d03856973/ (x86_64) http://autobuild.buildroot.net/results/947/9472d78b890639d3204e1942491f1eae62fb8a36/ (powerpc) http://autobuild.buildroot.net/results/ffd/ffd2e7ab7a6045f5eeaa25cd25088ad0a5b6509a/ (i686) ...
Also rename patches according to the new naming scheme.
---
...ilation.patch => 0001-fix-cross-compilation.patch} | 0
package/duma/0002-no-tests.patch | 19 +++++++++++++++++++
2 files changed, 19 insertions(+)
rename package/duma/{duma-01-fix-cross-compilation.patch => 0001-fix-cross-compilation.patch} (100%)
create mode 100644 package/duma/0002-no-tests.patchpackage/duma/0001-fix-cross-compilation.patch renamed from package/duma/duma-01-fix-cross-compilation.patch +0 -0
package/duma/0002-no-tests.patch new file +19 -0
@@ -0,0 +1,19 @@ +Do not build test programs + +Biulding test programs does not work when we want to do a static link, +because duma.a redefines memcpy and strcpy, so the link fails. + +Signed-off-by: "Yann E. MORIN" <[email protected]> + +diff -durN duma-2.5.15.orig/GNUmakefile duma-2.5.15/GNUmakefile +--- duma-2.5.15.orig/GNUmakefile 2014-11-16 14:47:05.874448560 +0100 ++++ duma-2.5.15/GNUmakefile 2014-11-16 14:54:50.792048921 +0100 +@@ -294,7 +294,7 @@ + SO_OBJECTS=dumapp_so.o duma_so.o sem_inc_so.o print_so.o + + # 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) ++all: libduma.a $(DUMA_DYN_DEPS) + + # Perform self tests on the program this makefile builds. + check test:
Signature · 1 line
1.9.1
PATCH 2/2 package/duma: add missing define when installing
Commit 3ab9774 (package/duma: do not let Makefile guess OS) added a define to not let duma's build system guess the OS, mostly to avoid a warning, but forgot to add that same define to the install commands.
--- package/duma/duma.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
package/duma/duma.mk +2 -2
@@ -25,11 +25,11 @@ define DUMA_BUILD_CMDS endef define DUMA_INSTALL_STAGING_CMDS - $(MAKE) prefix=$(STAGING_DIR)/usr install -C $(@D) + $(MAKE) OS=linux prefix=$(STAGING_DIR)/usr install -C $(@D) endef define DUMA_INSTALL_TARGET_CMDS - $(MAKE) prefix=$(TARGET_DIR)/usr install -C $(@D) + $(MAKE) OS=linux prefix=$(TARGET_DIR)/usr install -C $(@D) endef $(eval $(generic-package))
Signature · 1 line
1.9.1
PATCH 1/2 packae/duma: do not build test programs
In reply to Yann E. MORINQuoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Building test programs fails for a static link, because duma.a redefines memcpy and strcpy, which are already present in the C library.
Quoted 8 lines
Fixes quite some build failures:
http://autobuild.buildroot.net/results/3c7/3c7a4751c7ca71ad429c2d67f380aa225f151350/ (arm) http://autobuild.buildroot.net/results/358/358293d22ae24237719f0aa27e88e87d03856973/ (x86_64) http://autobuild.buildroot.net/results/947/9472d78b890639d3204e1942491f1eae62fb8a36/ (powerpc) http://autobuild.buildroot.net/results/ffd/ffd2e7ab7a6045f5eeaa25cd25088ad0a5b6509a/ (i686) ...Also rename patches according to the new naming scheme.
Committed both, thanks.
Signature · 1 line
Bye, Peter Korsgaard