Skip to contentSkip to conversation

qtbase.inc: Enable accessibility by default

PATCH Superseded Otavio Salvador 5 participants 10 messages Apr 28, 2014 – May 15, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtbase.inc: Enable accessibility by default

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

---
 recipes-qt/qt5/qtbase.inc |    2 ++
 1 file changed, 2 insertions(+)
recipes-qt/qt5/qtbase.inc +2 -0
index 89736be..91cadef 100644
@@ -39,6 +39,7 @@ PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsy
 PACKAGECONFIG_FONTS ?= ""
 PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib"
 PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
+PACKAGECONFIG_ACCESSIBILITY ?= "accessibility"
 PACKAGECONFIG_DISTRO ?= ""
 # Either release or debug, can be overridden in bbappends
 PACKAGECONFIG_RELEASE ?= "release"
@@ -56,6 +57,7 @@ PACKAGECONFIG ?= " \
     ${PACKAGECONFIG_FONTS} \
     ${PACKAGECONFIG_SYSTEM} \
     ${PACKAGECONFIG_MULTIMEDIA} \
+    ${PACKAGECONFIG_ACCESSIBILITY} \
     ${PACKAGECONFIG_DISTRO} \
 "
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 22 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

---
  recipes-qt/qt5/qtbase.inc |    2 ++
  1 file changed, 2 insertions(+)
recipes-qt/qt5/qtbase.inc +1 -0
index 89736be..91cadef 100644
@@ -39,6 +39,7 @@ PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsy
  PACKAGECONFIG_FONTS ?= ""
  PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib"
  PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
+PACKAGECONFIG_ACCESSIBILITY ?= "accessibility"
  PACKAGECONFIG_DISTRO ?= ""
  # Either release or debug, can be overridden in bbappends
  PACKAGECONFIG_RELEASE ?= "release"

recipes-qt/qt5/qtbase.inc PACKAGECONFIG ?= " \ · line 63

Quoted 7 lines
recipes-qt/qt5/qtbase.inc +1 -0
@@ -56,6 +57,7 @@ PACKAGECONFIG ?= " \
      ${PACKAGECONFIG_FONTS} \
      ${PACKAGECONFIG_SYSTEM} \
      ${PACKAGECONFIG_MULTIMEDIA} \
+    ${PACKAGECONFIG_ACCESSIBILITY} \
      ${PACKAGECONFIG_DISTRO} \
  "
 

I would change "qtdeclarative" to "qtquickcontrols" in the commit message to match the PACKAGECONFIG comment in qtbase.inc. I think qtdeclarative might still compile fine without accessibility but you would have to check.

Regards,
Jonathan

#2 lore raw
In reply to Otavio Salvador
Quoted 22 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

---
 recipes-qt/qt5/qtbase.inc |    2 ++
 1 file changed, 2 insertions(+)
recipes-qt/qt5/qtbase.inc +1 -0
index 89736be..91cadef 100644
@@ -39,6 +39,7 @@ PACKAGECONFIG_X11 ?= "${@base_contains('DISTRO_FEATURES', 'x11', 'xcb xvideo xsy
 PACKAGECONFIG_FONTS ?= ""
 PACKAGECONFIG_SYSTEM ?= "jpeg libpng zlib"
 PACKAGECONFIG_MULTIMEDIA ?= "${@base_contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)}"
+PACKAGECONFIG_ACCESSIBILITY ?= "accessibility"
 PACKAGECONFIG_DISTRO ?= ""
 # Either release or debug, can be overridden in bbappends
 PACKAGECONFIG_RELEASE ?= "release"

recipes-qt/qt5/qtbase.inc PACKAGECONFIG ?= " \ · line 62

Quoted 6 lines
recipes-qt/qt5/qtbase.inc +1 -0
@@ -56,6 +57,7 @@ PACKAGECONFIG ?= " \
     ${PACKAGECONFIG_FONTS} \
     ${PACKAGECONFIG_SYSTEM} \
     ${PACKAGECONFIG_MULTIMEDIA} \
+    ${PACKAGECONFIG_ACCESSIBILITY} \
     ${PACKAGECONFIG_DISTRO} \
 "

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

Quoted 8 lines
Signature · 7 lines
1.7.10.4

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw

Hello folks,

Quoted 14 lines · Otavio Salvador
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

Quoted 7 lines

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Martin and I have different views on this topic and I'd like to merge or drop this patch. Could people comment on this one?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw
Quoted 18 lines · Otavio Salvador
Quoted 16 lines · Otavio Salvador
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

Quoted 8 lines
Quoted 4 lines

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Martin and I have different views on this topic and I'd like to merge or drop this patch. Could people comment on this one?

Well, I can understand your point, that it should be as easy as possible to use the toolchain to build whatever you want...

However, in all the cases where I've been using Qt5 lately, both for internal projects as well as for customers, we've always ended up trying to minimize which part of Qt5 we're building. (To reduce build time, flash usage etc).

With that in mind, I'd prefer a as minimal Qt5 and toolchain as possible, letting me enable more things easily by using PACKAGECONFIG.

One way to reduce the rather large modification to the toolchain recipe would likely be to have it RRECOMMEND as much as possible, and only RDEPEND on the most basic parts of Qt5. (Though, I haven't tried that version yet).

Cheers,
Anders

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB
#6 lore raw
In reply to Otavio Salvador

2014-05-14 21:04 GMT+02:00 Otavio Salvador <[email protected]>:

Quoted 20 lines

Hello folks,

Quoted 17 lines · Otavio Salvador
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

Quoted 9 lines
Quoted 4 lines

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Martin and I have different views on this topic and I'd like to merge or drop this patch. Could people comment on this one?

We may want to be able to let the user choose between 2 flavors of Qt.

One of them could be a standard Qt (which is what I use), other users seem to prefer a stripped down version with some features switched off.

As 'Giuseppe D'Angelo <[email protected]>' noted on qt-interest [1]:
"Apart from this: builds with feature switches are not really tested, so I'm not surprised that [there are combinations that don't even build]. But we totally welcome patches that would fix such builds."

So IMO it would be a good idea to have a constantly tested low footprint version.

There is no one size fits all in this case, but can we provide 2 versions that work for 99% of the users?

[1] http://lists.qt-project.org/pipermail/interest/2014-May/012237.html

Signature · 2 lines
Regards
Samuel
#7 lore raw
Quoted 43 lines · Samuel Stirtzel

2014-05-14 21:04 GMT+02:00 Otavio Salvador <[email protected]>:

Quoted 20 lines

Hello folks,

Quoted 17 lines · Otavio Salvador
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

Quoted 9 lines
Quoted 4 lines

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Martin and I have different views on this topic and I'd like to merge or drop this patch. Could people comment on this one?

We may want to be able to let the user choose between 2 flavors of Qt.

One of them could be a standard Qt (which is what I use), other users seem to prefer a stripped down version with some features switched off.

As 'Giuseppe D'Angelo <[email protected]>' noted on qt-interest [1]:
"Apart from this: builds with feature switches are not really tested, so I'm not surprised that [there are combinations that don't even build]. But we totally welcome patches that would fix such builds."

Quoted 5 lines

So IMO it would be a good idea to have a constantly tested low footprint version.

There is no one size fits all in this case, but can we provide 2 versions that work for 99% of the users?

What you mean by 2 versions here?

There is simple PACKAGECONFIG option to enable more features (most people will probably enable icu, gl* and accessibility).

But we don't want 2 qtbase recipes one with more PACKAGECONFIG options enabled and other with more disabled.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#8 lore raw

2014-05-15 12:21 GMT+02:00 Martin Jansa <[email protected]>:

Quoted 47 lines · Samuel Stirtzel
Quoted 46 lines

2014-05-14 21:04 GMT+02:00 Otavio Salvador <[email protected]>:

Quoted 20 lines

Hello folks,

Quoted 17 lines · Otavio Salvador
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

Quoted 9 lines
Quoted 4 lines

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Martin and I have different views on this topic and I'd like to merge or drop this patch. Could people comment on this one?

We may want to be able to let the user choose between 2 flavors of Qt.

One of them could be a standard Qt (which is what I use), other users seem to prefer a stripped down version with some features switched off.

As 'Giuseppe D'Angelo <[email protected]>' noted on qt-interest [1]:
"Apart from this: builds with feature switches are not really tested, so I'm not surprised that [there are combinations that don't even build]. But we totally welcome patches that would fix such builds."

So IMO it would be a good idea to have a constantly tested low footprint version.

Quoted 7 lines
Quoted 2 lines

There is no one size fits all in this case, but can we provide 2 versions that work for 99% of the users?

What you mean by 2 versions here?

There is simple PACKAGECONFIG option to enable more features (most people will probably enable icu, gl* and accessibility).

With 2 versions it is meant that the user has a simple way to select one of two well tested sets of configurations without knowing the details/pitfalls of all the configuration entries.

Quoted 4 lines

But we don't want 2 qtbase recipes one with more PACKAGECONFIG options enabled and other with more disabled.

Agreed. Multiple qtbase recipes are a suboptimal solution.

A DISTRO_FEATURES entry could do; although other implementations could be more suitable.
In cases where a user wants more fine grained control over the packages, he can still override the PACKAGECONFIG in a .bbappend.

Signature · 2 lines
Regards
Samuel
#9 lore raw
In reply to Otavio Salvador
Quoted 19 lines · Otavio Salvador

Hello folks,

Quoted 16 lines · Otavio Salvador
Quoted 6 lines · Martin Jansa
Quoted 5 lines · Otavio Salvador

qtdeclarative requires accessibility to be enabled and it is added by default to the toolchain so we ought to have it enabled to ensure the default toolchain generation works.

...

Quoted 5 lines

As I told you on gtalk, I would prefer default to stay as minimal as posible, why don't you change packagegroup-qt5-toolchain-target.bb to use RRECOMMENDS instead of RDEPENDS so that missing qtquickcontrols-qmlplugins package doesn't break it when it's not available (because it's empty)?

I don't have a strong opinion for either case however I think we ought to know what other meta-qt5 users think about it.

Quoted 8 lines
Quoted 4 lines

In support to this patch addition I think we ought to provide the most used features of Qt5 working out of box to users have a good first use. Special cases can customize it per need basis. I think QML is common enough for us to provide full support for it by default.

Martin and I have different views on this topic and I'd like to merge or drop this patch. Could people comment on this one?

If changing to RRECOMMENDS resolves the issue I vote for that option. It's better to start minimal and add only what you need when creating an image.

Regards,
Jonathan