Re: Error do_compile libepoxy
Anuj Mittal
On 01/19/2018 08:32 PM, Alexander Kanavin wrote:
Yes, glx in libepoxy should be disabled if it is not in DISTRO_FEATURES.I'll try to recap a little bit but, please, forgive my ignorance inI'm similarly ignorant about this stuff (our resident graphics stack glx depends on gl and x11 so if it is to be enabled, both of them should be present. However, x11 without glx and just egl should still be valid configuration. I think the correct configuration should be: diff --git a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb b/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb index 72167a2..0043bec 100644 --- a/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb +++ b/meta/recipes-graphics/libepoxy/libepoxy_1.4.3.bb @@ -15,12 +15,14 @@ UPSTREAM_CHECK_URI = "https://github.com/anholt/libepoxy/releases" inherit meson pkgconfig distro_features_check -REQUIRED_DISTRO_FEATURES = "opengl" - DEPENDS = "util-macros" +REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'glx', 'x11', '', d)}" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'glx x11', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'egl', '', d)}" + PACKAGECONFIG[egl] = "-Denable-egl=yes, -Denable-egl=no, virtual/egl" -PACKAGECONFIG[x11] = "-Denable-glx=yes, -Denable-glx=no, virtual/libx11" -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} egl" +PACKAGECONFIG[glx] = "-Denable-glx=yes, -Denable-glx=no, virtual/libgl" +PACKAGECONFIG[x11] = ",, virtual/libx11" EXTRA_OEMESON_append_libc-musl = " -Dhas-dlvsym=false " I didn't test this on all combinations. Perhaps someone can help test on rpi?
|
|