diff mbox series

[1/1] qt5: qt5websockets: install missing qml modules

Message ID 3fc9a546-61c8-d7bf-f0eb-b757cae0dfe2@ginzinger.com
State Accepted
Headers show
Series [1/1] qt5: qt5websockets: install missing qml modules | expand

Commit Message

Manfred Schlaegl April 11, 2018, 12:40 p.m. UTC
QML modules for QtWebSockets are located in /usr/qml/QtWebSockets since
Qt 5.5.

/usr/qml/Qt/WebSockets still exists for compatibility reasons, but
it contains only a qmldir file which points to ../../QtWebSockets/.

see also: http://doc.qt.io/qt-5.6/qtwebsockets-qmlmodule.html

Signed-off-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com>
---
 package/qt5/qt5websockets/qt5websockets.mk | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Petazzoni April 16, 2018, 3:48 p.m. UTC | #1
Hello,

Thanks for your contribution!

On Wed, 11 Apr 2018 14:40:37 +0200, Manfred Schlaegl wrote:
> QML modules for QtWebSockets are located in /usr/qml/QtWebSockets since
> Qt 5.5.
> 
> /usr/qml/Qt/WebSockets still exists for compatibility reasons, but
> it contains only a qmldir file which points to ../../QtWebSockets/.

Does this mean we should remove the installation
of /usr/qml/Qt/WebSockets ?

I've applied your patch to master as-is, anyway. Thanks!

Thomas
Manfred Schlaegl April 16, 2018, 4:06 p.m. UTC | #2
Hi,

On 2018-04-16 17:48, Thomas Petazzoni wrote:
> Hello,
> 
> Thanks for your contribution!
Thanks for maintaining ;-)

> 
> On Wed, 11 Apr 2018 14:40:37 +0200, Manfred Schlaegl wrote:
>> QML modules for QtWebSockets are located in /usr/qml/QtWebSockets since
>> Qt 5.5.
>>
>> /usr/qml/Qt/WebSockets still exists for compatibility reasons, but
>> it contains only a qmldir file which points to ../../QtWebSockets/.
> 
> Does this mean we should remove the installation
> of /usr/qml/Qt/WebSockets ?

Newer projects (since Qt5.5) use
{{{
import QtWebSockets 1.0
}}}
which translates to /usr/qml/QtWebSockets
-> This is, what was missing.

Older projects (prior Qt5.5) use
{{{
import Qt.WebSockets 1.0
}}}
which resolves to /usr/qml/Qt/WebSockets
-> We don't want to break them, so we have to keep /usr/qml/Qt/WebSockets.

In short: We have to keep it. ;-)

> 
> I've applied your patch to master as-is, anyway. Thanks!
> 
> Thomas
> 
Thanks!

Best regards,
Manfred
Thomas Petazzoni April 16, 2018, 4:30 p.m. UTC | #3
Hello,

On Mon, 16 Apr 2018 18:06:39 +0200, Manfred Schlaegl wrote:

> -> We don't want to break them, so we have to keep /usr/qml/Qt/WebSockets.  
> 
> In short: We have to keep it. ;-)

ACK, thanks for the confirmation!

Thomas
Peter Korsgaard May 1, 2018, 6:52 a.m. UTC | #4
>>>>> "Manfred" == Manfred Schlaegl <manfred.schlaegl@ginzinger.com> writes:

 > QML modules for QtWebSockets are located in /usr/qml/QtWebSockets since
 > Qt 5.5.

 > /usr/qml/Qt/WebSockets still exists for compatibility reasons, but
 > it contains only a qmldir file which points to ../../QtWebSockets/.

 > see also: http://doc.qt.io/qt-5.6/qtwebsockets-qmlmodule.html

 > Signed-off-by: Manfred Schlaegl <manfred.schlaegl@ginzinger.com>

Committed to 2018.02.x, thanks.
diff mbox series

Patch

diff --git a/package/qt5/qt5websockets/qt5websockets.mk b/package/qt5/qt5websockets/qt5websockets.mk
index 4d9df9257b..c67db198db 100644
--- a/package/qt5/qt5websockets/qt5websockets.mk
+++ b/package/qt5/qt5websockets/qt5websockets.mk
@@ -41,6 +41,7 @@  endef
 ifeq ($(BR2_PACKAGE_QT5DECLARATIVE_QUICK),y)
 define QT5WEBSOCKETS_INSTALL_TARGET_QMLS
 	cp -dpfr $(STAGING_DIR)/usr/qml/Qt/WebSockets $(TARGET_DIR)/usr/qml/Qt/
+	cp -dpfr $(STAGING_DIR)/usr/qml/QtWebSockets $(TARGET_DIR)/usr/qml/
 endef
 endif