Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 07/23] libepoxy: enable native/nativesdk variants
Date: Mon, 14 Jan 2019 15:50:44 +0000	[thread overview]
Message-ID: <3d19369484a84d2c879b580dc121a718@XBOX04.axis.com> (raw)
In-Reply-To: <3a7a4903e87c0cd564e7652c463cbc6baead9cc6.1547477793.git.alex.kanavin@gmail.com>

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org <openembedded-
> core-bounces@lists.openembedded.org> On Behalf Of Alexander Kanavin
> Sent: den 14 januari 2019 16:03
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH 07/23] libepoxy: enable native/nativesdk
> variants
> 
> libepoxy is a requirement of virglrenderer. Note that we strip
> RPATH from the library, as this allows fall-through to the host
> GL implementation, instead of attempting (and failing) to use
> mesa-native.
> 
> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
> ---
>  meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
> b/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
> index 92f644c039d..45995325d2c 100644
> --- a/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
> +++ b/meta/recipes-graphics/libepoxy/libepoxy_1.5.3.bb
> @@ -14,9 +14,21 @@ UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases"
>  inherit meson pkgconfig distro_features_check
> 
>  REQUIRED_DISTRO_FEATURES = "opengl"
> +REQUIRED_DISTRO_FEATURES_class-native = ""
> +REQUIRED_DISTRO_FEATURES_class-nativesdk = ""
> 
>  PACKAGECONFIG[egl] = "-Degl=yes, -Degl=no, virtual/egl"
>  PACKAGECONFIG[x11] = "-Dglx=yes, -Dglx=no, virtual/libx11 virtual/libgl"
>  PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl"
> 
>  EXTRA_OEMESON += "-Dtests=false"
> +
> +PACKAGECONFIG_class-native = "egl"
> +PACKAGECONFIG_class-nativesdk = "egl"
> +
> +BBCLASSEXTEND = "native nativesdk"
> +
> +# This will ensure that dlopen will attempt only GL libraries provided by host
> +do_install_append () {
> +    chrpath --delete ${D}${libdir}/*.so
> +}

Shouldn't this only be done for native/nativesdk? I.e.:

do_install_append_class-native() {
	chrpath --delete ${D}${libdir}/*.so
}

do_install_append_class-nativesdk() {
	chrpath --delete ${D}${libdir}/*.so
}

(I also changed the indentation to tabs as I believe that is still 
the official OE-Core standard for shell code in recipes.)

> --
> 2.17.1

//Peter



  reply	other threads:[~2019-01-14 15:50 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-14 15:02 [PATCH 00/23] Enable accelerated OpenGL in qemu Alexander Kanavin
2019-01-14 15:02 ` [PATCH 01/23] gtk+3: enable native/nativesdk variant Alexander Kanavin
2019-01-14 15:02 ` [PATCH 02/23] gtk+3: remove the gtk-icon-utils-native recipe Alexander Kanavin
2019-01-14 15:02 ` [PATCH 03/23] shared-mime-info: update the database also in native builds Alexander Kanavin
2019-01-14 15:03 ` [PATCH 04/23] gtk+: drop support for choosing between 2.x and 3.x implementations of gtk-update-icon-cache Alexander Kanavin
2019-01-14 15:03 ` [PATCH 05/23] pixbufcache.bbclass: remove a dependency loop introduced by enabling gtk+3-native Alexander Kanavin
2019-01-14 15:03 ` [PATCH 06/23] meta: add native and nativesdk variants to various recipes to enable gtk+3-native/nativesdk Alexander Kanavin
2019-01-14 15:03 ` [PATCH 07/23] libepoxy: enable native/nativesdk variants Alexander Kanavin
2019-01-14 15:50   ` Peter Kjellerstedt [this message]
2019-01-15 13:25     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 08/23] mesa: enable native and nativesdk variants Alexander Kanavin
2019-01-14 16:05   ` Burton, Ross
2019-01-15 13:30     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 09/23] virglrenderer: add a recipe Alexander Kanavin
2019-01-14 15:03 ` [PATCH 10/23] qemu: enable virglrenderer and glx options for native/nativesdk builds Alexander Kanavin
2019-01-14 15:03 ` [PATCH 11/23] qemu: drop --with-gtkabi option, as it is no longer supported Alexander Kanavin
2019-01-14 15:03 ` [PATCH 12/23] mesa-gl: do not enable nativesdk variant to avoid clashes with main mesa recipe Alexander Kanavin
2019-01-14 16:09   ` Burton, Ross
2019-01-15 13:35     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 13/23] local.conf.sample: adjust the qemu config to enable gtk+ instead of sdl Alexander Kanavin
2019-01-14 15:03 ` [PATCH 14/23] qemu: build target variant with gtk+, and nativesdk variant without sdl Alexander Kanavin
2019-01-14 15:03 ` [PATCH 15/23] qemu: remove support for building against host sdl Alexander Kanavin
2019-01-14 15:03 ` [PATCH 16/23] atk: disable gobject-introspection for nativesdk Alexander Kanavin
2019-01-14 16:05   ` Burton, Ross
2019-01-15 13:33     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 17/23] qemu: add a gettext-native dependency Alexander Kanavin
2019-01-15 14:20   ` Richard Purdie
2019-01-15 15:06     ` Alexander Kanavin
2019-01-15 16:13       ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 18/23] libjpeg-turbo: fix nativesdk build in same way as native builds are Alexander Kanavin
2019-01-14 15:03 ` [PATCH 19/23] qemu: add a patch to avoid a missing include error Alexander Kanavin
2019-01-14 15:03 ` [PATCH 20/23] runqemu: add support for virgl GL acceleration Alexander Kanavin
2019-01-15  6:15   ` Martin Jansa
2019-01-15 13:37     ` Alexander Kanavin
2019-01-14 15:03 ` [PATCH 21/23] runqemu: do not check for GL libraries Alexander Kanavin
2019-01-14 15:03 ` [PATCH 22/23] qemu: add environment variable wrappers to make qemu look good with gtk frontend Alexander Kanavin
2019-01-14 15:03 ` [PATCH 23/23] selftest: add a test for virgl GL acceleration Alexander Kanavin
2019-01-14 15:11 ` [PATCH 00/23] Enable accelerated OpenGL in qemu Alexander Kanavin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3d19369484a84d2c879b580dc121a718@XBOX04.axis.com \
    --to=peter.kjellerstedt@axis.com \
    --cc=alex.kanavin@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox