From 7a5e32f4dc1466b1c8bfc83787b8ae40e5b09834 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Thu, 21 May 2020 17:40:43 +0200 Subject: [PATCH] rtpengine: work around sporadic build failures The rtpengine build system uses the Makefiles to generate source files on the fly. This usually works fine, but when building in parallel, intermittently the generated files contain garbage (like, lines are repeated, causing redefinition errors). As a workaround this commit disables parallel builds. Signed-off-by: Sebastian Kemper --- net/rtpengine/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/net/rtpengine/Makefile b/net/rtpengine/Makefile index 1875738..e1a807e 100644 --- a/net/rtpengine/Makefile +++ b/net/rtpengine/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=rtpengine PKG_VERSION:=mr8.3.1.4 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/sipwise/rtpengine/tar.gz/$(PKG_VERSION)? @@ -21,7 +21,11 @@ PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Sebastian Kemper -PKG_BUILD_PARALLEL:=1 +# When building in parallel, some files (like streambuf.c or dtmflib.c) +# are generated multiple times by the rtpengine build system. +# Intermittently they then contain garbage, leading to redefinition +# errors. +PKG_BUILD_PARALLEL:=0 PKG_BUILD_DEPENDS:=gperf/host -- 2.30.2