All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ghostscript: fix warnings when building for arduino-101-sss
@ 2017-05-03  8:23 rebecca.swee.fun.chang
  2017-05-03  8:23 ` [PATCH] ghostscript: check for incompatible TARGET_ARCH rebecca.swee.fun.chang
  0 siblings, 1 reply; 3+ messages in thread
From: rebecca.swee.fun.chang @ 2017-05-03  8:23 UTC (permalink / raw
  To: openembedded-core; +Cc: saul.wold

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

Hi,

The following warning occurs when building zephyr with 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 can be reproduced with meta-zephyr and MACHINE=arduino-101-sss,
it also needs a clean tmp, because the warning comes during initial parse.

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 an anonymous python checker in recipe to raise a SkipRecipe
exception if it is not one of the supported architectures.

Thanks and regards,
Rebecca

Chang Rebecca Swee Fun (1):
  ghostscript: check for incompatible TARGET_ARCH

 meta/recipes-extended/ghostscript/ghostscript_9.20.bb | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.7.4



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ghostscript: check for incompatible TARGET_ARCH
  2017-05-03  8:23 [PATCH] ghostscript: fix warnings when building for arduino-101-sss rebecca.swee.fun.chang
@ 2017-05-03  8:23 ` rebecca.swee.fun.chang
  2017-05-03 13:48   ` Burton, Ross
  0 siblings, 1 reply; 3+ messages in thread
From: rebecca.swee.fun.chang @ 2017-05-03  8:23 UTC (permalink / raw
  To: openembedded-core; +Cc: saul.wold

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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ghostscript: check for incompatible TARGET_ARCH
  2017-05-03  8:23 ` [PATCH] ghostscript: check for incompatible TARGET_ARCH rebecca.swee.fun.chang
@ 2017-05-03 13:48   ` Burton, Ross
  0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2017-05-03 13:48 UTC (permalink / raw
  To: Chang, Rebecca Swee Fun; +Cc: Saul Wold, OE-core

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

On 3 May 2017 at 09:23, <rebecca.swee.fun.chang@intel.com> wrote:

> +# Check for incompatible TARGET_ARCH
> +python __anonymous () {
> +    if d.getVar('TARGET_ARCH') == "arc":
> +        raise bb.parse.SkipRecipe("ghostscript is incompatible with
> target arc")
> +}
>

Wouldn't it be neater to use COMPATIBLE_HOST?  For example sysprof doesn't
work on aarch64 and uses COMPATIBLE_HOST = "^(?!aarch64).*".

Ross

[-- Attachment #2: Type: text/html, Size: 991 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-03 13:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-03  8:23 [PATCH] ghostscript: fix warnings when building for arduino-101-sss rebecca.swee.fun.chang
2017-05-03  8:23 ` [PATCH] ghostscript: check for incompatible TARGET_ARCH rebecca.swee.fun.chang
2017-05-03 13:48   ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.