Skip to contentSkip to conversation

doxygen: Make it build with ninja 1.9.0

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 5, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doxygen: Make it build with ninja 1.9.0

ninja 1.9.0 turned the previous dupbuild warning into an error, which resulted in the following error:

ninja: error: build.ninja:1948: multiple rules generate generated_src/configvalues.h [-w dupbuild=err]

Turn the error back into a warning until upstream corrects the build rules.

---
 meta-oe/recipes-devtools/doxygen/doxygen_1.8.15.bb | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/doxygen/doxygen_1.8.15.bb +7 -2
index 784684620..2435b587d 100644
@@ -4,8 +4,6 @@ HOMEPAGE = "http://www.doxygen.org/"
 LICENSE = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-inherit cmake python3native
-
 DEPENDS = "flex-native bison-native"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.src.tar.gz \
@@ -13,4 +11,11 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.src.tar.gz \
 SRC_URI[md5sum] = "2c98c73eba392d334f5bbaf15e09bae3"
 SRC_URI[sha256sum] = "bd9c0ec462b6a9b5b41ede97bede5458e0d7bb40d4cfa27f6f622eb33c59245d"
 
+inherit cmake python3native
+
+# Avoid the following error:
+#   ninja: error: build.ninja:1948: multiple rules generate
+#   generated_src/configvalues.h [-w dupbuild=err]
+EXTRA_OECMAKE_BUILD += "-w dupbuild=warn"
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.12.0