Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various fixes for deprecated functions, adds Qt6 support #9

Merged
merged 6 commits into from Jul 5, 2022

Conversation

Herrie82
Copy link
Contributor

Will now work with both Qt 5.15 and Qt 6.x.

Has not been tested on older versions of Qt 5.

Signed-off-by: Herman van Hazendonk github.com@herrie.org

QRegExp has been deprecated as of Qt6 in favor of QRegularExpression which was introduced in Qt5. https://doc-snapshots.qt.io/qt6-dev/qregexp.html

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
qVariantFromValue has been deprecated as per https://doc.qt.io/qt-5/qvariant-obsolete.html#qVariantFromValue

Replace by QVariant::fromValue.

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
@jmlich
Copy link

jmlich commented May 29, 2022

I have tried to recompile your branch on Manjaro as it seems commit 5c90061 resolves trouble with compilation caused by new gcc or new default compiler settings. In the end compilation failed with following error message:

jmlich@manajro-virt:~/workspace/libconnman-qt/build (herrie/qt6-clean =)$ qmake -r VERSION=1.2.43 ..
Info: creating stash file /home/jmlich/workspace/libconnman-qt/build/.qmake.stash
Reading /home/jmlich/workspace/libconnman-qt/libconnman-qt/libconnman-qt.pro [/home/jmlich/workspace/libconnman-qt/build/libconnman-qt]
WARNING: Failure to find: connman_vpn_manager_interface.h
WARNING: Failure to find: connman_vpn_connection_interface.h
Reading /home/jmlich/workspace/libconnman-qt/plugin/plugin.pro [/home/jmlich/workspace/libconnman-qt/build/plugin]
jmlich@manajro-virt:~/workspace/libconnman-qt/build (herrie/qt6-clean =)$ make
cd libconnman-qt/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/jmlich/workspace/libconnman-qt/libconnman-qt/libconnman-qt.pro VERSION=1.2.43 ) && make -f Makefile 
make[1]: Entering directory '/home/jmlich/workspace/libconnman-qt/build/libconnman-qt'
g++ -c -pipe -O2 -pthread -pthread -D_REENTRANT -flto -fno-fat-lto-objects -Wall -Wextra -fPIC -DHAVE_LIBDBUSACCESS=1 -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../libconnman-qt -I/home/jmlich/workspace/libconnman-qt/build/libconnman-qt -I/usr/include/dbusaccess -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gutil -I/usr/include/qt -I/usr/include/qt/QtDBus -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I/home/jmlich/workspace/libconnman-qt/build/libconnman-qt -I/usr/lib/qt/mkspecs/linux-g++ -o marshalutils.o ../../libconnman-qt/marshalutils.cpp
In file included from /usr/include/qt/QtDBus/QDBusMetaType:1,
                 from ../../libconnman-qt/marshalutils.cpp:191:
/usr/include/qt/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusMarshallHelper(QDBusArgument&, const T*) [with T = RouteStructure]’:
/usr/include/qt/QtDBus/qdbusmetatype.h:81:12:   required from ‘int qDBusRegisterMetaType(T*) [with T = RouteStructure]’
../../libconnman-qt/marshalutils.cpp:195:42:   required from here
/usr/include/qt/QtDBus/qdbusmetatype.h:68:7: error: ambiguous overload for ‘operator<<’ (operand types are ‘QDBusArgument’ and ‘const RouteStructure’)
   68 | { arg << *t; }
      |   ~~~~^~~~~
../../libconnman-qt/marshalutils.cpp:41:30: note: candidate: ‘QDBusArgument& operator<<(QDBusArgument&, const RouteStructure&)’
   41 | Q_DBUS_EXPORT QDBusArgument &operator<<(QDBusArgument &a, const RouteStructure &v);
      |                              ^~~~~~~~
../../libconnman-qt/marshalutils.cpp:48:16: note: candidate: ‘QDBusArgument& {anonymous}::operator<<(QDBusArgument&, const RouteStructure&)’
   48 | QDBusArgument &operator<<(QDBusArgument &argument, const RouteStructure &routestruct)
      |                ^~~~~~~~
/usr/include/qt/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusDemarshallHelper(const QDBusArgument&, T*) [with T = RouteStructure]’:
/usr/include/qt/QtDBus/qdbusmetatype.h:82:12:   required from ‘int qDBusRegisterMetaType(T*) [with T = RouteStructure]’
../../libconnman-qt/marshalutils.cpp:195:42:   required from here
/usr/include/qt/QtDBus/qdbusmetatype.h:72:7: error: ambiguous overload for ‘operator>>’ (operand types are ‘const QDBusArgument’ and ‘RouteStructure’)
   72 | { arg >> *t; }
      |   ~~~~^~~~~
../../libconnman-qt/marshalutils.cpp:40:36: note: candidate: ‘const QDBusArgument& operator>>(const QDBusArgument&, RouteStructure&)’
   40 | Q_DBUS_EXPORT const QDBusArgument &operator>>(const QDBusArgument &a, RouteStructure &v);
      |                                    ^~~~~~~~
../../libconnman-qt/marshalutils.cpp:63:22: note: candidate: ‘const QDBusArgument& {anonymous}::operator>>(const QDBusArgument&, RouteStructure&)’
   63 | const QDBusArgument &operator>>(const QDBusArgument &argument, RouteStructure &routestruct)
      |                      ^~~~~~~~
../../libconnman-qt/marshalutils.cpp:63:22: warning: ‘const QDBusArgument& {anonymous}::operator>>(const QDBusArgument&, RouteStructure&)’ defined but not used [-Wunused-function]
../../libconnman-qt/marshalutils.cpp:48:16: warning: ‘QDBusArgument& {anonymous}::operator<<(QDBusArgument&, const RouteStructure&)’ defined but not used [-Wunused-function]
   48 | QDBusArgument &operator<<(QDBusArgument &argument, const RouteStructure &routestruct)
      |                ^~~~~~~~
make[1]: *** [Makefile:1051: marshalutils.o] Error 1
make[1]: Leaving directory '/home/jmlich/workspace/libconnman-qt/build/libconnman-qt'
make: *** [Makefile:48: lib-target-make_first] Error 2
jmlich@manajro-virt:~/workspace/libconnman-qt (herrie/qt6-clean %=)$ gcc --version
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

jmlich@manajro-virt:~/workspace/libconnman-qt (herrie/qt6-clean %=)$ qmake-qt5 --version
QMake version 3.1
Using Qt version 5.15.4 in /usr/lib

@Tofee
Copy link

Tofee commented May 29, 2022

@jmlich Unfortunately I didn't fully understand the actual origin of this error, as just including the header shouldn't trigger errors related to the templates declared later on in the cpp... Out of spite I tried just moving the include a bit later in the cpp, before we actually use what's declared in the header. That worked well with Qt 6, Qt 5.15, compiled with gcc 11. It could be the issue is still unsolved for gcc 12.

@Herrie82
Copy link
Contributor Author

@jmlich I guess something like this one might work? 9be6c18

@Herrie82
Copy link
Contributor Author

@Thaodan This replaces the other PR, I've cut it up into separate commits with more documentation now

@Herrie82
Copy link
Contributor Author

Herrie82 commented Jun 9, 2022

@jmlich @pvuorela @monich @rainemak Any further comments on this one?

@jmlich
Copy link

jmlich commented Jun 9, 2022

The suggested approach/commit didn't helped. My issue is not directly related to this pull request. I don't want to hijack it. (-;
The changes looks good to me. I have tried to recompile it just with Qt5 with result described above.

#include "vpnconnection.h"

#include "marshalutils.h"

#if defined(__clang__) && __clang_major__ >= 11 || __GNUC__ >= 12
Q_DBUS_EXPORT const QDBusArgument &operator>>(const QDBusArgument &a, RouteStructure &v);
Q_DBUS_EXPORT QDBusArgument &operator<<(QDBusArgument &a, const RouteStructure &v);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks strange to me in may ways. First the Q_DBUS_EXPORT not being a documented, looks like it should end up as Q_DECL_IMPORT/EXPORT. Then again the symbol visibilities shouldn't generally depend on compiler. And then again generally the visibilities should only matter on something using this from a shared library. And not sure does the library here get even compiled with hidden symbols by default. There are no Q_DECL_... usage elsewhere so I'm guessing no. And finally this is exporting something from the anon namespace which by definition should be internal to the file.

I'm having a feeling this might be fixing something by accident.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be that Q_DBUS_EXPORT is just useless here, I didn't really check that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, but even without that this would be having different declaration for content inside the anon namespace.

There was a small compiler error snippet in the commit message. Would you have the bigger error message available in case it helps figuring out what's the problem.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps, but even without that this would be having different declaration for content inside the anon namespace.

There was a small compiler error snippet in the commit message. Would you have the bigger error message available in case it helps figuring out what's the problem.

Here's a full log: http://errors.yoctoproject.org/Errors/Details/655056/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pvuorela Any thoughts based on above logs? I got a build system with GCC 12 here to test if needed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Tested also local build with qt6 and the current version here didn't work.

But tried a minor adjustment which could make more sense. Suggest:

  • remove this export thing
  • move the empty namespace declaration two methods downwards so the dbus argument operators are not inside it.

Copy link
Contributor Author

@Herrie82 Herrie82 Jun 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Tested also local build with qt6 and the current version here didn't work.

But tried a minor adjustment which could make more sense. Suggest:

  • remove this export thing
  • move the empty namespace declaration two methods downwards so the dbus argument operators are not inside it.

Sorry I'm not that great when it comes to C(++) ;)
You mean like this? webOS-ports@eb38903

BTW: This was tested with GCC 11/12.1 and Qt5.15/6.3 and compiling here without issues.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same effect, yes. The pre-declarations are unnecessary there, though, when the implementations come right after them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same effect, yes. The pre-declarations are unnecessary there, though, when the implementations come right after them.

OK removed those as well and cleaned up the commits into a single one.

@pvuorela
Copy link
Contributor

pvuorela commented Jun 9, 2022

Beside that dbus export this looks good. Ideally could squash the commits which adjust the same code based on review comments, though.

toTime_t() has been deprecated as per https://doc.qt.io/qt-5/qdatetime-obsolete.html#fromTime_t-1

In order to keep backwards compatibility with Qt 5.6 used by SFOS, use toMSecsSinceEpoch instead.

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
qsrand() has been deprecated as per https://doc.qt.io/qt-5/qtglobal-obsolete.html#qsrand

QRandomGenerator was introduced in Qt 5.10, so for older versions of Qt such as 5.6 used in SFOS keep using qsrand.

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
@Herrie82
Copy link
Contributor Author

Herrie82 commented Jun 9, 2022

Q_DBUS_EXPORT

I squashed those. The Q_DBUS_EXPORT I cherry-picked from meta-qt5 layer and included it in this PR, so I'm just the messenger here. @kraj is the author of the original patch, so he might have more background on it.

Copy link
Member

@rainemak rainemak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added comments regarding forward declaration.


class VpnModelPrivate;
class VpnManager;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fishy as there are only pointers in the header. There seems to be system include of the vpnmanager in the cpp file. Maybe source should look like:

#include <QtDBus>

#include "vpnconnection.h"
#include "vpnmodel.h"
#include "vpnmodel_p.h"

#include "vpnmanager.h"
#include "vpnmanager_p.h"

In case you happen to have connman-qt5-devel installed the at same time, wrong might get picked up.

That would mean that vpnmodel.h would have "class VpnManager;" forward declaration in place.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a QML property that uses this type, and therefore it isn't possible anymore in Qt6 to forward-declare the associated type.
There are two ways to fix this:

  • as it has been done here, with a simple include
  • using the Q_MOC_INCLUDE macro, to include it during moc processing

See: https://doc.qt.io/qt-6/qtcore-changes-qt6.html#type-registration

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rainemak Happy to try it with Q_MOC_INCLUDE if that's more to your liking and adjust accordingly

Copy link
Contributor Author

@Herrie82 Herrie82 Jun 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rainemak: Tested with Q_MOC_INCLUDE that seems fine as well, so pushed that instead and squashed the commits.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q_MOC_INCLUDE was introduced in qt 6.0 so a common #include should be cleaner here, avoiding version specific handling.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if used, it would need to be protected with qt version #ifdef and something else provided for Qt5. I wouldn't expect Raine either favoring such. Just about the first time we are adding Qt6 support so the forward declaration vs #include on Q_PROPERTIES wasn't a self-evident change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pvuorela @rainemak Made the Q_MOC_INCLUDE only for Qt 6 with b20683f That should work in both 5.x and 6.x versions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good enough too. But maybe on next one just do the basic #include.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good enough too. But maybe on next one just do the basic #include.

Which next one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaning if you do another similar pull request on another project.

libconnman-qt/vpnmanager.h Show resolved Hide resolved
@@ -183,6 +188,7 @@ QVariantMap MarshalUtils::propertiesToQml(const QVariantMap &fromDBus)
return rv;
}

#include <QDBusMetaType>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Includes to the beginning of the file.

… are 'QDBusArgument' and 'const RouteStructure')

This appears with clang-11 and gcc 12:

Fixes: In file included from ../../recipe-sysroot/usr/include/QtDBus/QDBusMetaType:1,
                 from ../../git/libconnman-qt/marshalutils.cpp:34:
../../recipe-sysroot/usr/include/QtDBus/qdbusmetatype.h: In instantiation of 'QMetaType qDBusRegisterMetaType() [with T = RouteStructure]':
../../git/libconnman-qt/marshalutils.cpp:194:42:   required from here
../../recipe-sysroot/usr/include/QtDBus/qdbusmetatype.h:71:59: error: no match for 'operator<<' (operand types are 'QDBusArgument' and 'const RouteStructure')
   71 |     auto mf = [](QDBusArgument &arg, const void *t) { arg << *static_cast<const T *>(t); };
      |                                                       ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../recipe-sysroot/usr/include/QtDBus/qdbusmetatype.h:45,
                 from ../../recipe-sysroot/usr/include/QtDBus/QDBusMetaType:1,
                 from ../../git/libconnman-qt/marshalutils.cpp:34:
/mnt/5ba5d474-0b2d-49d6-a5a6-9de20c3ac967/honister-qt6/webos-ports/tmp-glibc/work/core2-64-webos-linux/libconnman-qt/1.2.35+gitAUTOINC+088350de01-r0/recipe-sysroot/usr/include/QtDBus/qdbusargument.h:87:20: note: candidate: 'QDBusArgument& QDBusArgument::operator<<(uchar)'
   87 |     QDBusArgument &operator<<(uchar arg);

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
Q_PROPERTY needs to be fully defined in QT6 as per https://stackoverflow.com/questions/66581395/q-property-must-be-fully-defined-error-in-qt-6

Therefore use Q_MOC_INCLUDE when using Qt6

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
@Herrie82
Copy link
Contributor Author

Herrie82 commented Jun 30, 2022

I have tried to recompile your branch on Manjaro as it seems commit 5c90061 resolves trouble with compilation caused by new gcc or new default compiler settings. In the end compilation failed with following error message:

jmlich@manajro-virt:~/workspace/libconnman-qt/build (herrie/qt6-clean =)$ qmake -r VERSION=1.2.43 ..
Info: creating stash file /home/jmlich/workspace/libconnman-qt/build/.qmake.stash
Reading /home/jmlich/workspace/libconnman-qt/libconnman-qt/libconnman-qt.pro [/home/jmlich/workspace/libconnman-qt/build/libconnman-qt]
WARNING: Failure to find: connman_vpn_manager_interface.h
WARNING: Failure to find: connman_vpn_connection_interface.h
Reading /home/jmlich/workspace/libconnman-qt/plugin/plugin.pro [/home/jmlich/workspace/libconnman-qt/build/plugin]
jmlich@manajro-virt:~/workspace/libconnman-qt/build (herrie/qt6-clean =)$ make
cd libconnman-qt/ && ( test -e Makefile || /usr/bin/qmake -o Makefile /home/jmlich/workspace/libconnman-qt/libconnman-qt/libconnman-qt.pro VERSION=1.2.43 ) && make -f Makefile 
make[1]: Entering directory '/home/jmlich/workspace/libconnman-qt/build/libconnman-qt'
g++ -c -pipe -O2 -pthread -pthread -D_REENTRANT -flto -fno-fat-lto-objects -Wall -Wextra -fPIC -DHAVE_LIBDBUSACCESS=1 -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../libconnman-qt -I/home/jmlich/workspace/libconnman-qt/build/libconnman-qt -I/usr/include/dbusaccess -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gutil -I/usr/include/qt -I/usr/include/qt/QtDBus -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtCore -I/home/jmlich/workspace/libconnman-qt/build/libconnman-qt -I/usr/lib/qt/mkspecs/linux-g++ -o marshalutils.o ../../libconnman-qt/marshalutils.cpp
In file included from /usr/include/qt/QtDBus/QDBusMetaType:1,
                 from ../../libconnman-qt/marshalutils.cpp:191:
/usr/include/qt/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusMarshallHelper(QDBusArgument&, const T*) [with T = RouteStructure]’:
/usr/include/qt/QtDBus/qdbusmetatype.h:81:12:   required from ‘int qDBusRegisterMetaType(T*) [with T = RouteStructure]’
../../libconnman-qt/marshalutils.cpp:195:42:   required from here
/usr/include/qt/QtDBus/qdbusmetatype.h:68:7: error: ambiguous overload for ‘operator<<’ (operand types are ‘QDBusArgument’ and ‘const RouteStructure’)
   68 | { arg << *t; }
      |   ~~~~^~~~~
../../libconnman-qt/marshalutils.cpp:41:30: note: candidate: ‘QDBusArgument& operator<<(QDBusArgument&, const RouteStructure&)’
   41 | Q_DBUS_EXPORT QDBusArgument &operator<<(QDBusArgument &a, const RouteStructure &v);
      |                              ^~~~~~~~
../../libconnman-qt/marshalutils.cpp:48:16: note: candidate: ‘QDBusArgument& {anonymous}::operator<<(QDBusArgument&, const RouteStructure&)’
   48 | QDBusArgument &operator<<(QDBusArgument &argument, const RouteStructure &routestruct)
      |                ^~~~~~~~
/usr/include/qt/QtDBus/qdbusmetatype.h: In instantiation of ‘void qDBusDemarshallHelper(const QDBusArgument&, T*) [with T = RouteStructure]’:
/usr/include/qt/QtDBus/qdbusmetatype.h:82:12:   required from ‘int qDBusRegisterMetaType(T*) [with T = RouteStructure]’
../../libconnman-qt/marshalutils.cpp:195:42:   required from here
/usr/include/qt/QtDBus/qdbusmetatype.h:72:7: error: ambiguous overload for ‘operator>>’ (operand types are ‘const QDBusArgument’ and ‘RouteStructure’)
   72 | { arg >> *t; }
      |   ~~~~^~~~~
../../libconnman-qt/marshalutils.cpp:40:36: note: candidate: ‘const QDBusArgument& operator>>(const QDBusArgument&, RouteStructure&)’
   40 | Q_DBUS_EXPORT const QDBusArgument &operator>>(const QDBusArgument &a, RouteStructure &v);
      |                                    ^~~~~~~~
../../libconnman-qt/marshalutils.cpp:63:22: note: candidate: ‘const QDBusArgument& {anonymous}::operator>>(const QDBusArgument&, RouteStructure&)’
   63 | const QDBusArgument &operator>>(const QDBusArgument &argument, RouteStructure &routestruct)
      |                      ^~~~~~~~
../../libconnman-qt/marshalutils.cpp:63:22: warning: ‘const QDBusArgument& {anonymous}::operator>>(const QDBusArgument&, RouteStructure&)’ defined but not used [-Wunused-function]
../../libconnman-qt/marshalutils.cpp:48:16: warning: ‘QDBusArgument& {anonymous}::operator<<(QDBusArgument&, const RouteStructure&)’ defined but not used [-Wunused-function]
   48 | QDBusArgument &operator<<(QDBusArgument &argument, const RouteStructure &routestruct)
      |                ^~~~~~~~
make[1]: *** [Makefile:1051: marshalutils.o] Error 1
make[1]: Leaving directory '/home/jmlich/workspace/libconnman-qt/build/libconnman-qt'
make: *** [Makefile:48: lib-target-make_first] Error 2
jmlich@manajro-virt:~/workspace/libconnman-qt (herrie/qt6-clean %=)$ gcc --version
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

jmlich@manajro-virt:~/workspace/libconnman-qt (herrie/qt6-clean %=)$ qmake-qt5 --version
QMake version 3.1
Using Qt version 5.15.4 in /usr/lib

@jmlich This works for me with GCC 12.1:
a1c462e

@jmlich
Copy link

jmlich commented Jul 4, 2022

I can confirm, that current version works for me.

jmlich added a commit to jmlich/nemo-packaging that referenced this pull request Jul 4, 2022
@Herrie82
Copy link
Contributor Author

Herrie82 commented Jul 4, 2022

I can confirm, that current version works for me.

Great, thanks for testing and confirming!

Copy link
Contributor

@pvuorela pvuorela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is good.

@pvuorela pvuorela merged commit 6786936 into sailfishos:master Jul 5, 2022
@shr-project
Copy link

This is now tagged as 1.2.46, but the version in .pro and .spec file is still 1.2.35 as set in 347f20f should it be bumped to match the git tag?

@pvuorela
Copy link
Contributor

pvuorela commented Jul 6, 2022

Sailfish picks the version from the tag, .spec is commonly kept roughly in sync e.g. to help local builds but commonly does not matter too much if it lags a bit. The .pro file could have effect on other distributions as it affects the .so naming but wouldn't expect even that to matter too much.

shr-project added a commit to meta-qt5/meta-qt5 that referenced this pull request Jul 6, 2022
* the version in .pro and .spec doesn't match with the git tag:
  sailfishos/libconnman-qt#9 (comment)
  sailfish passes the version based on git tag:
  sailfishos/libconnman-qt#9 (comment)
  lets do the same

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
jmlich added a commit to jmlich/nemo-packaging that referenced this pull request Jul 8, 2022
shr-project added a commit to meta-qt5/meta-qt5 that referenced this pull request Feb 15, 2023
* the version in .pro and .spec doesn't match with the git tag:
  sailfishos/libconnman-qt#9 (comment)
  sailfish passes the version based on git tag:
  sailfishos/libconnman-qt#9 (comment)
  lets do the same

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/meta-qt5 that referenced this pull request Feb 23, 2023
Source: meta-qt5
MR: 125002
Type: Integration
Disposition: Merged from meta-qt5
ChangeID: 2b71dbe
Description:

* the version in .pro and .spec doesn't match with the git tag:
  sailfishos/libconnman-qt#9 (comment)
  sailfish passes the version based on git tag:
  sailfishos/libconnman-qt#9 (comment)
  lets do the same

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants