diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-03 16:06:58 +0000 |
commit | bd4aeefe33e63f613512604e47bfca7b2187697d (patch) | |
tree | adb35b5a9a00ee7ea591ab0c987f70167c23b597 /dev-util/kdevelop-pg-qt | |
parent | 48ece6662cbd443015f5a57ae6d8cbdbd69ef37c (diff) |
gentoo resync : 03.11.2019
Diffstat (limited to 'dev-util/kdevelop-pg-qt')
-rw-r--r-- | dev-util/kdevelop-pg-qt/Manifest | 3 | ||||
-rw-r--r-- | dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.0-qt-5.14.patch | 60 | ||||
-rw-r--r-- | dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.0.ebuild | 2 |
3 files changed, 64 insertions, 1 deletions
diff --git a/dev-util/kdevelop-pg-qt/Manifest b/dev-util/kdevelop-pg-qt/Manifest index 767def69dcb7..1c59250cc703 100644 --- a/dev-util/kdevelop-pg-qt/Manifest +++ b/dev-util/kdevelop-pg-qt/Manifest @@ -1,3 +1,4 @@ +AUX kdevelop-pg-qt-2.2.0-qt-5.14.patch 1988 BLAKE2B cffef4d7f61981b3f8e236e225e54b9ccb1964b1648c78b506678a76c0082f4e9ad8b6f1b68ff5d7e7a6f2413c7589513bf0db288d57cbc176d37a3b5959d7c9 SHA512 6b4429de2c8770c869e821a1a196cafdb52c6aa350c8d0dffd9d232fb1cb1ca3ef1da01fee70195b7344685ee82b735f9baea6e1365e58a98b52dbb4d29fdf2d DIST kdevelop-pg-qt-2.2.0.tar.xz 660284 BLAKE2B 103572038bc3c3c43eecd3ff9411e2d28aeabf60bfc0bb91c6056d05901711f2dfe03ba098c658000b1a68998644efe34cede2857b3131e2a59f4accf8cecbf2 SHA512 a34bbdbf6e99d3b004c8a1d925fa5d45d9084b1542551f71de6a79c7ef851ca7057593f09c8824ae7961072c9f5e16199d7c4d7a037174f81163f669c96970f4 -EBUILD kdevelop-pg-qt-2.2.0.ebuild 468 BLAKE2B d2056997ba2031f120abda1331d467e6f5832a02b844b5f7679c2ae4501af4f1ca6c8e32b088fb1b2d053bfbf65e827906eb8dd68cb5281a43c69de997f2c9a3 SHA512 658346b75ccf7ab3321ef752ec7343235124cf0894b9a5c7c4b456aa8d8ecad22b18daec1902b35c8f83a31bccdfadd2ba019e0f7b49a6fedbd26188d80afd61 +EBUILD kdevelop-pg-qt-2.2.0.ebuild 514 BLAKE2B d0b103446fe315ec4fcc07a0883a8fd565a03b8c9f0947b686682a0598dc6eca1791844094b77fd6a71ef8cdaf9cfc32ea9a95b2848a21b724543a5da9142470 SHA512 f519e5a1f26592d5a64a240b4d520498773cefeb8c48324f01ae9dba28a1984587696ddb5d2861e1190c753e30521e15172d435997858bc2cfed721e177a06d8 MISC metadata.xml 249 BLAKE2B ad415db89e5dee1627aa77f44ded9d4e1e5b8217d06c7ca25bbaa3fe92ce67c2b1090957c45a821b407d7927e5af798498aa6a5b903895ee1af8ee20a446c7f7 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 diff --git a/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.0-qt-5.14.patch b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.0-qt-5.14.patch new file mode 100644 index 000000000000..5a4dec36d887 --- /dev/null +++ b/dev-util/kdevelop-pg-qt/files/kdevelop-pg-qt-2.2.0-qt-5.14.patch @@ -0,0 +1,60 @@ +From d05d0b19e9d6f47fee3e11d837c2c21125589763 Mon Sep 17 00:00:00 2001 +From: Alexey Min <alexey.min@gmail.com> +Date: Thu, 24 Oct 2019 14:34:45 +0300 +Subject: Fix build with Qt 5.14 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Summary: +Trying to build kdevelop-pg-qt with Qt 5.14 results in an error: +``` +.../kdev-pg/kdev-pg-regexp.cpp:44:23: error: redefinition of ‘struct std::hash<QBitArray>’ + template<> struct hash< type > \ + ^~~~~~~~~~~~ +.../kdev-pg/kdev-pg-regexp.cpp:53:1: note: in expansion of macro ‘q_Hash_to_tr1_hash’ + q_Hash_to_tr1_hash(QBitArray) + ^~~~~~~~~~~~~~~~~~ +In file included from .../prefix514/include/QtCore/qvector.h:47:0, + from .../prefix514/include/QtCore/QVector:1, + from .../kdevelop-pg-qt/include/kdev-pg-char-sets.h:36, + from .../kdevelop-pg-qt/kdev-pg/kdev-pg-regexp.cpp:20: +.../prefix514/include/QtCore/qhashfunctions.h:209:1: note: previous definition of ‘struct std::hash<QBitArray>’ + QT_SPECIALIZE_STD_HASH_TO_CALL_QHASH_BY_CREF(QBitArray) + ^ +``` + +std::hash<QBitArray> is already specialized in Qt 5.14, so avoid redefinition with conditional compilation + +Test Plan: try to build with Qt 5.14 + +Reviewers: apol + +Reviewed By: apol + +Subscribers: kdevelop-devel + +Tags: #kdevelop + +Differential Revision: https://phabricator.kde.org/D24914 +--- + kdev-pg/kdev-pg-regexp.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/kdev-pg/kdev-pg-regexp.cpp b/kdev-pg/kdev-pg-regexp.cpp +index 8cc0b95..9fee81c 100644 +--- a/kdev-pg/kdev-pg-regexp.cpp ++++ b/kdev-pg/kdev-pg-regexp.cpp +@@ -50,7 +50,10 @@ namespace std \ + }; \ + } + ++#if (QT_VERSION < QT_VERSION_CHECK(5, 14, 0)) ++// Qt >= 5.14 already has std::hash for QBitArray + q_Hash_to_tr1_hash(QBitArray) ++#endif + + namespace KDevPG + { +-- +cgit v1.1 diff --git a/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.0.ebuild b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.0.ebuild index 05aa96fc8afd..4fac1ce848d0 100644 --- a/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.0.ebuild +++ b/dev-util/kdevelop-pg-qt/kdevelop-pg-qt-2.2.0.ebuild @@ -16,6 +16,8 @@ HOMEPAGE="https://www.kdevelop.org/" LICENSE="LGPL-2+ LGPL-2.1+" IUSE="" +PATCHES=( "${FILESDIR}/${P}-qt-5.14.patch" ) + BDEPEND=" sys-devel/bison sys-devel/flex |