package: add qt5virtualkeyboard
PATCH v5 1/1 package: add qt5virtualkeyboard
This patch adds the Qt virtualkeyboard package.
---
Changes since v4:
- Prefix local variables to avoid potential naming collisions.
Changes since v3:
- Fix another build issue when installing to target in case of zh_TW (or other layout) is not set.
- Add licenses files when using 3rd-part modules.
- Add support for handwriting module.
Changes since v2:
- Fix build issue when installing libqtvirtualkeyboardplugin.so library in case of some other qt5 package installs something to plugins/platforminputcontexts.
Changes since v1:
- Add missing hash file
- Add license approval statement
- Add support for languages layouts
Note: Chinese, Japanese and Korean does not display properly (font?)
- Install sample if is compiled (BR2_PACKAGE_QT5BASE_EXAMPLES=y)
- Apply reviews from Peter:
Add version constraint: message and dependency (needs at least qt 5.8) Update help to mention GPLv3 license
package/qt5/Config.in | 1 + package/qt5/qt5virtualkeyboard/Config.in | 52 +++++++++++++ .../qt5/qt5virtualkeyboard/qt5virtualkeyboard.hash | 2 + .../qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk | 86 ++++++++++++++++++++++ 4 files changed, 141 insertions(+) create mode 100644 package/qt5/qt5virtualkeyboard/Config.in create mode 100644 package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.hash create mode 100644 package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk
package/qt5/Config.in +1 -0
@@ -76,6 +76,7 @@ source "package/qt5/qt5serialbus/Config.in" source "package/qt5/qt5serialport/Config.in" source "package/qt5/qt5svg/Config.in" source "package/qt5/qt5tools/Config.in" +source "package/qt5/qt5virtualkeyboard/Config.in" source "package/qt5/qt5webchannel/Config.in" source "package/qt5/qt5webkit/Config.in" source "package/qt5/qt5websockets/Config.in"
package/qt5/qt5virtualkeyboard/Config.in new file +52 -0
52 lines not on this page · raw message
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Hash from: http://download.qt.io/official_releases/qt/5.8/5.8.0/submodules/qtvirtualkeyboard-opensource-src-5.8.0.tar.xz +sha256 35fdf5b39d930935b6299ac59f347bea89b983e16bd7961fee3f1b8e16f4e21c qtvirtualkeyboard-opensource-src-5.8.0.tar.xz
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +86 -0
86 lines not on this page · raw message
Signature · 1 line
2.12.1
PATCH v5 1/1 package: add qt5virtualkeyboard
Hello,
Quoted 2 lines · Ga?l PORTAY
Changes since v4:
- Prefix local variables to avoid potential naming collisions.
You forgot one.
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 24
Quoted 4 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +4
-0+QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS = $(call qstrip,$(BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +QT5VIRTUALKEYBOARD_ALL_LAYOUTS = $(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) +QMAKEFLAGS += CONFIG+="$(foreach lang,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS),lang-$(lang))"
QMAKEFLAGS is still not properly prefixed.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v5 1/1 package: add qt5virtualkeyboard
Hello Thomas,
Quoted 10 lines · Thomas Petazzoni
Hello,
Quoted 2 lines · Ga?l PORTAY
Changes since v4:
- Prefix local variables to avoid potential naming collisions.You forgot one.
Quoted 7 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 24
Quoted 4 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +4
-0+QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS = $(call qstrip,$(BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +QT5VIRTUALKEYBOARD_ALL_LAYOUTS = $(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) +QMAKEFLAGS += CONFIG+="$(foreach lang,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS),lang-$(lang))"QMAKEFLAGS is still not properly prefixed.
Indeed, sorry for this missing one.
Quoted 5 lines
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Let me resend a new patch...
Regards,
Gael
PATCH v5 1/1 package: add qt5virtualkeyboard
In reply to Gaël PORTAYHello,
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 28
Quoted 8 lines · Ga?l PORTAY
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +8
-0+QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS = $(call qstrip,$(BR2_PACKAGE_QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +QT5VIRTUALKEYBOARD_ALL_LAYOUTS = $(findstring all,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)),) +QMAKEFLAGS += CONFIG+="$(foreach lang,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS),lang-$(lang))" + +QT5VIRTUALKEYBOARD_OPENWNN = $(findstring ja_JP,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_OPENWNN)$(QT5VIRTUALKEYBOARD_ALL_LAYOUTS)),) +QT5VIRTUALKEYBOARD_LICENSE += Apache-2.0
This way of concatenating the licenses doesn't work, because the final string will be:
"GPLv3 Apache-2.0"
while we want "GPLv3, Apache-2.0". Look at other Qt5 packages how they are handling this:
QT5BASE_LICENSE := $(QT5BASE_LICENSE), BSD-3c (examples)
Note that next to the license, we also want an information on which part of the package it applies.
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 34
Quoted 3 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +3
-0+QT5VIRTUALKEYBOARD_PINYIN = $(findstring zh_CN,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_PINYIN)$(QT5VIRTUALKEYBOARD_ALL_LAYOUTS)),) +QT5VIRTUALKEYBOARD_3RDPARTY_PARTS += pinyin
Do you really need the name here? You don't use it anywhere. What about:
QT5VIRTUALKEYBOARD_INSTALL_3RDPARTY = YES
instead.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH v5 1/1 package: add qt5virtualkeyboard
Hi Thomas,
Quoted 11 lines · Thomas Petazzoni
Hello,
On Wed, 29 Mar 2017 11:58:22 -0400, Ga?l PORTAY wrote:
[...]
This way of concatenating the licenses doesn't work, because the final string will be:
"GPLv3 Apache-2.0"
Quoted 8 lines
while we want "GPLv3, Apache-2.0". Look at other Qt5 packages how they are handling this:
QT5BASE_LICENSE:= $(QT5BASE_LICENSE), BSD-3c (examples)Note that next to the license, we also want an information on which part of the package it applies.
I modified the Makefile so the LICENSE variable is set to (all layouts + handwriting):
"GPLv3, Apache-2.0 (openwnn), Apache-2.0 (pinyin), Apache-2.0 BSD-3c (tcime), MIT (lipi-toolkit)"
Is it correct?
I can also be more explicit:
"GPLv3, Apache-2.0 (openwnn/ja_JP), Apache-2.0 (pinyin/zh_TW), Apache-2.0 BSD-3c (tcime/zh_TW), MIT (lipi-toolkit/handwriting)"
Thank you for your review. I did not understand why some packages have a comma in LICENSE while others have 'and/or' or are simply white-space separated.
BTW, here are the modifications:
-QT5VIRTUALKEYBOARD_LICENSE += Apache-2.0
+QT5VIRTUALKEYBOARD_LICENSE := $(QT5VIRTUALKEYBOARD_LICENSE), Apache-2.0 (openwnn)
-QT5VIRTUALKEYBOARD_LICENSE += Apache-2.0 +QT5VIRTUALKEYBOARD_LICENSE := $(QT5VIRTUALKEYBOARD_LICENSE), Apache-2.0 (pinyin)
-QT5VIRTUALKEYBOARD_LICENSE += Apache-2.0 BSD-3c +QT5VIRTUALKEYBOARD_LICENSE := $(QT5VIRTUALKEYBOARD_LICENSE), Apache-2.0 BSD-3c (tcime)
-QT5VIRTUALKEYBOARD_LICENSE += MIT
+QT5VIRTUALKEYBOARD_LICENSE := $(QT5VIRTUALKEYBOARD_LICENSE), MIT (lipi-toolkit)
Quoted 9 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk line 34
Quoted 3 lines
package/qt5/qt5virtualkeyboard/qt5virtualkeyboard.mk new file +3
-0+QT5VIRTUALKEYBOARD_PINYIN = $(findstring zh_CN,$(QT5VIRTUALKEYBOARD_LANGUAGE_LAYOUTS)) +ifneq ($(strip $(QT5VIRTUALKEYBOARD_PINYIN)$(QT5VIRTUALKEYBOARD_ALL_LAYOUTS)),) +QT5VIRTUALKEYBOARD_3RDPARTY_PARTS += pinyinDo you really need the name here? You don't use it anywhere. What about:
QT5VIRTUALKEYBOARD_INSTALL_3RDPARTY= YESinstead.
Indeed I did not need them.
I used the white-space separated values for debugging purpose.
The YES value make the Makefile more simple.
-QT5VIRTUALKEYBOARD_3RDPARTY_PARTS += pinyin
+QT5VIRTUALKEYBOARD_3RDPARTY_PARTS = YES
-QT5VIRTUALKEYBOARD_3RDPARTY_PARTS += tcime
+QT5VIRTUALKEYBOARD_3RDPARTY_PARTS = YES
-QT5VIRTUALKEYBOARD_3RDPARTY_PARTS += lipi_toolkit +QT5VIRTUALKEYBOARD_3RDPARTY_PARTS = YES
Quoted 8 lines
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
If you agree with those modifications, I will send a v6 of this patch (including missing prefix for QMAKEFLAGS).
Regards,
Gael
PATCH v5 1/1 package: add qt5virtualkeyboard
Hello,
Quoted 6 lines · Ga?l PORTAY
I modified the
Makefileso the LICENSE variable is set to (all layouts + handwriting):"GPLv3, Apache-2.0 (openwnn), Apache-2.0 (pinyin), Apache-2.0 BSD-3c (tcime), MIT (lipi-toolkit)"
Is it correct?
It looks good. Note that I'm saying it looks good from a formatting point of view: I haven't checked the actual licenses.
Quoted 3 lines
I can also be more explicit:
"GPLv3, Apache-2.0 (openwnn/ja_JP), Apache-2.0 (pinyin/zh_TW), Apache-2.0 BSD-3c (tcime/zh_TW), MIT (lipi-toolkit/handwriting)"
This is probably a bit too verbose, what you proposed above as the first solution looks sufficient to me.
Quoted 2 lines
Thank you for your review. I did not understand why some packages have a comma in LICENSE while others have 'and/or' or are simply white-space separated.
The Buildroot manual normally explains what the formatting should be, but it is very possible that some packages do not comply 100% with the rules described in the manual (simply because those packages were added before the rules were clarified in the manual).
Basically, the idea is that: a comma separates multiple licenses that cover different parts of the package, with parenthesis to indicate what component is covered by that license. The "or" statement is used when the package is available under a choice of licenses (i.e you can chose to use say the GPLv2 terms *OR* the MIT terms for the whole package, for example).
Quoted 2 lines
If you agree with those modifications, I will send a v6 of this patch (including missing prefix for QMAKEFLAGS).
The modifications look good to me. Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com