[OE-core] [PATCH] ghostscript: check for incompatible TARGET_ARCH

rebecca.swee.fun.chang at intel.com rebecca.swee.fun.chang at intel.com
Wed May 3 08:23:49 UTC 2017


From: Chang Rebecca Swee Fun <rebecca.swee.fun.chang at intel.com>

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 <sgw at linux.intel.com>
Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang at intel.com>
---
 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




More information about the Openembedded-core mailing list