-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update grantlee5 to version 5.3.1 / rev 9 via SR 1035528
https://build.opensuse.org/request/show/1035528 by user cgiboudeaux + dimstar_suse - Update to 5.3.1 * Use C++11 nullptr where appropriate * Use QRandomGenerator instead of deprecated qRand * Increase compatibility with Qt 6 APIs * Add CMake option to build with Qt 6 - GRANTLEE_BUILD_WITH_QT6 * Support enum introspection on Q_GADGET * filesizeformat implementation as well as localized filesize * Make enums comparable with more operations * Add "truncatechars" filter * Fix concatenation of string lists - Refreshed patches: * includes.diff * grantlee-5.2.0-fix-ctest-ld-library-path.patch - Add patch to fix tests on i586 (gh#steveire/grantlee#85): * fix-i586-precision.patch - Add keyring for GPG source verification - Require cmake(Qt5LinguistTools) for building to enable testing of - update to version 0.1.3
- Loading branch information
1 parent
9145cf8
commit 6d0eedc
Showing
10 changed files
with
150 additions
and
24 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
From 13094b78a790786030a468453c2b3ead4c7fd9cf Mon Sep 17 00:00:00 2001 | ||
From: Fabian Vogt <fabian@ritter-vogt.de> | ||
Date: Sun, 13 Nov 2022 14:01:21 +0100 | ||
Subject: [PATCH] Fix formatting of some larger file sizes on 32bit x86 | ||
|
||
With the x87 FPU available, GCC uses long double precision for some variables. | ||
Due to the function call passing a double, some comparisons break down. | ||
That resulted in "1.00 YB" being printed as "1000.00 ZB" instead. | ||
|
||
Fixes #85 | ||
--- | ||
templates/lib/util.cpp | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
diff --git a/templates/lib/util.cpp b/templates/lib/util.cpp | ||
index 504674a7..a0381c59 100644 | ||
--- a/templates/lib/util.cpp | ||
+++ b/templates/lib/util.cpp | ||
@@ -23,6 +23,7 @@ | ||
#include "metaenumvariable_p.h" | ||
#include "metatype.h" | ||
|
||
+#include <cfloat> | ||
#include <QtCore/QStringList> | ||
|
||
QString Grantlee::unescapeStringLiteral(const QString &input) | ||
@@ -212,7 +213,13 @@ std::pair<qreal, QString> Grantlee::calcFileSize(qreal size, int unitSystem, | ||
bool found = false; | ||
int count = 0; | ||
const qreal baseVal = (_unitSystem == 10) ? 1000.0F : 1024.0F; | ||
+#if FLT_EVAL_METHOD == 2 | ||
+ // Avoid that this is treated as long double, as the increased | ||
+ // precision breaks the comparison below. | ||
+ volatile qreal current = 1.0F; | ||
+#else | ||
qreal current = 1.0F; | ||
+#endif | ||
int units = decimalUnits.size(); | ||
while (!found && (count < units)) { | ||
current *= baseVal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/ipfs/bafybeiay5vthqc46lu7yrl7de2pjbg2xy45pkh2ygkms7efuwegtbgyyhu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-----BEGIN PGP PUBLIC KEY BLOCK----- | ||
|
||
mQGiBEu+MA8RBADp2YIeQhF69CtoPRA2SR71vDnmEtp7AkLWi4h6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vczl+wPcId+wZIOk/qu | ||
rZxlZvNkgASKUzFJvB24qV8AAwUH/AlQ9HCa3vJX3TNFDCf5MX0ON6aeq7hUX5KW | ||
M/2cbOGUMyriIIiWhaxjDIT/bpXIJE3bkL7/hnixKag8/iStTMRk8s6KAR9Hr2Gu | ||
93WGvalc0xVUzWk9w72yg7Sh3oXIPSGDqb2veGFL9gdbSbooO8cewkmTPPOTDYMP | ||
7dNua/BPFsoPqepgylMc2yQD048l4NEhtvx3KFQGuMAm8skTsvmi9BUM0dkDCkTK | ||
lVRlkv5I2y8qiaSUb2+fvCeFhtyTghW+74Eq3qKVB5sK9CNVgX6uwDz+oeDsgiDo | ||
Nq9/y4YhuDOI4yUTB0wSQvAAJnczFvmxH1HGsJU72JOxEbYfHRiISQQYEQIACQUC | ||
S74wDwIbDAAKCRDSZMex0C1lCZs2AKCJ0LsYeEggPtTB2NGT4cm6VpixxQCfSxLA | ||
qBE1xByW/GR3eyZxbppDxno= | ||
=X2xR | ||
-----END PGP PUBLIC KEY BLOCK----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters