All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: c-shilwant@ti.com
Cc: meta-arago@lists.yoctoproject.org, Ryan Eatmon <reatmon@ti.com>,
	Gyan Gupta <g-gupta@ti.com>
Subject: Re: [meta-arago][master/scarthgap][PATCH] recipes-qt: qt5: Add xkbcommon to qtbase PACKAGECONFIG
Date: Thu, 6 Jun 2024 16:14:56 -0400	[thread overview]
Message-ID: <20240606201456.GQ21287@denix.org> (raw)
In-Reply-To: <8bcec881-5203-4b4f-b91f-cdd0ecadb269@ti.com>

On Wed, Jun 05, 2024 at 12:39:12PM +0530, Chirag Shilwant via lists.yoctoproject.org wrote:
> Hi Denys & Ryan,
> 
> On 04/06/24 21:38, Denys Dmytriyenko wrote:
> >On Mon, Jun 03, 2024 at 02: 52: 55PM +0530, Chirag Shilwant via
> >lists. yoctoproject. org wrote: > From: Sai Sree Kartheek Adivi
> ><s-adivi@ ti. com> > > - For QT apps to use physical keyboard,
> >xkbcommon has to be added in > PACKAGECONFIG. 
> >ZjQcmQRYFpfptBannerStart
> >This message was sent from outside of Texas Instruments.
> >Do not click links or open attachments unless you recognize the
> >source of this email and know the content is safe. If you wish to
> >report this message to IT Security, please forward the message as
> >an attachment to phishing@list.ti.com
> >ZjQcmQRYFpfptBannerEnd
> >On Mon, Jun 03, 2024 at 02:52:55PM +0530, Chirag Shilwant via lists.yoctoproject.org wrote:
> >> From: Sai Sree Kartheek Adivi <s-adivi@ti.com>
> >> > - For QT apps to use physical keyboard, xkbcommon has to be
> >added in
> >> PACKAGECONFIG. This was supported until 09.01 using xkbcommon-evdev which at
> >> present is an invalid PACKAGECONFIG & hence was dropped from meta-arago [1].
> >> > - Hence, add xkbcommon to PACKAGECONFIG which will enable the
> >use of
> >> physical keyboard in QT apps.
> >> > [1]: https://git.ti.com/cgit/arago-project/meta-arago/commit/?h=scarthgap&id=de16946741249265a38acb7bb503b39a0c2b4175
> >> > Signed-off-by: Chirag Shilwant <c-shilwant@ti.com>
> >> ---
> >>  meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend | 2 ++
> >>  1 file changed, 2 insertions(+)
> >> > diff --git
> >a/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >b/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >> index b1205b5a..6f94c574 100644
> >> --- a/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >> +++ b/meta-arago-distro/recipes-qt/qt5/qtbase_%.bbappend
> >> @@ -4,6 +4,8 @@ GLES_EXTRA_DEPS = "libdrm wayland"
> >>  >  PACKAGECONFIG[gles2] = "-opengl es2 -eglfs,,virtual/libgles2
> >virtual/egl ${GLES_EXTRA_DEPS}"
> >>  > +PACKAGECONFIG:append:k3 = " xkbcommon"
> >
> >This would make the package machine-specific - why is it only applicable to k3?
> 
> 
> For non k3 based platforms, with the removal of Matrix GUI I don't see
> any QT Demos under meta-arago-demos which might need the keyboard
> functionality [Ryan correct me if we have any QT demo applicable for
> non k3 based platform which needs keyboard].
> 
> For k3 platforms, we have TI Apps Launcher (a QT based OOB demo) for which
> xkbcommon is needed & hence I made this change machine specific.

That is a wrong reason to make a large package that many other packages depend 
on (and build on top of) to be machine-specific! That will force qtbase to be 
rebuilt from scratch for each and every K3 platform, instead of re-using 
common Aarch64 binaries. Moreover, that invalidates sstate cache for all other 
packages that depend on qtbase, essentially making them machine-specific as 
well... In other words - keyboard support does not sound even remotely as a 
machine-specific feature, so should rather be enabled or disabled globally on 
a per-distro basis. And thus, should be set in distro config file.


> Btw, Denys do you have any background on why does meta-qt5 just in
> case of Wayland doesn't
> support this keyboard enablement by default though I see for x11
> they add 'xkbcommon' in
> PACKAGECONFIG by default [1]
> 
> [1]: https://github.com/meta-qt5/meta-qt5/blob/scarthgap/recipes-qt/qt5/qtbase_git.bb#L70

Wayland support in Qt5 is provided by its QtWayland module and it handles 
xkbcommon. Are there some corner cases you are trying to enable with this?

-- 
Denys


  reply	other threads:[~2024-06-06 20:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-03  9:22 [meta-arago][master/scarthgap][PATCH] recipes-qt: qt5: Add xkbcommon to qtbase PACKAGECONFIG Chirag Shilwant
2024-06-04 16:08 ` Denys Dmytriyenko
2024-06-05  7:09   ` [EXTERNAL] " Chirag Shilwant
2024-06-06 20:14     ` Denys Dmytriyenko [this message]
2024-06-18 12:13       ` Chirag Shilwant

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=20240606201456.GQ21287@denix.org \
    --to=denis@denix.org \
    --cc=c-shilwant@ti.com \
    --cc=g-gupta@ti.com \
    --cc=meta-arago@lists.yoctoproject.org \
    --cc=reatmon@ti.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.