Re: Port ofono-phonesim to Qt5

2019-10-26 Thread Jonah Brüchert
The proper url is of course https://layers.openembedded.org/layerindex/recipe/32381/. Sorry for the truncated one in the first mail. ___ ofono mailing list -- ofono@ofono.org To unsubscribe send an email to ofono-le...@ofono.org

[PATCH phonesim 3/7] configure.ac: use gnu++11 to fix build with Qt 5.7

2019-10-26 Thread Jonah Brüchert
From: Martin Jansa Signed-off-by: Martin Jansa --- configure.ac | 4 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 253aa27..4eb969a 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,10 @@ AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optim

[PATCH phonesim 7/7] Fix handling of incoming connections

2019-10-26 Thread Jonah Brüchert
The function has changed from: void incomingConnection(int s) to: void incomingConnection(qintptr s) in Qt5 See https://doc.qt.io/qt-5/sourcebreaks.html#changes-to-qt-network This caused our implementation of incomingConnection() of QTcpServer not to be called anymore. --- src/server.cpp | 2 +-

Port ofono-phonesim to Qt5

2019-10-26 Thread Jonah Brüchert
Dear ofono maintainers, This is the minimal set of patches required to port ofono phonesim to Qt5, based on previous work from openembedded (https://layers.openembedded.org/layerindex/recipe The original patches from openembedded have been preserved in order to keep authorship information. In o

[PATCH phonesim 5/7] configure.ac: fix checking for host_bins variable

2019-10-26 Thread Jonah Brüchert
From: Martin Jansa $PKG_CONFIG --variable=host_bins Qt5Core returns absolute path without the prefix to sysroot when cross compiling Before https://github.com/meta-qt5/meta-qt5/commit/b716195f609de6547cfdfadfd4fd25292a6bbf09 this will return: pkg-config --variable=host_bins Qt5Core /usr/bin/qt

[PATCH phonesim 2/7] Fix random build failure

2019-10-26 Thread Jonah Brüchert
From: Martin Jansa uic and moc doesn't create output directory automatically and it could be missing when uic is executed before gcc creates any object files as src/*.o OE @ ~/build/wpb/webos-ports/tmp-glibc/work/i586-webos-linux/phonesim/1.20-r0/build $ rm -rf src/ OE @ ~/build/wpb/webos-po

[PATCH phonesim 4/7] Fix build with Qt 5.8

2019-10-26 Thread Jonah Brüchert
From: Martin Jansa ../phonesim-1.20/src/qsmsmessage.cpp: In member function 'QCBSMessage QCBSDeliverMessage::unpack(QTextCodec*)': ../phonesim-1.20/src/qsmsmessage.cpp:2598:40: error: ambiguous overload for 'operator==' (operand types are 'QCharRef' and 'char') text[le

[PATCH phonesim 1/7] Port to qt5

2019-10-26 Thread Jonah Brüchert
From: Simon Busch Signed-off-by: Simon Busch Signed-off-by: Martin Jansa --- Makefile.am | 2 +- configure.ac| 6 +++--- src/control.cpp | 4 ++-- src/qsimcommand.cpp | 2 +- src/qsmsmessage.cpp | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile

[PATCH phonesim 6/7] Make Qt detect fPIC flag correctly

2019-10-26 Thread Jonah Brüchert
--- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 59fb421..74cf657 100644 --- a/Makefile.am +++ b/Makefile.am @@ -46,7 +46,7 @@ nodist_src_phonesim_SOURCES = src/ui_controlbase.h \ src_phonesim_LDADD = $(QT_LIBS) -AM_CXXFLAGS = -