Re: [Development] Notes on "Managing Qt's branches" session @ QCS 2016

2016-09-21 Thread Liang Qi
On 12 September 2016 at 11:20, Edward Welbourne wrote: > Marc Mutz said: > > The obvious question is, then, why is only "the one person" doing merges? > > Allow more people to upload merges, and you will get the spreading you > desire. > > Several people can upload merges. > One person looks aft

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 12:00:15 PDT Marc Mutz wrote: > We have a handful of classes in Qt which have a > 'reserved' field that doesn't get initialized (so it better should be named > 'unusable') That depends on whether the copy constructors and destructor are inline or not. --

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Mathias Hasselmann
Am 22.09.2016 um 00:58 schrieb André Pönitz: On Wed, Sep 21, 2016 at 08:57:01AM +0200, Olivier Goffart wrote: No, it's not. It's changing undefined behavior into defined behavior. But in many case, we want to put something in a QVariant, and we never compare this variant. Forbidding types t

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Mathias Hasselmann
Am 21.09.2016 um 12:00 schrieb Marc Mutz: On Wednesday 21 September 2016 11:42:41 Mathias Hasselmann wrote: No matter what order I use for config and value, the compiler will pad and -Wpadded will complain. How am I supposed to fix this? This solutions that come to my mind all are ugly, but mo

Re: [Development] Qt5 Bearer: broken PPP support

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 07:57:42 PDT Thiago Macieira wrote: > I'll fix it when I'm back home tonight. https://codereview.qt-project.org/171756 It was quite simple. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___

Re: [Development] linuxdeployqt

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 18:16:53 PDT Thiago Macieira wrote: > Unless we broke it with the new configure system. The commit by Ossi that > fixed it is getting reverted in 5.8. Sorry, reverted in dev. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel

Re: [Development] linuxdeployqt

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 22:09:05 PDT Konstantin Tokarev wrote: > > $ ls /opt/poky/sysroots/*/etc/ld.so.conf > > /opt/poky/sysroots/aarch64-poky-linux/etc/ld.so.conf > > /opt/poky/sysroots/armv7a-neon-poky-linux-gnueabi/etc/ld.so.conf > > /opt/poky/sysroots/mips32r2-poky-linux/etc/ld

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread André Pönitz
On Wed, Sep 21, 2016 at 08:57:01AM +0200, Olivier Goffart wrote: > > No, it's not. It's changing undefined behavior into defined > > behavior. > > But in many case, we want to put something in a QVariant, and we > never compare this variant. Forbidding types that do not have an > operator== to be

Re: [Development] linuxdeployqt

2016-09-21 Thread Konstantin Tokarev
21.09.2016, 20:41, "Thiago Macieira" : > On quarta-feira, 21 de setembro de 2016 19:24:34 PDT Oswald Buddenhagen wrote: >>  > and you can then search the >>  > paths from /etc/ld.so.conf & /etc/ld.so.conf.d/*. >> >>  that will suffer from x-build issues again. > > Hmm... if we're cross-compiling,

Re: [Development] linuxdeployqt

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 19:24:34 PDT Oswald Buddenhagen wrote: > > and you can then search the > > paths from /etc/ld.so.conf & /etc/ld.so.conf.d/*. > > that will suffer from x-build issues again. Hmm... if we're cross-compiling, we should have access to the path to the sysroot,

Re: [Development] linuxdeployqt

2016-09-21 Thread Oswald Buddenhagen
On Wed, Sep 21, 2016 at 08:00:25AM -0700, Thiago Macieira wrote: > On quarta-feira, 21 de setembro de 2016 10:11:01 PDT probono wrote: > > ldd not only provides the name of the libraries to be loaded, but also > > the paths to the locations where they are loaded from. How would I get > > this infor

Re: [Development] linuxdeployqt

2016-09-21 Thread Henry Skoglund
On 2016-09-21 17:02, Thiago Macieira wrote: On quarta-feira, 21 de setembro de 2016 11:06:59 PDT Konrad Rosenbaum wrote: RPath may be a bit tricky: normally Qt compiles it's lib path into RPath, but with a deploy script you do not want that RPath anymore, instead you'd want to change it to $ORIG

Re: [Development] Qt5 Bearer: broken PPP support

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 10:11:00 PDT Alexander Smirnov wrote: > ppp0 interface is created by typical Linux pppd daemon. > tun2 interface is created by openvpn. > > > I'll fix it. > > Please let me know, if you need additional information. I thought I'd fixed the tun case, as I do

Re: [Development] linuxdeployqt

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 11:06:59 PDT Konrad Rosenbaum wrote: > RPath may be a bit tricky: normally Qt compiles it's lib path into RPath, > but with a deploy script you do not want that RPath anymore, instead you'd > want to change it to $ORIGIN (literally, not the value of a variabl

Re: [Development] linuxdeployqt

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 10:11:01 PDT probono wrote: > ldd not only provides the name of the libraries to be loaded, but also > the paths to the locations where they are loaded from. How would I get > this information without using ldd? Manually. First, use the environment variable

Re: [Development] QCS2016 Session Notes - QUIPs for Qt

2016-09-21 Thread Konstantin Tokarev
21.09.2016, 12:34, "Friedemann Kleint" : > Hi, > > technically speaking: is using the .rst format set in stone? I find this > difficult to handle; one needs a local web server to view it AFAIK. .md > comes to mind as alternative? Are you implying that you need local web server to view HTML? :)

Re: [Development] QCS2016 Session Notes - QUIPs for Qt

2016-09-21 Thread Thiago Macieira
On quarta-feira, 21 de setembro de 2016 11:34:02 PDT Friedemann Kleint wrote: > Hi, > > technically speaking: is using the .rst format set in stone? I find this > difficult to handle; one needs a local web server to view it AFAIK. .md > comes to mind as alternative? How is that different from .md

Re: [Development] Notes on "Qt Build Systems" @ QtCon 2016

2016-09-21 Thread Иван Комиссаров
I was using CMake for several years (and still forced to use it now), however i moved all my projects to QBS for one reason - CMake is too complex. It has great documentation, but it can't be used without it; on the contrary, qbs is very intuitive. I don't have to remember tons of variables like CM

Re: [Development] QCS2016 Session Notes - QUIPs for Qt

2016-09-21 Thread Andrew Knight
Hi, On 09/21/16 12:34, Friedemann Kleint wrote: > Hi, > > technically speaking: is using the .rst format set in stone? I find > this difficult to handle; one needs a local web server to view it > AFAIK. .md comes to mind as alternative? > We discussed this at QtCon and settled on ReStructured Te

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Marc Mutz
On Wednesday 21 September 2016 11:42:41 Mathias Hasselmann wrote: > Am 21.09.2016 um 09:52 schrieb Marc Mutz: > > On Wednesday 21 September 2016 09:23:35 Mathias Hasselmann wrote: > >> Maybe some clever use of type traits can tell us if your structs contain > >> alignment wholes? > > > > -Werror=p

Re: [Development] Qt 5.8 API review (vs 5.7.0)

2016-09-21 Thread Edward Welbourne
On 2016 September 9 I announced: > It's that time in the release cycle again - API review time. > If you can catch a moment when Gerrit isn't hiding, please > take a look at any modules you care for: > https://codereview.qt-project.org/170634 -- qtbase > https://codereview.qt-project.org/170635 -

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Mathias Hasselmann
Am 21.09.2016 um 09:52 schrieb Marc Mutz: On Wednesday 21 September 2016 09:23:35 Mathias Hasselmann wrote: Maybe some clever use of type traits can tell us if your structs contain alignment wholes? -Werror=padded :) Yes, but how is it supposed to help? Let me show a real world example:

Re: [Development] QCS2016 Session Notes - QUIPs for Qt

2016-09-21 Thread Friedemann Kleint
Hi, technically speaking: is using the .rst format set in stone? I find this difficult to handle; one needs a local web server to view it AFAIK. .md comes to mind as alternative? Regards, Friedemann -- Friedemann Kleint The Qt Company GmbH ___ Dev

Re: [Development] linuxdeployqt

2016-09-21 Thread Konrad Rosenbaum
Hi, On Wed, September 21, 2016 10:11, probono wrote: > 2016-09-19 16:45 GMT+02:00 Louai Al-Khanji : >> From a quick look it seems to be mostly well written. I do wonder >> whether it might be better to use a tool other than ldd to find the >> library dependencies. objdump -p provides the same info

[Development] Qt 5.6.2 packages for testing

2016-09-21 Thread Jani Heikkinen
Hi all, We have final Qt 5.6.2 packages for your testing available: Windows:http://download.qt.io/snapshots/qt/5.6/5.6.2/569/ Linux: http://download.qt.io/snapshots/qt/5.6/5.6.2/503/ Mac:http://download.qt.io/snapshots/qt/5.6/5.6.2/436/ src: http://download.qt.io/snapshots/qt/5.6/5.6.2/latest

Re: [Development] linuxdeployqt

2016-09-21 Thread probono
2016-09-19 16:45 GMT+02:00 Louai Al-Khanji : > From a quick look it seems to be mostly well written. I do wonder whether it > might be better to use a tool other than ldd to find the library > dependencies. objdump -p provides the same information, and also works for > cross-compiles. ldd not o

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Marc Mutz
On Wednesday 21 September 2016 09:23:35 Mathias Hasselmann wrote: > Maybe some clever use of type traits can tell us if your structs contain > alignment wholes? -Werror=padded :) -- Marc Mutz | Senior Software Engineer KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company Tel: +49-30-521325470

Re: [Development] Should QVariant be doing fuzzy comparisons on doubles?

2016-09-21 Thread Mathias Hasselmann
Am 21.09.2016 um 08:57 schrieb Olivier Goffart: On Mittwoch, 21. September 2016 08:01:22 CEST Mathias Hasselmann wrote: As much as I'd like to debug this code now to prove me right, I sadly have deadlines to meet this week. So I have to behave myself to not dig up the code right now. Maybe lat

Re: [Development] Qt5 Bearer: broken PPP support

2016-09-21 Thread Alexander Smirnov
Hi Thiago, On terça-feira, 20 de setembro de 2016 22:48:42 PDT Alexander Smirnov wrote: After debugging I figured out, that the problem is in commit: 043f5d3eb52587831f643bc52c95079c36d984c7 This commit allows to add to list: QList interfaces; interfaces with no address field (ifa_a