From: Chang Rebecca Swee Fun <[email protected]>

The following warning occurs when building with meta-zephyr
with MACHINE set to arduino-101-sss:

WARNING: 
/srv/sdc/builds/11319/meta/recipes-extended/ghostscript/ghostscript_9.20.bb: 
Unable to get checksum for ghostscript SRC_URI entry objarch.h: file could not 
be found

This is due to the the TARGET_ARCH = "arc" for meta-zephyr is not
supported by ghostscript and causing bitbake unable to locate the
correct config file during recipe parse.

Adding a checker in recipe to raise a SkipRecipe exception if
it is not one of the supported architectures. This would then
only display an error if someone specifically tries to build
the recipe as shown below:

ERROR: ghostscript was skipped: ghostscript is incompatible with target arc

[YOCTO #11344]

Reviewed-by: Saul Wold <[email protected]>
Signed-off-by: Chang Rebecca Swee Fun <[email protected]>
---
 meta/recipes-extended/ghostscript/ghostscript_9.20.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.20.bb 
b/meta/recipes-extended/ghostscript/ghostscript_9.20.bb
index 3c8a2e6..2780c16 100644
--- a/meta/recipes-extended/ghostscript/ghostscript_9.20.bb
+++ b/meta/recipes-extended/ghostscript/ghostscript_9.20.bb
@@ -16,6 +16,12 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=70dc2bac4d0ce4448da873cd86b123fc"
 DEPENDS = "ghostscript-native tiff jpeg fontconfig cups libpng"
 DEPENDS_class-native = "libpng-native"
 
+# Check for incompatible TARGET_ARCH
+python __anonymous () {
+    if d.getVar('TARGET_ARCH') == "arc":
+        raise bb.parse.SkipRecipe("ghostscript is incompatible with target 
arc")
+}
+
 UPSTREAM_CHECK_URI = 
"https://github.com/ArtifexSoftware/ghostpdl-downloads/releases";
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)\.tar"
 
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to