Compare commits

..

202 Commits
f23 ... master

Author SHA1 Message Date
Rex Dieter 70363d0880 backport "Mutex deadlock in QPluginLoader, Krita fails to start" (QTBUG-83207) 2020-04-14 11:25:08 -05:00
Rex Dieter d8f1d7a524 patch FTBFS mysteriously, just hard-code for now 2020-04-14 09:09:53 -05:00
Rex Dieter d727853314 fix patch55 2020-04-13 17:04:51 -05:00
Rex Dieter 6f111ade59 matching no_relocatable.patch
workaround using relocatable heurstics even when building with -no-feature-relocatable
2020-04-13 15:16:21 -05:00
Rex Dieter 8d3281a25b -no-feature-relocatable 2020-04-13 12:39:00 -05:00
Rex Dieter c5ba3dc43e %build: -no-relocatable (#1823118) 2020-04-13 12:08:12 -05:00
Than Ngo 6cce1b1233 Fixed bz#1801370 - CVE-2015-9541 XML entity expansion vulnerability via a crafted SVG document 2020-04-08 12:20:38 +02:00
Rex Dieter 99a7b7e10d unused patch 2020-04-05 18:44:13 -05:00
Rex Dieter 87d970c5d5 new-sources 2020-04-04 17:50:37 -05:00
Rex Dieter a5e651007c +sources.basename 2020-04-04 17:22:00 -05:00
Rex Dieter 0424a8b5b0 5.14.2 2020-04-04 16:36:32 -05:00
Robert-André Mauchin 048d2137d8 Upstream patch to add support for PostgreSQL 12 (#1815921)
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2020-03-22 20:39:23 +01:00
Fedora Release Engineering 52cb5cfa20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-30 16:54:04 +00:00
Than Ngo fbe60f8d39 upstream patches fix following issues:
Do-not-load-plugin-from-the-PWD
   QLibrary-Unix-do-not-attempt-to-load-a-library-relat
2020-01-20 10:57:00 +01:00
Jan Grulich 2dd29366d0 5.13.2 2019-12-09 13:49:05 +01:00
Pete Walter 7cf1b36f2b Rebuild for ICU 65 2019-11-01 15:48:48 +00:00
Jan Grulich dabefd25d8 5.12.5 2019-09-24 13:24:08 +02:00
Rex Dieter 3548249d39 s/pkgconfig(egl)/libEGL-devel/ 2019-08-21 15:00:38 -05:00
Fedora Release Engineering 159799f24f - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-26 17:47:15 +00:00
Jan Grulich 9c762bfb43 Use qtwayland by default on Gnome Wayland sessions
Resolves: bz#1732129
2019-07-23 09:55:37 +02:00
Jan Grulich abb914b769 Revert "Reset QWidget's winId when backing window surface is destroyed" 2019-07-15 10:47:08 +02:00
Rex Dieter 72b5ae0fbb omit QTBUG-73231 patch fix, appears to introduce incompatible symbols 2019-06-28 15:35:20 -05:00
Rex Dieter 8a09cd6061 pull in some upstream crash fixes 2019-06-26 11:26:52 -05:00
Jan Grulich dc07d438ad Fix date 2019-06-14 07:36:30 +02:00
Jan Grulich cc25be2271 Update changelog date 2019-06-14 07:35:12 +02:00
Jan Grulich c505c71283 5.12.4 2019-06-14 07:33:54 +02:00
Rex Dieter 7000161d93 pull in candidate upstream nvidia/optima fix (kde#406180) 2019-06-12 15:41:57 -05:00
Jan Grulich 9fe549303e 5.12.3 2019-06-04 10:49:57 +02:00
Rex Dieter afc1c75b83 Fix install targets for generated private headers (#1702858) 2019-05-10 09:28:18 -05:00
Rex Dieter 92b82f31aa drop BR: pkgconfig(glesv2) on f31+, no longer provided in mesa-19.1+ 2019-05-09 09:42:39 -05:00
Rex Dieter ae2a637c47 Blacklist nouveau and llvmpipe for multithreading (#1706420) 2019-05-08 14:49:31 -05:00
Rex Dieter d3250a64e0 keep mkspecs/modules/*_private.pri in -devel #1705280) 2019-05-02 08:22:15 -05:00
Rex Dieter 3e7f6f93e7 CMake generates wrong -isystem /usr/include compilations flags with Qt5::Gui (#1704474) 2019-04-30 15:23:29 -05:00
Rex Dieter 1a5c543723 whitespace 2019-04-30 10:15:48 -05:00
Rex Dieter a8ff550c93 private-devel: move cups-devel dep here 2019-04-30 10:15:11 -05:00
Rex Dieter f1bc0ab482 -private-devel subpkg 2019-04-30 09:51:11 -05:00
Rex Dieter 2b351acc1e -devel: Requires: cups-devel 2019-03-04 11:18:28 -06:00
Rex Dieter 0aaf400b7f 5.12.1 2019-02-14 16:57:45 -06:00
Than Ngo d8c2c5870f fixed build issue with gcc9 2019-02-13 19:32:00 +01:00
Rex Dieter f5dd303609 disable renameat2/statx feature on < f30 (#1668865) 2019-02-03 13:20:28 -06:00
Fedora Release Engineering 4cd8fce414 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-02 10:41:42 +00:00
Rex Dieter 34c3c2ba7b Merge branch 'master' into f29 2018-12-21 13:58:36 -06:00
Rex Dieter 4c3347e3d3 Revert "-no-use-gold-linker (#1635973)"
This reverts commit d20cffe9a3.
2018-12-21 13:58:34 -06:00
Rex Dieter bce0c006e8 Revert "- backported patch to fix selection rendering issues if rounding leads to left-out pixels"
This reverts commit a094a8d104.
2018-12-21 13:58:33 -06:00
Rex Dieter fe33bd0e36 5.11.3 2018-12-07 12:58:04 -06:00
Than Ngo a094a8d104 - backported patch to fix selection rendering issues if rounding leads to left-out pixels
- backported patch to optimize insertionPointsForLin
2018-10-25 12:15:09 +02:00
Than Ngo e56d897d9c backported patch to optimize insertionPointsForLine 2018-10-25 11:42:48 +02:00
Than Ngo 4a376dc703 backported patch to fix selection rendering issues if rounding leads to left-out pixels 2018-10-25 11:02:47 +02:00
Rex Dieter d20cffe9a3 -no-use-gold-linker (#1635973)
(cherry picked from commit 8ed6ce04af)
2018-10-24 08:21:58 -05:00
Rex Dieter 8ed6ce04af -no-use-gold-linker (#1635973) 2018-10-11 08:17:18 -05:00
Jan Grulich 98f737ba5a Rebase patches 2018-09-21 09:43:57 +02:00
Jan Grulich d48e9598d2 5.11.2 2018-09-21 09:16:42 +02:00
Pavel Raiskup ff52a3eeb3 BuildRequires: s/postgresql-devel/libpq-devel/
That's because we moved libpq.so.5 into libpq package.

Related: rhbz#1618698, rhbz#162376
2018-09-06 10:15:46 +02:00
Than Ngo 4ac28c2742 fixed FTBFS 2018-07-27 11:40:55 +02:00
Fedora Release Engineering 23d23a8648 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 03:07:56 +00:00
Pete Walter eda8c137f0 Rebuild for ICU 62 2018-07-10 21:58:34 +01:00
Than Ngo 87e0482736 fixed bz#1597110 - BRP mangle shebangs and calculation of provides should ignore backups files 2018-07-02 16:17:33 +02:00
Rex Dieter 5459b14733 apply sse2-related multilib hack on < f29 only
safer %_qt5_prefix, %qt5_archdatadir ownership
rebuild for %_qt5_prefix = %_prefix
2018-06-29 13:37:29 -05:00
Than Ngo 18c4c30a44 fixed #1592146, python3 2018-06-23 11:33:57 +02:00
Rex Dieter 6c00985827 5.11.1
relax qt5-rpm-macros dep
drop workaround for QTBUG-37417
drop CMake-Restore-qt5_use_modules-function.patch (upstreamed)
2018-06-20 07:52:42 -05:00
Rex Dieter 17e492aa0e %%build: %%ix86 --no-sse2 on < f29 only 2018-06-18 12:52:49 -05:00
Rex Dieter 664255d3bd backport CMake-Restore-qt5_use_modules-function.patch 2018-06-18 08:10:29 -05:00
Rex Dieter 356f136cff move libQt5EglFSDeviceIntegration to -gui (#1557223) 2018-05-30 15:50:09 -05:00
Rex Dieter 5e08e4a080 5.11.0
drop support for inject_optflags (not used since f23)
2018-05-26 08:43:30 -05:00
Pete Walter f9210a726e Rebuild for ICU 61.1 2018-04-30 20:38:35 +01:00
Rex Dieter 035db48089 Qt5.pc: fix version, add %%check
more %%make_build too
2018-03-08 11:30:31 -06:00
Rex Dieter cd3afda23c enforce qt5-rpm-macros versioning 2018-03-08 10:24:11 -06:00
Rex Dieter 6c76df9407 BR: gcc-c++ 2018-02-25 16:51:41 -06:00
Rex Dieter bfcd08470b qt5-qtbase: RPM build flags only partially injected (#1543888)
use %%make_build when re-building qmake, and specifically include 'binary' target
2018-02-23 13:06:30 -06:00
Rex Dieter 31fe414dbc QOpenGLShaderProgram: glProgramBinary() resulting in LINK_STATUS=FALSE not handled properly (QTBUG-66420)
pull in opensuse patch for now
2018-02-21 09:16:10 -06:00
Rex Dieter 6468f9c079 use %make_build, %ldconfig
drop %_licensedir hack
2018-02-16 14:44:36 -06:00
Rex Dieter aca5082db0 qt5-qtbase: RPM build flags only partially injected (#1543888) 2018-02-15 12:47:17 -06:00
Jan Grulich 44dd86e85a properly apply patch 2018-02-13 19:18:50 +01:00
Jan Grulich e87d2cacce enable patch to track private api 2018-02-13 18:37:01 +01:00
Jan Grulich 0fa4bb6e6d 5.10.1 2018-02-13 14:52:40 +01:00
Rex Dieter 20a292f534 mark patch8 as unused (for now)
pending futher review and discussion
2018-02-09 09:19:46 -06:00
Rex Dieter a258953f71 track private api use via properly versioned symbols 2018-02-09 09:11:20 -06:00
Igor Gnatenko be940afb36
Escape macros in %changelog
Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-02-09 09:05:52 +01:00
Rex Dieter 5cbfe51f81 QMimeType: remove unwanted *.bin as preferredSuffix for octet-stream (fdo#101667,kde#382437) 2018-01-28 07:24:24 -06:00
Rex Dieter 507fe0eddd re-enable gold linker (#1458003)
drop qt5_null_flag/qt5_deprecated_flag hacks (should be fixed upstream for awhile)
make qt_settings/journald support unconditional
2018-01-26 12:27:57 -06:00
Jan Grulich a2f4fa4db9 5.10.0 2017-12-19 17:48:04 +01:00
Pete Walter 6120e659d6 Rebuild for ICU 60.1 2017-11-30 20:45:03 +00:00
Than Ngo 923ba9b0e0 bz#1518958, backport to fix out of bounds reads in qdnslookup_unix 2017-11-30 09:29:47 +01:00
Jan Grulich 8cedb395cf 5.9.3 2017-11-22 14:12:33 +01:00
Rex Dieter 4c963be10c categoried logging for xcb entries (#1497564, QTBUG-55167) 2017-11-09 08:49:58 -06:00
Rex Dieter ea12f0e1fa QListView upstream regression (#1509649, QTBUG-63846) 2017-11-06 10:09:15 -06:00
Rex Dieter 9c6d6cc34e fix botched merge 2017-11-06 10:08:45 -06:00
Rex Dieter 44ae06a0f8 handle f26/openssl<1.1 case 2017-10-23 14:41:19 -05:00
Rex Dieter de67c0519d Merge branch 'master' into f26 2017-10-23 11:29:34 -05:00
Rex Dieter 02252c5c62 Revert "Enable openssl11 patch on f26 too"
This reverts commit d1a6da43d9.
2017-10-23 11:27:20 -05:00
Rex Dieter 16ef8031d1 pass QMAKE_*_RELEASE to configure to ensure optflags get used (#1505260) 2017-10-23 11:24:16 -05:00
Rex Dieter e724321967 refresh mariadb patch support (upstreamed version apparently incomplete) 2017-10-19 15:32:02 -05:00
Jan Grulich d1a6da43d9 Enable openssl11 patch on f26 too 2017-10-10 07:59:21 +02:00
Jan Grulich 6b4f3818b1 Merge branch 'f27' 2017-10-10 07:44:51 +02:00
Jan Grulich ae07984e4d Properly rebase firebird patch 2017-10-09 10:34:12 +02:00
Jan Grulich bea0c40370 Properly rebase openssl11 patch 2017-10-09 09:24:21 +02:00
Jan Grulich 3a12929e93 Rebase openssl11 patch 2017-10-09 09:05:20 +02:00
Jan Grulich 3b3961f8ca 5.9.2 2017-10-09 08:51:46 +02:00
Rex Dieter 9fc4b6e74c refresh mariadb patch to actually match cr#206850 logic (#1491316) 2017-09-27 10:48:08 -05:00
Rex Dieter 343ee6e998 refresh mariadb patch wrt cr#206850 (#1491316) 2017-09-27 09:43:36 -05:00
Rex Dieter bf5d04680b actually apply mariadb-related patch (#1491316) 2017-09-26 08:09:29 -05:00
Rex Dieter 4f76b8e9ca apply mysql.patch only on f28+ 2017-09-25 10:25:22 -05:00
Rex Dieter 82a0d13a63 enable openssl11 support only for f27+ (for now)
Use mariadb-connector-c-devel, f28+ (#1493909)
Backport upstream mariadb patch
2017-09-25 08:37:10 -05:00
Daniel Vrátil 192033814a Qt 5.9.1 2017-09-07 15:54:01 +02:00
Jan Grulich 6a8a1e7326 Rebase previously used patches so we can use them again 2017-08-18 13:11:49 +02:00
Than Ngo 5811291b71 added privat headers for Qt5 Xcb 2017-08-02 13:49:29 +02:00
Florian Weimer c34c751a6a Rebuild with fixed binutils for ppc64le (#1475636) 2017-07-30 16:11:57 +02:00
Than Ngo e894279872 add BuildRequires: openssl-devel for openssl-1.1 2017-07-27 16:38:47 +02:00
Than Ngo f46a671628 fixed bz#1401459, backport openssl-1.1 support 2017-07-27 15:30:00 +02:00
Fedora Release Engineering 7db91a4ff0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 12:42:52 +00:00
Than Ngo 6c50b4e107 - add missing qinputcontrol_p.h
- fix including header file
2017-07-20 11:22:29 +02:00
Rex Dieter 69c9a202b6 5.9.1 2017-07-19 08:44:21 -05:00
Than Ngo 30a91e380c backported to fix bz#1120451, ZWNJ character on Persian keyboard not working 2017-07-19 15:35:23 +02:00
Than Ngo ab9062576c reverted previous commit, it's only for 5.9.x 2017-07-18 17:14:09 +02:00
Than Ngo 831050302c fixed bz#1442553, multilib issue 2017-07-18 16:57:12 +02:00
Than Ngo 46844ac115 fixed bz#1442553, multilib issue 2017-07-18 12:58:26 +02:00
Than Ngo a97a8f9163 fixed bz#1364717, Segfault in QDBusConnectionPrivate::closeConnection -> QObject::disconnect on exit 2017-07-17 19:47:03 +02:00
Than Ngo 921d3a65ee fixed build issue with new mariad 2017-07-14 13:50:46 +02:00
Than Ngo 4c4bc81e4d fixed bz#1409600, stack overflow in QXmlSimpleReader, CVE-2016-1004 2017-07-07 14:45:55 +02:00
Than Ngo 241e6ae46d fixed bz#1409600, stack overflow in QXmlSimpleReader, CVE-2016-10040 2017-07-06 15:05:37 +02:00
Rex Dieter 6162fbda3f fix previous commit 2017-06-16 10:03:03 -05:00
Rex Dieter b71fc696b2 create_cmake.prf: adjust CMAKE_NO_PRIVATE_INCLUDES (#1456211,QTBUG-37417) 2017-06-16 09:47:32 -05:00
Rex Dieter 8e24008f23 old sources 2017-06-16 09:44:02 -05:00
Rex Dieter 8b64b2c932 workaround gold linker issue with duplicate symbols (f27+, #1458003) 2017-06-01 13:24:12 -05:00
Helio Chissini de Castro b632435fcc - 5.9.0 Final 2017-05-31 13:51:54 +02:00
Helio Chissini de Castro 0fdcd4c059 Fix date 2017-05-31 13:51:07 +02:00
Helio Chissini de Castro a0cfc469aa - 5.9.0 Final 2017-05-31 13:49:20 +02:00
Helio Chissini de Castro 58ddb0cb59 Fix date 2017-05-31 13:48:11 +02:00
Helio Chissini de Castro a74a9fa59b - 5.9.0 Final 2017-05-31 13:46:00 +02:00
Helio Chissini de Castro dfe5703894 - Release candidate 2017-05-26 15:22:58 +02:00
Helio Chissini de Castro a894d2cd44 - Release candidate 2017-05-24 13:47:36 +02:00
Helio Chissini de Castro 7a9bc1bbea - Release candidate 2017-05-24 13:39:24 +02:00
Helio Chissini de Castro 7b9849ffcd - Release candidate 2017-05-24 13:38:44 +02:00
Helio Chissini de Castro 4e688c90a5 - Release candidate 2017-05-24 13:36:40 +02:00
Rex Dieter 22adfb20d7 -common: Obsoletes: qt5-qtquick1(-devel) 2017-05-16 12:18:12 -05:00
Fedora Release Engineering 265a0921d9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild 2017-05-15 20:07:18 +00:00
Fedora Release Engineering f75707f390 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild 2017-05-15 20:07:13 +00:00
Rex Dieter 4b715ffd1c include recommended qtdbus patches, fix Release 2017-05-08 12:14:33 -05:00
Rex Dieter 8ea90037a5 backport recommended qtdbus patches 2017-05-08 12:09:21 -05:00
Helio Chissini de Castro e245437f7e - Upstream 5.9.0 beta 3 2017-05-05 15:50:23 +02:00
Rex Dieter 8090378c80 +Obsoletes
to ease noarch->arch upgrade path
2017-03-30 08:18:18 -05:00
Rex Dieter d95935f332 make -doc arch'd (workaround bug #1437522) 2017-03-30 08:17:29 -05:00
Rex Dieter 6e2865a3af de-bootstrap 2017-03-30 05:38:02 -05:00
Rex Dieter 0844cd226c rebuild 2017-03-29 09:14:36 -05:00
Rex Dieter 32769146b7 pull in big-endian buildfix 2017-03-27 12:33:51 -05:00
Rex Dieter 9ceb7d9081 bootstrap (rawhide)
revert some minor changes introduced since 5.7
move *Plugin.cmake items to runtime (not -devel)
2017-03-27 10:54:44 -05:00
Kevin Kofler efb85b9bff Update to 5.8.0
- Really debootstrap :-P
2017-03-26 18:52:22 +02:00
Rex Dieter eaaaf190ea gcc7 FTBFS fix (#1423090) 2017-02-17 07:59:51 -06:00
Rex Dieter 8c7fe210fe 5.8 backport: Ensure a pixel density of at least 1 for Qt::AA_EnableHighDpiScaling (QTBUG-56140) 2017-02-09 07:50:19 -06:00
Rex Dieter 9e2e7ad9bd Revert "- New upstream 5.8.0 version - initial boostrap"
This reverts commit cc493ddebb.
2017-02-09 07:38:32 -06:00
Rex Dieter 1a5fd22f91 Revert "- Final 5.8 spec. Need be bootstrapped first run, then qttools, then run again with docs."
This reverts commit fafeab55a2.
2017-02-09 07:38:29 -06:00
Helio Chissini de Castro fafeab55a2 - Final 5.8 spec. Need be bootstrapped first run, then qttools, then run again with docs. 2017-01-28 19:52:22 +01:00
Helio Chissini de Castro cc493ddebb - New upstream 5.8.0 version - initial boostrap 2017-01-26 17:05:32 +01:00
Rex Dieter aeca857561 fix so patch actually applies 2017-01-24 10:01:32 -06:00
Rex Dieter a5f6318646 Broken window scaling (#1381828) 2017-01-24 08:45:22 -06:00
Kevin Kofler e948ea4c6c readd plugin __requires_exclude_from filter, it is still needed
* Wed Jan 04 2017 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.7.1-12
- readd plugin __requires_exclude_from filter, it is still needed

(for the reasons explained in the comment that was already there)
2017-01-04 15:35:28 +01:00
Rex Dieter 5b7e8cc795 filter plugin provides, drop filter plugin excludes (no longer needed) 2017-01-02 08:45:38 -06:00
Rex Dieter cf267c4766 backport 5.8 patch for wayland crasher (#1403500,QTBUG-55583) 2016-12-19 11:07:16 -06:00
Rex Dieter bb48598d85 Merge branch 'master' into f25 2016-12-14 07:51:48 -06:00
Rex Dieter a98a18bb3d Revert "restore moc_system_defines.patch lost in 5.7.0 rebase"
This reverts commit 9cda374bc8.
2016-12-14 07:51:44 -06:00
Rex Dieter 196284c991 Revert "typo"
This reverts commit b1ba042d57.
2016-12-14 07:51:43 -06:00
Rex Dieter 18def91a7d Revert "rework patch"
This reverts commit bcf4f2e66c.
2016-12-14 07:51:42 -06:00
Rex Dieter c427cee2d7 Revert "5.7.0-6"
This reverts commit 91176c3fee.
2016-12-14 07:51:42 -06:00
Rex Dieter 7e2153e89a Revert "unwanted cache flush in Freetype engine (#1400417, QTBUG-49452)"
This reverts commit 81d6fcc4ca.
2016-12-14 07:51:39 -06:00
Rex Dieter 81d6fcc4ca unwanted cache flush in Freetype engine (#1400417, QTBUG-49452) 2016-12-13 10:14:01 -06:00
Rex Dieter 91176c3fee 5.7.0-6
- Backported QTBUG-53071 patch to resolve problem with latest tzdata.
- Fixed Source URL.
2016-12-12 06:41:27 -06:00
Rex Dieter bcf4f2e66c rework patch 2016-12-09 22:04:08 +01:00
Rex Dieter b1ba042d57 typo 2016-12-09 22:04:00 +01:00
Rex Dieter 9cda374bc8 restore moc_system_defines.patch lost in 5.7.0 rebase 2016-12-09 22:03:53 +01:00
Rex Dieter bd0ce1f91c rework patch 2016-12-09 10:54:35 -06:00
Rex Dieter 4a3b9c7b60 typo 2016-12-09 09:08:07 -06:00
Rex Dieter f8d05dbeff restore moc_system_defines.patch lost in 5.7.0 rebase 2016-12-09 09:07:08 -06:00
Rex Dieter 28a55141fc update moc patch to define _SYS_SYSMACROS_H_OUTER instead (#1396755) 2016-12-09 05:20:15 -06:00
Rex Dieter a1a082e2ab really apply QT_VERSION_CHECK workaround (#1396755) 2016-12-08 23:05:36 -06:00
Rex Dieter 55cdca6d74 update moc patch to define _SYS_SYSMACROS_H (#1396755) 2016-12-08 12:39:41 -06:00
Rex Dieter 15b5003df8 namespace QT_VERSION_CHECK to workaround major/minor being pre-defined (#1396755) 2016-12-08 12:25:26 -06:00
Rex Dieter 16b653ffe1 5.7.1 dec5 snapshot 2016-12-08 11:01:28 -06:00
Rex Dieter 276e67ad3a disable openssl11 (FTBFS)
and use compat-openssl10 for now
2016-12-07 11:11:58 -06:00
Rex Dieter 0fba51827d BR: perl-generators 2016-12-07 10:14:04 -06:00
Rex Dieter 399cc84ed6 use -openssl-linked (bug #1401459) 2016-12-07 10:05:57 -06:00
Than Ngo 8f0534f5ad more fix for firebird 2016-11-29 14:46:38 +01:00
Than Ngo 06f985eaf7 add support for firebird-3.x 2016-11-29 14:15:27 +01:00
Than Ngo 3c0b29765a add -DOPENSSL_API_COMPAT=0x10100000L 2016-11-28 17:23:05 +01:00
Than Ngo ca7cfd8532 add condition for rhel 2016-11-28 16:38:56 +01:00
Than Ngo e467920f91 - more fixes for openssl-1.1
- rename to qt5-qtbase-5.7.1-openssl11
2016-11-28 16:35:45 +01:00
Than Ngo ca2c23b106 - add support openssl-1.1.x 2016-11-28 13:50:59 +01:00
Than Ngo 0434621809 add missing functions: EVP_PKEY_get0_RS, DSA_bits, EVP_PKEY_get0_RSA, RSA_bits, SSLv2_client_method, SSLv2_server_method 2016-11-25 20:39:36 +01:00
Than Ngo a0fe3d1ded adapted the berolinux's patch for new openssl-1.1.x 2016-11-24 14:06:11 +01:00
Helio Chissini de Castro f9b532b958 - New upstream release 2016-11-23 13:20:00 +01:00
Helio Chissini de Castro cdec2369b2 - New upstream release 2016-11-23 13:16:31 +01:00
Helio Chissini de Castro cf7a4e4e0b - New upstream release 2016-11-23 13:09:19 +01:00
Rex Dieter f8cf489ba4 fix Source0 URL 2016-10-20 06:54:11 -05:00
Rex Dieter 8ddb897df6 Requires: openssl-libs%{?_isa} (#1328659) 2016-09-29 07:21:24 -05:00
Than Ngo 8e2e39d5e1 - bz#1328659, load openssl libs dynamically 2016-09-28 13:25:03 +02:00
Rex Dieter 614302efd8 drop BR: cmake (handled by qt5-rpm-macros now) 2016-09-27 09:08:27 -05:00
Than Ngo abaad189b8 add macros qtwebengine_arches in qt5 2016-09-14 18:18:46 +02:00
Than Ngo 5a70834711 add rpm macros qtwebengine_arches for qtwebengine 2016-09-13 17:40:04 +02:00
Than Ngo 2485bf8e8a add rpm macros qtwebengine_arches for qtwebengine 2016-09-13 17:36:50 +02:00
Rex Dieter faab8215d7 use '#!/usr/bin/perl' instead of '#!/usr/bin/env perl' 2016-09-12 07:55:58 -05:00
Rex Dieter 643cc5becf install macros with proper name 2016-07-19 07:25:11 -05:00
Rex Dieter 1fcfee38a9 introduce macros.qt5-qtbase (for %_qt5, %_qt5_epoch, %_qt5_version, %_qt5_evr) 2016-07-19 06:31:27 -05:00
Helio Chissini de Castro 4d72c83364 - Update to Qt 5.7.0 2016-07-15 16:12:04 +02:00
25 changed files with 1145 additions and 658 deletions

7
.gitignore vendored
View File

@ -1 +1,6 @@
/qtbase-opensource-src-5.6.2.tar.xz
/qtbase-everywhere-src-5.12.1.tar.xz
/qtbase-everywhere-src-5.12.3.tar.xz
/qtbase-everywhere-src-5.12.4.tar.xz
/qtbase-everywhere-src-5.12.5.tar.xz
/qtbase-everywhere-src-5.13.2.tar.xz
/qtbase-everywhere-src-5.14.2.tar.xz

View File

@ -0,0 +1,109 @@
From 276fa8383a7535765be7182883ef4aade17ce013 Mon Sep 17 00:00:00 2001
From: Thiago Macieira <thiago.macieira@intel.com>
Date: Thu, 2 Apr 2020 12:08:41 -0300
Subject: [PATCH 44/49] QLibrary: fix deadlock caused by fix to QTBUG-39642
Commit ae6f73e8566fa76470937aca737141183929a5ec inserted a mutex around
the entire load_sys(). We had reasoed that deadlocks would only occur if
the object creation in instance() recursed into its own instance(),
which was already a bug. But we had forgotten that dlopen()/
LoadLibrary() executes initialization code from the module being loaded,
which could cause a recursion back into the same QPluginLoader or
QLibrary object. This recursion is benign because the module *is* loaded
and dlopen()/LoadLibrary() returns the same handle.
[ChangeLog][QtCore][QLibrary and QPluginLoader] Fixed a deadlock that
would happen if the plugin or library being loaded has load-time
initialization code (C++ global variables) that recursed back into the
same QLibrary or QPluginLoader object.
PS: QLibraryPrivate::loadPlugin() updates pluginState outside a mutex
lock, so pluginState should be made an atomic variable. Once that is
done, we'll only need locking the mutex to update errorString (no
locking before loading).
Fixes: QTBUG-83207
Task-number: QTBUG-39642
Change-Id: Ibdc95e9af7bd456a94ecfffd160209304e5ab2eb
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
---
src/corelib/plugin/qlibrary.cpp | 2 --
src/corelib/plugin/qlibrary_unix.cpp | 4 ++++
src/corelib/plugin/qlibrary_win.cpp | 3 +++
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index ddb053c26f..be9d92b204 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -576,9 +576,7 @@ bool QLibraryPrivate::load()
Q_TRACE(QLibraryPrivate_load_entry, fileName);
- mutex.lock();
bool ret = load_sys();
- mutex.unlock();
if (qt_debug_component()) {
if (ret) {
qDebug() << "loaded library" << fileName;
diff --git a/src/corelib/plugin/qlibrary_unix.cpp b/src/corelib/plugin/qlibrary_unix.cpp
index 017aa97b66..a5c72f81d9 100644
--- a/src/corelib/plugin/qlibrary_unix.cpp
+++ b/src/corelib/plugin/qlibrary_unix.cpp
@@ -123,6 +123,7 @@ QStringList QLibraryPrivate::prefixes_sys()
bool QLibraryPrivate::load_sys()
{
+ QMutexLocker locker(&mutex);
QString attempt;
QFileSystemEntry fsEntry(fileName);
@@ -213,6 +214,7 @@ bool QLibraryPrivate::load_sys()
}
#endif
+ locker.unlock();
bool retry = true;
Handle hnd = nullptr;
for (int prefix = 0; retry && !hnd && prefix < prefixes.size(); prefix++) {
@@ -273,6 +275,8 @@ bool QLibraryPrivate::load_sys()
}
}
#endif
+
+ locker.relock();
if (!hnd) {
errorString = QLibrary::tr("Cannot load library %1: %2").arg(fileName, qdlerror());
}
diff --git a/src/corelib/plugin/qlibrary_win.cpp b/src/corelib/plugin/qlibrary_win.cpp
index 000bf76276..ef58724be8 100644
--- a/src/corelib/plugin/qlibrary_win.cpp
+++ b/src/corelib/plugin/qlibrary_win.cpp
@@ -78,6 +78,7 @@ bool QLibraryPrivate::load_sys()
// fileName
//
// NB If it's a plugin we do not ever try the ".dll" extension
+ QMutexLocker locker(&mutex);
QStringList attempts;
if (pluginState != IsAPlugin)
@@ -95,6 +96,7 @@ bool QLibraryPrivate::load_sys()
attempts.prepend(QDir::rootPath() + fileName);
#endif
+ locker.unlock();
Handle hnd = nullptr;
for (const QString &attempt : qAsConst(attempts)) {
#ifndef Q_OS_WINRT
@@ -115,6 +117,7 @@ bool QLibraryPrivate::load_sys()
#ifndef Q_OS_WINRT
SetErrorMode(oldmode);
#endif
+ locker.relock();
if (!hnd) {
errorString = QLibrary::tr("Cannot load library %1: %2").arg(
QDir::toNativeSeparators(fileName), qt_error_string());
--
2.25.2

View File

@ -1,35 +0,0 @@
%_qt5 @@NAME@@
%_qt5_epoch @@EPOCH@@
%_qt5_version @@VERSION@@
%_qt5_evr @@EVR@@
%_qt5_prefix %{_libdir}/qt5
%_qt5_archdatadir %{_qt5_prefix}
%_qt5_bindir %{_qt5_prefix}/bin
%_qt5_datadir %{_datadir}/qt5
%_qt5_docdir %{_docdir}/qt5
%_qt5_examplesdir %{_qt5_prefix}/examples
%_qt5_headerdir %{_includedir}/qt5
%_qt5_importdir %{_qt5_archdatadir}/imports
%_qt5_libdir %{_libdir}
%_qt5_libexecdir %{_qt5_archdatadir}/libexec
%_qt5_plugindir %{_qt5_archdatadir}/plugins
%_qt5_qmake %{_qt5_bindir}/qmake
%_qt5_settingsdir %{_sysconfdir}/xdg
%_qt5_sysconfdir %{_qt5_settingsdir}
%_qt5_translationdir %{_datadir}/qt5/translations
%_qt5_cflags %{nil}@@QT5_CFLAGS@@
%_qt5_cxxflags %{nil}@@QT5_CXXFLAGS@@
%_qt5_ldflags %{nil}%{?__global_ldflags} @@QT5_RPM_LD_FLAGS@@
%_qt5_optflags %{optflags} @@QT5_RPM_OPT_FLAGS@@
%_qt5_qmake_flags \\\
QMAKE_CFLAGS_DEBUG="${CFLAGS:-%{_qt5_optflags} %{?_qt5_cflags}}" \\\
QMAKE_CFLAGS_RELEASE="${CFLAGS:-%{_qt5_optflags} %{?_qt5_cflags}}" \\\
QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS:-%{_qt5_optflags} %{?_qt5_cxxflags}}" \\\
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS:-%{_qt5_optflags} %{?_qt5_cxxflags}}" \\\
QMAKE_LFLAGS_DEBUG="${LDFLAGS:-%{_qt5_ldflags}}" \\\
QMAKE_LFLAGS_RELEASE="${LDFLAGS:-%{_qt5_ldflags}}" \\\
QMAKE_STRIP=
%qmake_qt5 %{_qt5_qmake} %{?_qt5_qmake_flags}

4
macros.qt5-qtbase Normal file
View File

@ -0,0 +1,4 @@
%_qt5 @@NAME@@
%_qt5_epoch @@EPOCH@@
%_qt5_version @@VERSION@@
%_qt5_evr @@EVR@@

View File

@ -0,0 +1,29 @@
diff -up qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/configure.json.firebird qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/configure.json
--- qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/configure.json.firebird 2019-01-28 11:11:52.000000000 -0600
+++ qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/configure.json 2019-02-03 13:41:27.392305128 -0600
@@ -49,10 +49,11 @@
"ibase": {
"label": "InterBase",
"test": {},
- "headers": "ibase.h",
+ "headers": "firebird/ibase.h",
"sources": [
{ "libs": "-lgds32_ms", "condition": "config.win32" },
- { "libs": "-lgds", "condition": "!config.win32" }
+ { "libs": "-lgds", "condition": "!config.win32" },
+ { "libs": "-lfbclient", "condition": "!config.win32" }
]
},
"mysql": {
diff -up qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/ibase/qsql_ibase_p.h.firebird qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/ibase/qsql_ibase_p.h
--- qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/ibase/qsql_ibase_p.h.firebird 2019-01-28 11:11:52.000000000 -0600
+++ qtbase-everywhere-src-5.12.1/src/plugins/sqldrivers/ibase/qsql_ibase_p.h 2019-02-03 13:27:30.683142996 -0600
@@ -52,7 +52,7 @@
//
#include <QtSql/qsqldriver.h>
-#include <ibase.h>
+#include <firebird/ibase.h>
#ifdef QT_PLUGIN
#define Q_EXPORT_SQLDRIVER_IBASE

View File

@ -0,0 +1,146 @@
From f432c08882ffebe5074ea28de871559a98a4d094 Mon Sep 17 00:00:00 2001
From: Lars Knoll <lars.knoll@qt.io>
Date: Wed, 26 Feb 2020 10:42:10 +0100
Subject: Add an expansion limit for entities
Recursively defined entities can easily exhaust all available
memory. Limit entity expansion to a default of 4096 characters to
avoid DoS attacks when a user loads untrusted content.
[ChangeLog][QtCore][QXmlStream] QXmlStreamReader does now
limit the expansion of entities to 4096 characters. Documents where
a single entity expands to more characters than the limit are not
considered well formed. The limit is there to avoid DoS attacks through
recursively expanding entities when loading untrusted content. Qt 5.15
will add methods that allow changing that limit.
Fixes: QTBUG-47417
Change-Id: I94387815d74fcf34783e136387ee57fac5ded0c9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit fd4be84d23a0db4186cb42e736a9de3af722c7f7)
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
---
src/corelib/serialization/qxmlstream.g | 14 ++++++++++++-
src/corelib/serialization/qxmlstream_p.h | 14 ++++++++++++-
.../serialization/qxmlstream/tst_qxmlstream.cpp | 23 ++++++++++++++++++++--
3 files changed, 47 insertions(+), 4 deletions(-)
diff --git a/src/corelib/serialization/qxmlstream.g b/src/corelib/serialization/qxmlstream.g
index 10bfcd491c..5726bafb26 100644
--- a/src/corelib/serialization/qxmlstream.g
+++ b/src/corelib/serialization/qxmlstream.g
@@ -277,9 +277,19 @@ public:
QHash<QStringView, Entity> entityHash;
QHash<QStringView, Entity> parameterEntityHash;
QXmlStreamSimpleStack<Entity *>entityReferenceStack;
+ int entityExpansionLimit = 4096;
+ int entityLength = 0;
inline bool referenceEntity(Entity &entity) {
if (entity.isCurrentlyReferenced) {
- raiseWellFormedError(QXmlStream::tr("Recursive entity detected."));
+ raiseWellFormedError(QXmlStream::tr("Self-referencing entity detected."));
+ return false;
+ }
+ // entityLength represents the amount of additional characters the
+ // entity expands into (can be negative for e.g. &amp;). It's used to
+ // avoid DoS attacks through recursive entity expansions
+ entityLength += entity.value.size() - entity.name.size() - 2;
+ if (entityLength > entityExpansionLimit) {
+ raiseWellFormedError(QXmlStream::tr("Entity expands to more characters than the entity expansion limit."));
return false;
}
entity.isCurrentlyReferenced = true;
@@ -830,6 +840,8 @@ entity_done ::= ENTITY_DONE;
/.
case $rule_number:
entityReferenceStack.pop()->isCurrentlyReferenced = false;
+ if (entityReferenceStack.isEmpty())
+ entityLength = 0;
clearSym();
break;
./
diff --git a/src/corelib/serialization/qxmlstream_p.h b/src/corelib/serialization/qxmlstream_p.h
index 61f501f81b..31053f8e0b 100644
--- a/src/corelib/serialization/qxmlstream_p.h
+++ b/src/corelib/serialization/qxmlstream_p.h
@@ -774,9 +774,19 @@ public:
QHash<QStringView, Entity> entityHash;
QHash<QStringView, Entity> parameterEntityHash;
QXmlStreamSimpleStack<Entity *>entityReferenceStack;
+ int entityExpansionLimit = 4096;
+ int entityLength = 0;
inline bool referenceEntity(Entity &entity) {
if (entity.isCurrentlyReferenced) {
- raiseWellFormedError(QXmlStream::tr("Recursive entity detected."));
+ raiseWellFormedError(QXmlStream::tr("Self-referencing entity detected."));
+ return false;
+ }
+ // entityLength represents the amount of additional characters the
+ // entity expands into (can be negative for e.g. &amp;). It's used to
+ // avoid DoS attacks through recursive entity expansions
+ entityLength += entity.value.size() - entity.name.size() - 2;
+ if (entityLength > entityExpansionLimit) {
+ raiseWellFormedError(QXmlStream::tr("Entity expands to more characters than the entity expansion limit."));
return false;
}
entity.isCurrentlyReferenced = true;
@@ -1308,6 +1318,8 @@ bool QXmlStreamReaderPrivate::parse()
case 10:
entityReferenceStack.pop()->isCurrentlyReferenced = false;
+ if (entityReferenceStack.isEmpty())
+ entityLength = 0;
clearSym();
break;
diff --git a/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp b/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp
index 8fdf91b090..1f9a0d575d 100644
--- a/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp
+++ b/tests/auto/corelib/serialization/qxmlstream/tst_qxmlstream.cpp
@@ -393,8 +393,6 @@ public:
return true;
}
- QXmlStreamReader reader(&inputFile);
-
/* See testcases.dtd which reads: 'Nonvalidating parsers
* must also accept "invalid" testcases, but validating ones must reject them.' */
if(type == QLatin1String("invalid") || type == QLatin1String("valid"))
@@ -580,6 +578,8 @@ private slots:
void roundTrip() const;
void roundTrip_data() const;
+ void entityExpansionLimit() const;
+
private:
static QByteArray readFile(const QString &filename);
@@ -1756,6 +1756,25 @@ void tst_QXmlStream::roundTrip_data() const
"</root>\n";
}
+void tst_QXmlStream::entityExpansionLimit() const
+{
+ QString xml = QStringLiteral("<?xml version=\"1.0\"?>"
+ "<!DOCTYPE foo ["
+ "<!ENTITY a \"0123456789\" >"
+ "<!ENTITY b \"&a;&a;&a;&a;&a;&a;&a;&a;&a;&a;\" >"
+ "<!ENTITY c \"&b;&b;&b;&b;&b;&b;&b;&b;&b;&b;\" >"
+ "<!ENTITY d \"&c;&c;&c;&c;&c;&c;&c;&c;&c;&c;\" >"
+ "]>"
+ "<foo>&d;&d;&d;</foo>");
+ {
+ QXmlStreamReader reader(xml);
+ do {
+ reader.readNext();
+ } while (!reader.atEnd());
+ QCOMPARE(reader.error(), QXmlStreamReader::NotWellFormedError);
+ }
+}
+
void tst_QXmlStream::roundTrip() const
{
QFETCH(QString, in);
--
cgit v0.2.1

View File

@ -1,12 +1,13 @@
diff -up qtbase-opensource-src-5.6.0/mkspecs/common/gcc-base.conf.than qtbase-opensource-src-5.6.0/mkspecs/common/gcc-base.conf
--- qtbase-opensource-src-5.6.0/mkspecs/common/gcc-base.conf.than 2016-06-02 17:30:07.249027901 +0200
+++ qtbase-opensource-src-5.6.0/mkspecs/common/gcc-base.conf 2016-06-02 17:30:14.681748012 +0200
diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
index e7e6ee1..ff2a939 100644
--- a/mkspecs/common/gcc-base.conf
+++ b/mkspecs/common/gcc-base.conf
@@ -32,7 +32,7 @@
#
QMAKE_CFLAGS_OPTIMIZE = -O2
-QMAKE_CFLAGS_OPTIMIZE_FULL = -O3
+QMAKE_CFLAGS_OPTIMIZE_FULL = -O2
QMAKE_CFLAGS_OPTIMIZE_DEBUG = -Og
QMAKE_CFLAGS_OPTIMIZE_SIZE = -Os
QMAKE_CFLAGS += -pipe
QMAKE_CFLAGS_DEPS += -M

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,9 @@
diff -up qtbase-everywhere-src-5.11.1/mkspecs/features/uikit/devices.py.me qtbase-everywhere-src-5.11.1/mkspecs/features/uikit/devices.py
--- qtbase-everywhere-src-5.11.1/mkspecs/features/uikit/devices.py.me 2018-06-23 11:29:21.750066271 +0200
+++ qtbase-everywhere-src-5.11.1/mkspecs/features/uikit/devices.py 2018-06-23 11:30:07.457292033 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#############################################################################
##

View File

@ -0,0 +1,14 @@
diff -up qtbase-everywhere-src-5.12.1/src/gui/Qt5GuiConfigExtras.cmake.in.foo qtbase-everywhere-src-5.12.1/src/gui/Qt5GuiConfigExtras.cmake.in
--- qtbase-everywhere-src-5.12.1/src/gui/Qt5GuiConfigExtras.cmake.in.foo 2019-04-30 15:18:24.886346423 -0500
+++ qtbase-everywhere-src-5.12.1/src/gui/Qt5GuiConfigExtras.cmake.in 2019-04-30 15:19:48.303873296 -0500
@@ -66,8 +66,10 @@ unset(_GL_INCDIRS)
# Don\'t check for existence of the "_qt5gui_OPENGL_INCLUDE_DIR" because it is
# optional.
+if (NOT ${_qt5gui_OPENGL_INCLUDE_DIR} STREQUAL "/usr/include")
list(APPEND Qt5Gui_INCLUDE_DIRS ${_qt5gui_OPENGL_INCLUDE_DIR})
set_property(TARGET Qt5::Gui APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${_qt5gui_OPENGL_INCLUDE_DIR})
+endif()
unset(_qt5gui_OPENGL_INCLUDE_DIR CACHE)

View File

@ -0,0 +1,16 @@
diff -up qtbase-everywhere-src-5.14.2/src/corelib/global/qlibraryinfo.cpp.no_relocatable qtbase-everywhere-src-5.14.2/src/corelib/global/qlibraryinfo.cpp
--- qtbase-everywhere-src-5.14.2/src/corelib/global/qlibraryinfo.cpp.no_relocatable 2020-03-27 04:49:31.000000000 -0500
+++ qtbase-everywhere-src-5.14.2/src/corelib/global/qlibraryinfo.cpp 2020-04-13 15:13:44.075705226 -0500
@@ -671,8 +671,11 @@ static QString getPrefix(
# if QT_CONFIGURE_CROSSBUILD
if (group == QLibraryInfo::DevicePaths)
return QString::fromLocal8Bit(QT_CONFIGURE_PREFIX_PATH);
-# endif
+# elif 0 //QT_CONFIG(relocatable)
return getExtPrefixFromHostBinDir();
+# else
+ return QString::fromLocal8Bit(QT_CONFIGURE_PREFIX_PATH);
+# endif
#elif QT_CONFIG(relocatable)
return getRelocatablePrefix();
#else

View File

@ -0,0 +1,12 @@
diff -up qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp.hidpi_scale_at_192 qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp
--- qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp.hidpi_scale_at_192 2019-02-03 13:21:27.866906481 -0600
+++ qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp 2019-02-03 13:23:47.554767565 -0600
@@ -744,7 +744,7 @@ void QXcbScreen::updateGeometry(const QR
// Use 128 as a reference DPI on small screens. This favors "small UI" over "large UI".
qreal referenceDpi = physicalSize().width() <= 320 ? 128 : 96;
- m_pixelDensity = qMax(1, qRound(dpi/referenceDpi));
+ m_pixelDensity = qMax(1, (int) (dpi/referenceDpi)); //instead of rounding at 1.5, round at 2.0 (same as GNOME)
m_geometry = geometry;
m_availableGeometry = geometry & m_virtualDesktop->workArea();
QWindowSystemInterface::handleScreenGeometryChange(QPlatformScreen::screen(), m_geometry, m_availableGeometry);

View File

@ -1,14 +0,0 @@
diff -up qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp.moc_WORDSIZE qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp
--- qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp.moc_WORDSIZE 2015-12-04 18:05:24.000000000 -0600
+++ qtbase-opensource-src-5.6.0-beta/src/tools/moc/main.cpp 2015-12-15 20:57:55.554485416 -0600
@@ -184,6 +184,10 @@ int runMoc(int argc, char **argv)
Moc moc;
pp.macros["Q_MOC_RUN"];
pp.macros["__cplusplus"];
+ Macro macro;
+ macro.symbols = Preprocessor::tokenize(QByteArray::number(Q_PROCESSOR_WORDSIZE*8), 1, Preprocessor::TokenizeDefine);
+ macro.symbols.removeLast(); // remove the EOF symbol
+ pp.macros.insert("__WORDSIZE", macro);
// Don't stumble over GCC extensions
Macro dummyVariadicFunctionMacro;

View File

@ -1,12 +0,0 @@
diff -up qtbase-opensource-src-5.6.2/src/xml/sax/qxml_p.h.QTBUG-35459 qtbase-opensource-src-5.6.2/src/xml/sax/qxml_p.h
--- qtbase-opensource-src-5.6.2/src/xml/sax/qxml_p.h.QTBUG-35459 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/src/xml/sax/qxml_p.h 2016-10-16 08:40:04.441725330 -0500
@@ -217,7 +217,7 @@ private:
// for the DTD currently being parsed.
static const int dtdRecursionLimit = 2;
// The maximum amount of characters an entity value may contain, after expansion.
- static const int entityCharacterLimit = 1024;
+ static const int entityCharacterLimit = 65536;
const QString &string();
void stringClear();

View File

@ -1,13 +0,0 @@
diff -up qtbase-opensource-src-5.6.2/configure.arm qtbase-opensource-src-5.6.2/configure
--- qtbase-opensource-src-5.6.2/configure.arm 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/configure 2016-10-16 08:41:20.583267295 -0500
@@ -4373,6 +4373,9 @@ if [ "$QMAKESPEC" != "$XQMAKESPEC" ]; th
else
# not cross compiling, host == target
CFG_HOST_ARCH="$CFG_ARCH"
+ if [ "$CFG_ARCH" = "arm" ] ; then
+ CFG_CPUFEATURES="neon"
+ fi
CFG_HOST_CPUFEATURES="$CFG_CPUFEATURES"
fi
unset OUTFILE

View File

@ -1,325 +0,0 @@
diff -up qtbase-opensource-src-5.6.2/mkspecs/features/moc.prf.moc_system_defines qtbase-opensource-src-5.6.2/mkspecs/features/moc.prf
--- qtbase-opensource-src-5.6.2/mkspecs/features/moc.prf.moc_system_defines 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/mkspecs/features/moc.prf 2016-10-16 08:42:20.561694271 -0500
@@ -24,8 +24,25 @@ win32:count(MOC_INCLUDEPATH, 40, >) {
write_file($$absolute_path($$WIN_INCLUDETEMP, $$OUT_PWD), WIN_INCLUDETEMP_CONT)|error("Aborting.")
}
+# QNX's compiler sets "gcc" config, but does not support the -dM option;
+# iOS builds are multi-arch, so this feature cannot possibly work.
+if(gcc|intel_icl|msvc):!rim_qcc:!ios {
+ moc_predefs.CONFIG = no_link
+ gcc: moc_predefs.commands = $$QMAKE_CXX $$QMAKE_CXXFLAGS -dM -E -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
+ else:intel_icl: moc_predefs.commands = $$QMAKE_CXX $$QMAKE_CXXFLAGS -QdM -P -Fi${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
+ else:msvc {
+ # make sure that our bin dir is first in path, so qmake is found
+ moc_predefs.commands = PATH $$shell_path($$[QT_INSTALL_BINS/src]);%PATH%&
+ moc_predefs.commands += $$QMAKE_CXX -Bxqmake $$QMAKE_CXXFLAGS -E ${QMAKE_FILE_IN} 2>NUL >${QMAKE_FILE_OUT}
+ } else: error("Oops, I messed up")
+ moc_predefs.output = $$MOC_DIR/moc_predefs.h
+ moc_predefs.input = MOC_PREDEF_FILE
+ silent: moc_predefs.commands = @echo generating $$moc_predefs.output$$escape_expand(\n\t)@$$moc_predefs.commands
+ QMAKE_EXTRA_COMPILERS += moc_predefs
+ MOC_PREDEF_FILE = $$[QT_HOST_DATA/src]/mkspecs/features/data/dummy.cpp
+}
+
defineReplace(mocCmdBase) {
- RET =
!isEmpty(WIN_INCLUDETEMP) {
incvar = @$$WIN_INCLUDETEMP
} else {
@@ -34,7 +51,13 @@ defineReplace(mocCmdBase) {
incvar += -I$$shell_quote($$inc)
incvar += $$QMAKE_FRAMEWORKPATH_FLAGS
}
- RET += $$QMAKE_MOC $(DEFINES) $$join(QMAKE_COMPILER_DEFINES, " -D", -D) $$incvar $$QMAKE_MOC_OPTIONS
+
+ RET = $$QMAKE_MOC $(DEFINES)
+
+ isEmpty(MOC_PREDEF_FILE): RET += $$join(QMAKE_COMPILER_DEFINES, " -D", -D)
+ else: RET += --include $$moc_predefs.output
+
+ RET += $$incvar $$QMAKE_MOC_OPTIONS
return($$RET)
}
@@ -46,7 +69,7 @@ moc_header.output = $$MOC_DIR/$${QMAKE_H
moc_header.input = HEADERS
moc_header.variable_out = SOURCES
moc_header.name = MOC ${QMAKE_FILE_IN}
-moc_header.depends += $$WIN_INCLUDETEMP
+moc_header.depends += $$WIN_INCLUDETEMP $$moc_predefs.output
silent:moc_header.commands = @echo moc ${QMAKE_FILE_IN} && $$moc_header.commands
QMAKE_EXTRA_COMPILERS += moc_header
INCREDIBUILD_XGE += moc_header
@@ -58,7 +81,7 @@ moc_source.commands = ${QMAKE_FUNC_mocCm
moc_source.output = $$MOC_DIR/$${QMAKE_CPP_MOD_MOC}${QMAKE_FILE_BASE}$${QMAKE_EXT_CPP_MOC}
moc_source.input = SOURCES OBJECTIVE_SOURCES
moc_source.name = MOC ${QMAKE_FILE_IN}
-moc_source.depends += $$WIN_INCLUDETEMP
+moc_source.depends += $$WIN_INCLUDETEMP $$moc_predefs.output
silent:moc_source.commands = @echo moc ${QMAKE_FILE_IN} && $$moc_source.commands
QMAKE_EXTRA_COMPILERS += moc_source
INCREDIBUILD_XGE += moc_source
diff -up qtbase-opensource-src-5.6.2/qmake/main.cpp.moc_system_defines qtbase-opensource-src-5.6.2/qmake/main.cpp
--- qtbase-opensource-src-5.6.2/qmake/main.cpp.moc_system_defines 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/qmake/main.cpp 2016-10-16 08:42:20.561694271 -0500
@@ -1,6 +1,7 @@
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
+** Copyright (C) 2015 Intel Corporation.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the qmake application of the Qt Toolkit.
@@ -47,6 +48,10 @@
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef Q_OS_WIN
+# include <qt_windows.h>
+#endif
+
QT_BEGIN_NAMESPACE
#ifdef Q_OS_WIN
@@ -246,6 +251,30 @@ static int doInstall(int argc, char **ar
return 3;
}
+static int dumpMacros(const wchar_t *cmdline)
+{
+ // from http://stackoverflow.com/questions/3665537/how-to-find-out-cl-exes-built-in-macros
+ int argc;
+ wchar_t **argv = CommandLineToArgvW(cmdline, &argc);
+ if (!argv)
+ return 2;
+ for (int i = 0; i < argc; ++i) {
+ if (argv[i][0] != L'-' || argv[i][1] != 'D')
+ continue;
+
+ wchar_t *value = wcschr(argv[i], L'=');
+ if (value) {
+ *value = 0;
+ ++value;
+ } else {
+ // point to the NUL at the end, so we don't print anything
+ value = argv[i] + wcslen(argv[i]);
+ }
+ wprintf(L"#define %Ls %Ls\n", argv[i] + 2, value);
+ }
+ return 0;
+}
+
#endif // Q_OS_WIN
/* This is to work around lame implementation on Darwin. It has been noted that the getpwd(3) function
@@ -280,6 +309,15 @@ int runQMake(int argc, char **argv)
// Workaround for inferior/missing command line tools on Windows: make our own!
if (argc >= 2 && !strcmp(argv[1], "-install"))
return doInstall(argc - 2, argv + 2);
+
+ {
+ // Support running as Visual C++'s compiler
+ const wchar_t *cmdline = _wgetenv(L"MSC_CMD_FLAGS");
+ if (!cmdline || !*cmdline)
+ cmdline = _wgetenv(L"MSC_IDE_FLAGS");
+ if (cmdline && *cmdline)
+ return dumpMacros(cmdline);
+ }
#endif
QMakeVfs vfs;
diff -up qtbase-opensource-src-5.6.2/src/tools/moc/main.cpp.moc_system_defines qtbase-opensource-src-5.6.2/src/tools/moc/main.cpp
--- qtbase-opensource-src-5.6.2/src/tools/moc/main.cpp.moc_system_defines 2016-10-16 08:42:20.558694249 -0500
+++ qtbase-opensource-src-5.6.2/src/tools/moc/main.cpp 2016-10-16 08:42:20.562694278 -0500
@@ -263,6 +263,11 @@ int runMoc(int argc, char **argv)
prependIncludeOption.setValueName(QStringLiteral("file"));
parser.addOption(prependIncludeOption);
+ QCommandLineOption includeOption(QStringLiteral("include"));
+ includeOption.setDescription(QStringLiteral("Parse <file> as an #include before the main source(s)."));
+ includeOption.setValueName(QStringLiteral("file"));
+ parser.addOption(includeOption);
+
QCommandLineOption noNotesWarningsCompatOption(QStringLiteral("n"));
noNotesWarningsCompatOption.setDescription(QStringLiteral("Do not display notes (-nn) or warnings (-nw). Compatibility option."));
noNotesWarningsCompatOption.setValueName(QStringLiteral("which"));
@@ -412,7 +417,16 @@ int runMoc(int argc, char **argv)
moc.includes = pp.includes;
// 1. preprocess
- moc.symbols = pp.preprocessed(moc.filename, &in);
+ foreach (const QString &includeName, parser.values(includeOption)) {
+ QByteArray rawName = pp.resolveInclude(QFile::encodeName(includeName), moc.filename);
+ QFile f(QFile::decodeName(rawName));
+ if (f.open(QIODevice::ReadOnly)) {
+ moc.symbols += Symbol(0, MOC_INCLUDE_BEGIN, rawName);
+ moc.symbols += pp.preprocessed(rawName, &f);
+ moc.symbols += Symbol(0, MOC_INCLUDE_END, rawName);
+ }
+ }
+ moc.symbols += pp.preprocessed(moc.filename, &in);
if (!pp.preprocessOnly) {
// 2. parse
diff -up qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.cpp.moc_system_defines qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.cpp
--- qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.cpp.moc_system_defines 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.cpp 2016-10-16 08:42:20.562694278 -0500
@@ -1007,6 +1007,37 @@ static void mergeStringLiterals(Symbols
}
}
+QByteArray Preprocessor::resolveInclude(const QByteArray &include, const QByteArray &relativeTo)
+{
+ // #### stringery
+ QFileInfo fi;
+ if (!relativeTo.isEmpty())
+ fi.setFile(QFileInfo(QString::fromLocal8Bit(relativeTo.constData())).dir(), QString::fromLocal8Bit(include.constData()));
+ for (int j = 0; j < Preprocessor::includes.size() && !fi.exists(); ++j) {
+ const IncludePath &p = Preprocessor::includes.at(j);
+ if (p.isFrameworkPath) {
+ const int slashPos = include.indexOf('/');
+ if (slashPos == -1)
+ continue;
+ QByteArray frameworkCandidate = include.left(slashPos);
+ frameworkCandidate.append(".framework/Headers/");
+ fi.setFile(QString::fromLocal8Bit(QByteArray(p.path + '/' + frameworkCandidate).constData()), QString::fromLocal8Bit(include.mid(slashPos + 1).constData()));
+ } else {
+ fi.setFile(QString::fromLocal8Bit(p.path.constData()), QString::fromLocal8Bit(include.constData()));
+ }
+ // try again, maybe there's a file later in the include paths with the same name
+ // (186067)
+ if (fi.isDir()) {
+ fi = QFileInfo();
+ continue;
+ }
+ }
+
+ if (!fi.exists() || fi.isDir())
+ return QByteArray();
+ return fi.canonicalFilePath().toLocal8Bit();
+}
+
void Preprocessor::preprocess(const QByteArray &filename, Symbols &preprocessed)
{
currentFilenames.push(filename);
@@ -1027,33 +1058,9 @@ void Preprocessor::preprocess(const QByt
continue;
until(PP_NEWLINE);
- // #### stringery
- QFileInfo fi;
- if (local)
- fi.setFile(QFileInfo(QString::fromLocal8Bit(filename.constData())).dir(), QString::fromLocal8Bit(include.constData()));
- for (int j = 0; j < Preprocessor::includes.size() && !fi.exists(); ++j) {
- const IncludePath &p = Preprocessor::includes.at(j);
- if (p.isFrameworkPath) {
- const int slashPos = include.indexOf('/');
- if (slashPos == -1)
- continue;
- QByteArray frameworkCandidate = include.left(slashPos);
- frameworkCandidate.append(".framework/Headers/");
- fi.setFile(QString::fromLocal8Bit(QByteArray(p.path + '/' + frameworkCandidate).constData()), QString::fromLocal8Bit(include.mid(slashPos + 1).constData()));
- } else {
- fi.setFile(QString::fromLocal8Bit(p.path.constData()), QString::fromLocal8Bit(include.constData()));
- }
- // try again, maybe there's a file later in the include paths with the same name
- // (186067)
- if (fi.isDir()) {
- fi = QFileInfo();
- continue;
- }
- }
-
- if (!fi.exists() || fi.isDir())
+ include = resolveInclude(include, local ? filename : QByteArray());
+ if (include.isNull())
continue;
- include = fi.canonicalFilePath().toLocal8Bit();
if (Preprocessor::preprocessedIncludes.contains(include))
continue;
@@ -1208,6 +1215,7 @@ Symbols Preprocessor::preprocessed(const
input = cleaned(input);
// phase 2: tokenize for the preprocessor
+ index = 0;
symbols = tokenize(input);
#if 0
diff -up qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.h.moc_system_defines qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.h
--- qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.h.moc_system_defines 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/src/tools/moc/preprocessor.h 2016-10-16 08:42:20.562694278 -0500
@@ -67,6 +67,7 @@ public:
QList<QByteArray> frameworks;
QSet<QByteArray> preprocessedIncludes;
Macros macros;
+ QByteArray resolveInclude(const QByteArray &filename, const QByteArray &relativeTo);
Symbols preprocessed(const QByteArray &filename, QFile *device);
void parseDefineArguments(Macro *m);
diff -up qtbase-opensource-src-5.6.2/tests/auto/tools/moc/subdir/extradefines.h.moc_system_defines qtbase-opensource-src-5.6.2/tests/auto/tools/moc/subdir/extradefines.h
--- qtbase-opensource-src-5.6.2/tests/auto/tools/moc/subdir/extradefines.h.moc_system_defines 2016-10-16 08:42:20.562694278 -0500
+++ qtbase-opensource-src-5.6.2/tests/auto/tools/moc/subdir/extradefines.h 2016-10-16 08:42:20.562694278 -0500
@@ -0,0 +1 @@
+#define FOO 1
diff -up qtbase-opensource-src-5.6.2/tests/auto/tools/moc/tst_moc.cpp.moc_system_defines qtbase-opensource-src-5.6.2/tests/auto/tools/moc/tst_moc.cpp
--- qtbase-opensource-src-5.6.2/tests/auto/tools/moc/tst_moc.cpp.moc_system_defines 2016-09-16 00:49:42.000000000 -0500
+++ qtbase-opensource-src-5.6.2/tests/auto/tools/moc/tst_moc.cpp 2016-10-16 08:42:20.562694278 -0500
@@ -581,6 +581,8 @@ private slots:
void frameworkSearchPath();
void cstyleEnums();
void defineMacroViaCmdline();
+ void defineMacroViaForcedInclude();
+ void defineMacroViaForcedIncludeRelative();
void specifyMetaTagsFromCmdline();
void invokable();
void singleFunctionKeywordSignalAndSlot();
@@ -1248,6 +1250,46 @@ void tst_Moc::defineMacroViaCmdline()
args << m_sourceDirectory + QStringLiteral("/macro-on-cmdline.h");
proc.start(m_moc, args);
+ QVERIFY(proc.waitForFinished());
+ QCOMPARE(proc.exitCode(), 0);
+ QCOMPARE(proc.readAllStandardError(), QByteArray());
+ QByteArray mocOut = proc.readAllStandardOutput();
+ QVERIFY(!mocOut.isEmpty());
+#else
+ QSKIP("Only tested on linux/gcc");
+#endif
+}
+
+void tst_Moc::defineMacroViaForcedInclude()
+{
+#if defined(Q_OS_LINUX) && defined(Q_CC_GNU) && !defined(QT_NO_PROCESS)
+ QProcess proc;
+
+ QStringList args;
+ args << "--include" << m_sourceDirectory + QLatin1String("/subdir/extradefines.h");
+ args << m_sourceDirectory + QStringLiteral("/macro-on-cmdline.h");
+
+ proc.start(m_moc, args);
+ QVERIFY(proc.waitForFinished());
+ QCOMPARE(proc.exitCode(), 0);
+ QCOMPARE(proc.readAllStandardError(), QByteArray());
+ QByteArray mocOut = proc.readAllStandardOutput();
+ QVERIFY(!mocOut.isEmpty());
+#else
+ QSKIP("Only tested on linux/gcc");
+#endif
+}
+
+void tst_Moc::defineMacroViaForcedIncludeRelative()
+{
+#if defined(Q_OS_LINUX) && defined(Q_CC_GNU) && !defined(QT_NO_PROCESS)
+ QProcess proc;
+
+ QStringList args;
+ args << "--include" << QStringLiteral("extradefines.h") << "-I" + m_sourceDirectory + "/subdir";
+ args << m_sourceDirectory + QStringLiteral("/macro-on-cmdline.h");
+
+ proc.start(m_moc, args);
QVERIFY(proc.waitForFinished());
QCOMPARE(proc.exitCode(), 0);
QCOMPARE(proc.readAllStandardError(), QByteArray());

View File

@ -0,0 +1,15 @@
diff -up qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp.moc_WORDSIZE qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp
--- qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp.moc_WORDSIZE 2016-12-01 02:17:04.000000000 -0600
+++ qtbase-opensource-src-5.7.1/src/tools/moc/main.cpp 2016-12-08 12:37:28.931589338 -0600
@@ -179,6 +179,11 @@ int runMoc(int argc, char **argv)
Moc moc;
pp.macros["Q_MOC_RUN"];
pp.macros["__cplusplus"];
+ pp.macros["_SYS_SYSMACROS_H_OUTER"];
+ Macro macro;
+ macro.symbols = Preprocessor::tokenize(QByteArray::number(Q_PROCESSOR_WORDSIZE*8), 1, Preprocessor::TokenizeDefine);
+ macro.symbols.removeLast(); // remove the EOF symbol
+ pp.macros.insert("__WORDSIZE", macro);
// Don't stumble over GCC extensions
Macro dummyVariadicFunctionMacro;

View File

@ -0,0 +1,11 @@
--- qtbase-opensource-src-5.8.0/src/corelib/global/qglobal.h.orig 2017-01-26 10:45:40.905010896 +0100
+++ qtbase-opensource-src-5.8.0/src/corelib/global/qglobal.h 2017-01-26 10:46:50.299858887 +0100
@@ -55,7 +55,7 @@
/*
can be used like #if (QT_VERSION >= QT_VERSION_CHECK(4, 4, 0))
*/
-#define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
+#define QT_VERSION_CHECK(qt_version_check_major, qt_version_check_minor, qt_version_check_patch) ((qt_version_check_major<<16)|(qt_version_check_minor<<8)|(qt_version_check_patch))
#ifdef QT_BOOTSTRAPPED
#include <QtCore/qconfig-bootstrapped.h>

View File

@ -0,0 +1,12 @@
diff -up qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql.cpp.than qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql.cpp
diff -up qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h.than qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h
--- qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h.than 2017-07-14 13:43:50.831203768 +0200
+++ qtbase-opensource-src-5.9.0/src/plugins/sqldrivers/mysql/qsql_mysql_p.h 2017-07-14 13:44:24.364948006 +0200
@@ -58,6 +58,7 @@
#endif
#include <mysql.h>
+#include <mysql_version.h>
#ifdef QT_PLUGIN
#define Q_EXPORT_SQLDRIVER_MYSQL

12
qtbase-qmake_LFLAGS.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up qtbase-everywhere-src-5.10.1/qmake/Makefile.unix.qmake_LFLAGS qtbase-everywhere-src-5.10.1/qmake/Makefile.unix
--- qtbase-everywhere-src-5.10.1/qmake/Makefile.unix.qmake_LFLAGS 2018-02-08 12:24:48.000000000 -0600
+++ qtbase-everywhere-src-5.10.1/qmake/Makefile.unix 2018-02-15 10:25:07.077763061 -0600
@@ -142,7 +142,7 @@ CPPFLAGS = -g $(EXTRA_CPPFLAGS) \
-DQT_NO_FOREACH
CXXFLAGS = $(EXTRA_CXXFLAGS) $(CONFIG_CXXFLAGS) $(CPPFLAGS)
-LFLAGS = $(EXTRA_LFLAGS) $(CONFIG_LFLAGS)
+LFLAGS = $(EXTRA_LFLAGS) $(CONFIG_LFLAGS) $(QMAKE_LFLAGS_RELEASE)
first all: $(BUILD_PATH)/bin/qmake$(EXEEXT)
qmake: $(BUILD_PATH)/bin/qmake$(EXEEXT)

View File

@ -0,0 +1,20 @@
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index b8bfad4f16..676fdfad5e 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -1376,14 +1376,7 @@ void QGuiApplicationPrivate::createPlatformIntegration()
if (sessionType == QByteArrayLiteral("x11") && !platformName.contains(QByteArrayLiteral("xcb"))) {
platformName = QByteArrayLiteral("xcb");
} else if (sessionType == QByteArrayLiteral("wayland") && !platformName.contains(QByteArrayLiteral("wayland"))) {
- QByteArray currentDesktop = qgetenv("XDG_CURRENT_DESKTOP").toLower();
- QByteArray sessionDesktop = qgetenv("XDG_SESSION_DESKTOP").toLower();
- if (currentDesktop.contains("gnome") || sessionDesktop.contains("gnome")) {
- qInfo() << "Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome."
- << "Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.";
- } else {
- platformName = QByteArrayLiteral("wayland");
- }
+ platformName = QByteArrayLiteral("wayland");
}
}
#ifdef QT_QPA_DEFAULT_PLATFORM_NAME

View File

@ -1,2 +1,3 @@
[Rules]
*.debug=false
qt.qpa.xcb.xcberror.warning=false

View File

@ -1 +1 @@
5672bf62a89061a6edb425b7796e4eca qtbase-opensource-src-5.6.2.tar.xz
SHA512 (qtbase-everywhere-src-5.14.2.tar.xz) = 8c83e06d58b56e9f288e83d6c3dd4ad6cc9f1eb1a32c7b44fb912fda34ed7255766fd9fa60cd740ee001df7d6172f25df05f1f95e986c3e793fbcd9bf4f18de9

1
sources.basename Normal file
View File

@ -0,0 +1 @@
qtbase-everywhere-src

View File

@ -0,0 +1,16 @@
diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
index e6a0d97..cf93041 100644
--- a/mkspecs/features/qt_module.prf
+++ b/mkspecs/features/qt_module.prf
@@ -216,9 +216,9 @@ android: CONFIG += qt_android_deps no_linker_version_script
QMAKE_LFLAGS += $${QMAKE_LFLAGS_VERSION_SCRIPT}$$verscript
internal_module {
- verscript_content = "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API { *; };"
+ verscript_content = "Qt_$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}_PRIVATE_API { *; };"
} else {
- verscript_content = "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API {" \
+ verscript_content = "Qt_$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}_PRIVATE_API {" \
" qt_private_api_tag*;"
private_api_headers = $$SYNCQT.PRIVATE_HEADER_FILES $$SYNCQT.QPA_HEADER_FILES