All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts
@ 2017-03-29 12:11 Tristan Van Berkom
  2017-03-29 12:32 ` ✗ patchtest: failure for " Patchwork
  2017-03-30  1:44 ` [PATCH] " Andre McCurdy
  0 siblings, 2 replies; 7+ messages in thread
From: Tristan Van Berkom @ 2017-03-29 12:11 UTC (permalink / raw)
  To: openembedded-core

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

This is already filed in the appropriate bugzilla:
   https://bugzilla.yoctoproject.org/show_bug.cgi?id=11240

Just notifying the list as the custom goes...

libjpeg-turbo in recipes-graphics has an unconditional dependency on
nasm-native, which is intel specific and wont be provided on non intel
arches.

Attaching a patch which fixes this by only requiring nasm-native when
targeting intel architectures.

Cheers,
    -Tristan

[-- Attachment #2: 0001-libjpeg-turbo-Support-building-on-non-intel-targets.patch --]
[-- Type: text/x-patch, Size: 1531 bytes --]

From d76d57a148dd372ff26b9b902b7b79a4ddb5e7a2 Mon Sep 17 00:00:00 2001
From: Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Date: Fri, 24 Mar 2017 15:37:36 +0000
Subject: [PATCH] libjpeg-turbo: Support building on non intel targets.

nasm is intel specific, however libjpeg-turbo is still desirable
on other architectures.

Without this patch, it would seem that nasm is built on an intel
host and then ignored when compiling libjpeg-turbo for an arm target,
however it has libjpeg-turbo requiring nasm be built when building
on an arm/aarch64 host.

This fixes the issue so that nasm-native is not required on the host
when building for an aarch64 target.
---
 meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.1.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.1.bb
index 70d38f4a1a..a650d6af2d 100644
--- a/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.1.bb
+++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_1.5.1.bb
@@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://cdjpeg.h;endline=13;md5=05bab7c7ad899d85bfba60da1a127
                     file://jpeglib.h;endline=16;md5=f67d70e547a2662c079781c72f877f72 \
                     file://djpeg.c;endline=11;md5=b90b6d2b4119f9e5807cd273f525d2af \
 "
-DEPENDS = "nasm-native"
+DEPENDS_append_x86-64 = " nasm-native"
+DEPENDS_append_x86    = " nasm-native"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
            file://fix-mips.patch"
-- 
2.11.0


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

* ✗ patchtest: failure for libjpeg-turbo: fix build on aarch64 or non-intel build hosts
  2017-03-29 12:11 [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts Tristan Van Berkom
@ 2017-03-29 12:32 ` Patchwork
  2017-03-30  1:44 ` [PATCH] " Andre McCurdy
  1 sibling, 0 replies; 7+ messages in thread
From: Patchwork @ 2017-03-29 12:32 UTC (permalink / raw)
  To: Tristan Van Berkom; +Cc: openembedded-core

== Series Details ==

Series: libjpeg-turbo: fix build on aarch64 or non-intel build hosts
Revision: 1
URL   : https://patchwork.openembedded.org/series/6049/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch            libjpeg-turbo: fix build on aarch64 or non-intel build hosts
 Issue             Patch is missing Signed-off-by [test_signed_off_by_presence] 
  Suggested fix    Sign off the patch (either manually or with "git commit --amend -s")



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe



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

* Re: [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts
  2017-03-29 12:11 [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts Tristan Van Berkom
  2017-03-29 12:32 ` ✗ patchtest: failure for " Patchwork
@ 2017-03-30  1:44 ` Andre McCurdy
  2017-03-30  8:09   ` Maxin B. John
  1 sibling, 1 reply; 7+ messages in thread
From: Andre McCurdy @ 2017-03-30  1:44 UTC (permalink / raw)
  To: Tristan Van Berkom; +Cc: OE Core mailing list

On Wed, Mar 29, 2017 at 5:11 AM, Tristan Van Berkom
<tristan.vanberkom@codethink.co.uk> wrote:
> This is already filed in the appropriate bugzilla:
>    https://bugzilla.yoctoproject.org/show_bug.cgi?id=11240
>
> Just notifying the list as the custom goes...
>
> libjpeg-turbo in recipes-graphics has an unconditional dependency on
> nasm-native, which is intel specific and wont be provided on non intel
> arches.
>
> Attaching a patch which fixes this by only requiring nasm-native when
> targeting intel architectures.

Even with this patch, trying to build for an x86 target on an aarch64
host will still fail, right?

> Cheers,
>     -Tristan
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>


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

* Re: [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts
  2017-03-30  1:44 ` [PATCH] " Andre McCurdy
@ 2017-03-30  8:09   ` Maxin B. John
  2017-03-30 11:21     ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: Maxin B. John @ 2017-03-30  8:09 UTC (permalink / raw)
  To: Andre McCurdy; +Cc: OE Core mailing list

Hi Tristan,

On Wed, Mar 29, 2017 at 06:44:38PM -0700, Andre McCurdy wrote:
> On Wed, Mar 29, 2017 at 5:11 AM, Tristan Van Berkom
> <tristan.vanberkom@codethink.co.uk> wrote:
> > This is already filed in the appropriate bugzilla:
> >    https://bugzilla.yoctoproject.org/show_bug.cgi?id=11240
> >
> > Just notifying the list as the custom goes...
> >
> > libjpeg-turbo in recipes-graphics has an unconditional dependency on
> > nasm-native, which is intel specific and wont be provided on non intel
> > arches.

Yes, nasm is intel specific. However, we should be able to run nasm on other
archs like arm/aarch64 as it claims to be a portable 80x86 assembler.

> > Attaching a patch which fixes this by only requiring nasm-native when
> > targeting intel architectures.
> 
> Even with this patch, trying to build for an x86 target on an aarch64
> host will still fail, right?

Agree with Andre here. I would suggest to update nasm recipe to support
build for other archs as well (tested on arm and it works as expected. Will
require more testing on other archs).

> > Cheers,
> >     -Tristan

Best Regards,
Maxin


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

* Re: [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts
  2017-03-30  8:09   ` Maxin B. John
@ 2017-03-30 11:21     ` Burton, Ross
  2017-03-31  7:43       ` Tristan Van Berkom
  0 siblings, 1 reply; 7+ messages in thread
From: Burton, Ross @ 2017-03-30 11:21 UTC (permalink / raw)
  To: Maxin B. John; +Cc: OE Core mailing list

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

On 30 March 2017 at 09:09, Maxin B. John <maxin.john@intel.com> wrote:
>
> Agree with Andre here. I would suggest to update nasm recipe to support
> build for other archs as well (tested on arm and it works as expected. Will
> require more testing on other archs).
>

Yes.  Simply deleting the COMPATIBLE_HOST in nasm.bb should be sufficient,
Debian builds nasm for every architecture so that demonstrates that it
builds just fine.

Ross

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

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

* Re: [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts
  2017-03-30 11:21     ` Burton, Ross
@ 2017-03-31  7:43       ` Tristan Van Berkom
  2017-03-31  8:46         ` Burton, Ross
  0 siblings, 1 reply; 7+ messages in thread
From: Tristan Van Berkom @ 2017-03-31  7:43 UTC (permalink / raw)
  To: Burton, Ross, Maxin B. John; +Cc: OE Core mailing list

On Thu, 2017-03-30 at 12:21 +0100, Burton, Ross wrote:
> 
> > Agree with Andre here. I would suggest to update nasm recipe to
> > support
> > build for other archs as well (tested on arm and it works as
> > expected. Will
> > require more testing on other archs).
> 
> Yes.  Simply deleting the COMPATIBLE_HOST in nasm.bb should be
> sufficient, Debian builds nasm for every architecture so that
> demonstrates that it builds just fine.
> 

Ok, I had this concern too when originally discussing the approach in
#yocto, this sounds better.

So just to get things straight, does this mean we no longer need the
patch to remove nasm-native from the jpeg turbo dependencies on non-
intel targets ?

I think "-native" here only means "build an nasm that I can run on the
host architecture" then I think this is fine, as jpeg-turbo will just
ignore the needlessly built nasm when targetting non-intel platforms.

Cheers,
    -Tristan



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

* Re: [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts
  2017-03-31  7:43       ` Tristan Van Berkom
@ 2017-03-31  8:46         ` Burton, Ross
  0 siblings, 0 replies; 7+ messages in thread
From: Burton, Ross @ 2017-03-31  8:46 UTC (permalink / raw)
  To: Tristan Van Berkom; +Cc: OE Core mailing list

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

On 31 March 2017 at 08:43, Tristan Van Berkom <
tristan.vanberkom@codethink.co.uk> wrote:

> So just to get things straight, does this mean we no longer need the
> patch to remove nasm-native from the jpeg turbo dependencies on non-
> intel targets ?
>
> I think "-native" here only means "build an nasm that I can run on the
> host architecture" then I think this is fine, as jpeg-turbo will just
> ignore the needlessly built nasm when targetting non-intel platforms.
>

Both have been merged, as nasm-native is only required on x86 targets so
there's no point building it needlessly.

Ross

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

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

end of thread, other threads:[~2017-03-31  8:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-29 12:11 [PATCH] libjpeg-turbo: fix build on aarch64 or non-intel build hosts Tristan Van Berkom
2017-03-29 12:32 ` ✗ patchtest: failure for " Patchwork
2017-03-30  1:44 ` [PATCH] " Andre McCurdy
2017-03-30  8:09   ` Maxin B. John
2017-03-30 11:21     ` Burton, Ross
2017-03-31  7:43       ` Tristan Van Berkom
2017-03-31  8:46         ` 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.