All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: Samuli Piippo <samuli.piippo@gmail.com>
Cc: Robert Yang <liezhi.yang@windriver.com>,
	openembedded-devel <openembedded-devel@lists.openembedded.org>,
	Khem Raj <raj.khem@gmail.com>
Subject: Re: [oe] [meta-oe][PATCH] wxwidgets: Fix checking for PACKAGECONFIG and DISTRO_FEATURES
Date: Thu, 7 Apr 2022 20:45:29 -0400	[thread overview]
Message-ID: <20220408004529.GP23554@denix.org> (raw)
In-Reply-To: <CABXoSoWMamXg3MaxzvJmRovNAQDJqXa2ZZ9dBC=CFg5EJgvNGQ@mail.gmail.com>

On Thu, Apr 07, 2022 at 09:55:41AM +0300, Samuli Piippo wrote:
> This commit breaks builds when DISTRO_FEATURES has opengl, but not x11.

Same here! Moreover, it does not simply breaks the build, it breaks *parsing* 
even when not building wxwidgets! Please fix ASAP or revert.


> ERROR: //meta-openembedded/meta-oe/recipes-extended/wxwidgets/
> wxwidgets_3.1.5.bb: wxwidgets: PACKAGECONFIG[no_gui] Conflict package
> config 'opengl' set in PACKAGECONFIG.
> 
> On Sat, 2 Apr 2022 at 06:26, Robert Yang <liezhi.yang@windriver.com> wrote:
> 
> > The PACKAGECONFIG depends on DISTRO_FEATURES, not DISTRO_FEATURES depends
> > on
> > PACKAGECONFIG. And the REQUIRED_DISTRO_FEATURES is not needed since it can
> > work
> > with gtk or x11.
> >
> > Fixed when x11 is not in DISTRO_FEATURES:
> > $ bitbake wxwidgets
> > ERROR: Nothing PROVIDES 'wxwidgets'
> > wxwidgets was skipped: missing required distro feature 'x11' (not in
> > DISTRO_FEATURES)
> >
> > Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> > ---
> >  meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb | 11 ++++++-----
> >  1 file changed, 6 insertions(+), 5 deletions(-)
> >
> > diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> > b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> > index f9349b02a..b10742eac 100644
> > --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> > +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.1.5.bb
> > @@ -10,10 +10,7 @@ LICENSE = "WXwindows"
> >  LIC_FILES_CHKSUM =
> > "file://docs/licence.txt;md5=981f50a934828620b08f44d75db557c6"
> >
> >  inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt', 'cmake_qt5', 'cmake',
> > d)}
> > -inherit features_check lib_package binconfig pkgconfig
> > -
> > -# All toolkit-configs except 'no_gui' require x11 explicitly (see
> > toolkit.cmake)
> > -REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG',
> > 'no_gui', '', 'x11', d)}"
> > +inherit lib_package binconfig pkgconfig
> >
> >  DEPENDS += " \
> >      jpeg \
> > @@ -46,7 +43,11 @@ EXTRA_OECMAKE:append:libc-musl = " \
> >      -DHAVE_LOCALE_T=OFF \
> >  "
> >
> > -PACKAGECONFIG ?= "gtk ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
> > +# All toolkit-configs except 'no_gui' require x11 explicitly (see
> > toolkit.cmake)
> > +PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtk',
> > 'no_gui', d)} \
> > +    ${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)} \
> > +"
> > +
> >  PACKAGECONFIG:remove:class-native = "opengl"
> >
> >  # Note on toolkit-PACKAGECONFIGs: select exactly one of 'no_gui' / 'gtk'
> > / 'qt'
> > --
> > 2.31.1


  reply	other threads:[~2022-04-08 17:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-02  3:26 [meta-oe][PATCH] wxwidgets: Fix checking for PACKAGECONFIG and DISTRO_FEATURES Robert Yang
2022-04-07  6:55 ` [oe] " Samuli Piippo
2022-04-08  0:45   ` Denys Dmytriyenko [this message]
2022-04-08  3:32     ` Robert Yang

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=20220408004529.GP23554@denix.org \
    --to=denis@denix.org \
    --cc=liezhi.yang@windriver.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=raj.khem@gmail.com \
    --cc=samuli.piippo@gmail.com \
    /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 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.