From 1cacd5501e19fcb3b64d96465e77d350afccc961 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 10 Aug 2021 14:12:23 +0200 Subject: [PATCH] kdb: rebuild for icu-69.1 --- srcpkgs/kdb/patches/kdb-fix-build.patch | 67 ++++++++++++++++++++++ srcpkgs/kdb/patches/kdb-mkspecs-path.patch | 33 +++++++++++ srcpkgs/kdb/template | 2 +- 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/kdb/patches/kdb-fix-build.patch create mode 100644 srcpkgs/kdb/patches/kdb-mkspecs-path.patch diff --git a/srcpkgs/kdb/patches/kdb-fix-build.patch b/srcpkgs/kdb/patches/kdb-fix-build.patch new file mode 100644 index 00000000000..a9a04ad493d --- /dev/null +++ b/srcpkgs/kdb/patches/kdb-fix-build.patch @@ -0,0 +1,67 @@ +From b36d74f13a1421437a725fb74502c993c359392a Mon Sep 17 00:00:00 2001 +From: Nicolas Fella +Date: Mon, 16 Nov 2020 16:41:27 +0100 +Subject: [PATCH] Fix build with newer Qt + +--- + src/KDb.cpp | 34 +++++++++++++++++----------------- + 1 file changed, 17 insertions(+), 17 deletions(-) + +diff --git a/src/KDb.cpp b/src/KDb.cpp +index 5c3b601f..ee92c2ee 100644 +--- a/src/KDb.cpp ++++ b/src/KDb.cpp +@@ -1635,33 +1635,33 @@ QString KDb::escapeBLOB(const QByteArray& array, BLOBEscapingType type) + for (int i = 0; i < size; i++) { + const unsigned char val = array[i]; + if (val < 32 || val >= 127 || val == 39 || val == 92) { +- str[new_length++] = '\\'; +- str[new_length++] = '\\'; +- str[new_length++] = '0' + val / 64; +- str[new_length++] = '0' + (val % 64) / 8; +- str[new_length++] = '0' + val % 8; ++ str[new_length++] = QLatin1Char('\\'); ++ str[new_length++] = QLatin1Char('\\'); ++ str[new_length++] = QChar::fromLatin1('0' + val / 64); ++ str[new_length++] = QChar::fromLatin1('0' + (val % 64) / 8); ++ str[new_length++] = QChar::fromLatin1('0' + val % 8); + } else { +- str[new_length++] = val; ++ str[new_length++] = QChar::fromLatin1(val); + } + } + } else { + for (int i = 0; i < size; i++) { + const unsigned char val = array[i]; +- str[new_length++] = intToHexDigit(val / 16); +- str[new_length++] = intToHexDigit(val % 16); ++ str[new_length++] = QChar::fromLatin1(intToHexDigit(val / 16)); ++ str[new_length++] = QChar::fromLatin1(intToHexDigit(val % 16)); + } + } + if (type == BLOBEscapingType::XHex || type == BLOBEscapingType::Octal) { +- str[new_length++] = '\''; ++ str[new_length++] = QLatin1Char('\''); + } else if (type == BLOBEscapingType::ByteaHex) { +- str[new_length++] = '\''; +- str[new_length++] = ':'; +- str[new_length++] = ':'; +- str[new_length++] = 'b'; +- str[new_length++] = 'y'; +- str[new_length++] = 't'; +- str[new_length++] = 'e'; +- str[new_length++] = 'a'; ++ str[new_length++] = QLatin1Char('\''); ++ str[new_length++] = QLatin1Char(':'); ++ str[new_length++] = QLatin1Char(':'); ++ str[new_length++] = QLatin1Char('b'); ++ str[new_length++] = QLatin1Char('y'); ++ str[new_length++] = QLatin1Char('t'); ++ str[new_length++] = QLatin1Char('e'); ++ str[new_length++] = QLatin1Char('a'); + } + return str; + } +-- +GitLab + diff --git a/srcpkgs/kdb/patches/kdb-mkspecs-path.patch b/srcpkgs/kdb/patches/kdb-mkspecs-path.patch new file mode 100644 index 00000000000..0de68b1e5de --- /dev/null +++ b/srcpkgs/kdb/patches/kdb-mkspecs-path.patch @@ -0,0 +1,33 @@ +From 4fc65f4fea459f8ab1f99c5ceb575fc8f4ea651a Mon Sep 17 00:00:00 2001 +From: Bhushan Shah +Date: Sun, 13 Dec 2020 19:16:30 +0530 +Subject: [PATCH] include KDEInstallDirs as first thing + +Otherwise ECMGeneratePriFile won't get correct paths and will install +pri file in wrong place and things wanting to use kdb with qmake won't +work. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3219e967..e3f98b43 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -13,12 +13,12 @@ kdb_add_tests(OFF) + kdb_add_examples(OFF) + + # ECM ++include(KDEInstallDirs) + include(ECMGeneratePriFile) + include(ECMInstallIcons) + include(ECMOptionalAddSubdirectory) + include(ECMPoQmTools) + include(ECMSetupVersion) +-include(KDEInstallDirs) + include(KDECMakeSettings NO_POLICY_SCOPE) + include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) + include(ECMSetupQtPluginMacroNames) +-- +GitLab + diff --git a/srcpkgs/kdb/template b/srcpkgs/kdb/template index 0bc353bd708..509915e3e6f 100644 --- a/srcpkgs/kdb/template +++ b/srcpkgs/kdb/template @@ -1,7 +1,7 @@ # Template file for 'kdb' pkgname=kdb version=3.2.0 -revision=5 +revision=6 build_style=cmake hostmakedepends="extra-cmake-modules doxygen pkg-config kcoreaddons" makedepends="kcoreaddons-devel postgresql-libs-devel libmariadbclient-devel