* [Buildroot] [PATCH] package/msgpack: disable building tests
@ 2018-11-26 8:06 Thomas Petazzoni
2018-11-26 10:41 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Petazzoni @ 2018-11-26 8:06 UTC (permalink / raw)
To: buildroot
The msgpack tests of msgpack 2.1.5 currently don't build with gcc 8.1
due to new gcc warnings. While this has been fixed in upstream commit
a05d92ae85024d0648f69f95307a1d3e8e51109c ("Fix
-Werror=class-memaccess"), we generally don't build tests in
Buildroot, so let's disable them.
It is worth mentioning that tests are automatically built when zlib,
gtest and thread support is found. msgpack.mk currently doesn't
express any optional dependency on zlib and gtest, but since these are
only used when building tests, and we are now disabling them, there is
no point in adding those packages as optional dependencies.
Fixes:
http://autobuild.buildroot.net/results/7d7aa9723f02f9bc78dbf6248674be4d402199bf/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
Note: our msgpack package uses version 2.1.5, but there is a 3.1.1
version upstream. Perhaps it would be useful to bump this package at
some point.
---
package/msgpack/msgpack.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/msgpack/msgpack.mk b/package/msgpack/msgpack.mk
index 38df8f53af..abb6e2e214 100644
--- a/package/msgpack/msgpack.mk
+++ b/package/msgpack/msgpack.mk
@@ -9,7 +9,7 @@ MSGPACK_SITE = $(call github,msgpack,msgpack-c,cpp-$(MSGPACK_VERSION))
MSGPACK_LICENSE = BSL-1.0
MSGPACK_LICENSE_FILES = COPYING LICENSE_1_0.txt
MSGPACK_INSTALL_STAGING = YES
-MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF
+MSGPACK_CONF_OPTS = -DMSGPACK_BUILD_EXAMPLES=OFF -DMSGPACK_BUILD_TESTS=OFF
ifeq ($(BR2_STATIC_LIBS),y)
MSGPACK_CONF_OPTS += -DMSGPACK_ENABLE_SHARED=OFF
--
2.19.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [Buildroot] [PATCH] package/msgpack: disable building tests
2018-11-26 8:06 [Buildroot] [PATCH] package/msgpack: disable building tests Thomas Petazzoni
@ 2018-11-26 10:41 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-11-26 10:41 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 26 Nov 2018 09:06:07 +0100, Thomas Petazzoni wrote:
> The msgpack tests of msgpack 2.1.5 currently don't build with gcc 8.1
> due to new gcc warnings. While this has been fixed in upstream commit
> a05d92ae85024d0648f69f95307a1d3e8e51109c ("Fix
> -Werror=class-memaccess"), we generally don't build tests in
> Buildroot, so let's disable them.
>
> It is worth mentioning that tests are automatically built when zlib,
> gtest and thread support is found. msgpack.mk currently doesn't
> express any optional dependency on zlib and gtest, but since these are
> only used when building tests, and we are now disabling them, there is
> no point in adding those packages as optional dependencies.
>
> Fixes:
>
> http://autobuild.buildroot.net/results/7d7aa9723f02f9bc78dbf6248674be4d402199bf/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Ignore this patch, Fabrice already sent a similar patch before:
https://patchwork.ozlabs.org/patch/1002781/
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-26 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-26 8:06 [Buildroot] [PATCH] package/msgpack: disable building tests Thomas Petazzoni
2018-11-26 10:41 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox