1 |
commit: dfe1eb2f6b02d2c665ef564dbfab9b4757b70ace |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Feb 24 19:13:27 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 24 19:13:27 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=dfe1eb2f |
7 |
|
8 |
app-office/skrooge: Fix build with glibc-2.23 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
.../skrooge/files/skrooge-2.3.0-glibc-2.23.patch | 74 ++++++++++++++++++++++ |
13 |
app-office/skrooge/skrooge-2.3.0.ebuild | 2 + |
14 |
2 files changed, 76 insertions(+) |
15 |
|
16 |
diff --git a/app-office/skrooge/files/skrooge-2.3.0-glibc-2.23.patch b/app-office/skrooge/files/skrooge-2.3.0-glibc-2.23.patch |
17 |
new file mode 100644 |
18 |
index 0000000..3df4428 |
19 |
--- /dev/null |
20 |
+++ b/app-office/skrooge/files/skrooge-2.3.0-glibc-2.23.patch |
21 |
@@ -0,0 +1,74 @@ |
22 |
+From: Stephane Mankowski <stephane@×××××××××.fr> |
23 |
+Date: Wed, 24 Feb 2016 14:07:00 +0000 |
24 |
+Subject: Building the v2.3.0 package on Arch Linux dies with an error 'isnan' was not declared in this scope |
25 |
+X-Git-Url: http://quickgit.kde.org/?p=skrooge.git&a=commitdiff&h=dacb104d4c803679be744c198c70a871c2078dd0 |
26 |
+--- |
27 |
+Building the v2.3.0 package on Arch Linux dies with an error 'isnan' was not declared in this scope |
28 |
+BUG:359679 |
29 |
+--- |
30 |
+ |
31 |
+ |
32 |
+--- a/plugins/import/skrooge_import_gnc/skgimportplugingnc.cpp |
33 |
++++ b/plugins/import/skrooge_import_gnc/skgimportplugingnc.cpp |
34 |
+@@ -27,7 +27,6 @@ |
35 |
+ |
36 |
+ #include <qdom.h> |
37 |
+ #include <qfileinfo.h> |
38 |
+-#include <math.h> |
39 |
+ #include <cmath> |
40 |
+ |
41 |
+ #include "skgtraces.h" |
42 |
+@@ -36,11 +35,6 @@ |
43 |
+ #include "skgobjectbase.h" |
44 |
+ #include "skgpayeeobject.h" |
45 |
+ #include "skgimportexportmanager.h" |
46 |
+- |
47 |
+-#ifdef Q_OS_WIN |
48 |
+-#define isnan(a) _isnan(a) |
49 |
+-#define isinf(a) !_finite(a) |
50 |
+-#endif |
51 |
+ |
52 |
+ /** |
53 |
+ * This plugin factory. |
54 |
+@@ -386,7 +380,7 @@ |
55 |
+ } |
56 |
+ } |
57 |
+ |
58 |
+- if (!isnan(info.value)) { |
59 |
++ if (!std::isnan(info.value)) { |
60 |
+ QChar accountType = mapIdType[info.account.text()]; |
61 |
+ if (accountType == 'C') { |
62 |
+ suboperationsList.push_front(info); |
63 |
+ |
64 |
+--- a/skgbasemodeler/skgdocument.cpp |
65 |
++++ b/skgbasemodeler/skgdocument.cpp |
66 |
+@@ -42,7 +42,6 @@ |
67 |
+ #include <qurl.h> |
68 |
+ |
69 |
+ #include <sqlite3.h> |
70 |
+-#include <math.h> |
71 |
+ #include <cmath> |
72 |
+ |
73 |
+ #include "skgtraces.h" |
74 |
+@@ -51,11 +50,6 @@ |
75 |
+ #include "skgpropertyobject.h" |
76 |
+ #include "skgtransactionmng.h" |
77 |
+ #include "skgreport.h" |
78 |
+- |
79 |
+-#ifdef Q_OS_WIN |
80 |
+-#define isnan(a) _isnan(a) |
81 |
+-#define isinf(a) !_finite(a) |
82 |
+-#endif |
83 |
+ |
84 |
+ #ifdef SKGCIPHER |
85 |
+ #define SQLDRIVERNAME QStringLiteral("SKGSQLCIPHER") |
86 |
+@@ -2693,7 +2687,7 @@ |
87 |
+ if (iValue > 0) { |
88 |
+ p = '+' % p; |
89 |
+ } |
90 |
+- if (p.count() > 10 || isnan(iValue) || isinf(iValue)) { |
91 |
++ if (p.count() > 10 || std::isnan(iValue) || std::isinf(iValue)) { |
92 |
+ p = QChar(8734); |
93 |
+ } |
94 |
+ return "<font color=\"" % |
95 |
+ |
96 |
|
97 |
diff --git a/app-office/skrooge/skrooge-2.3.0.ebuild b/app-office/skrooge/skrooge-2.3.0.ebuild |
98 |
index c623b30..a8f6c71 100644 |
99 |
--- a/app-office/skrooge/skrooge-2.3.0.ebuild |
100 |
+++ b/app-office/skrooge/skrooge-2.3.0.ebuild |
101 |
@@ -77,6 +77,8 @@ RESTRICT="test" |
102 |
|
103 |
DOCS=( AUTHORS CHANGELOG README TODO ) |
104 |
|
105 |
+PATCHES=( "${FILESDIR}/${P}-glibc-2.23.patch" ) |
106 |
+ |
107 |
src_configure() { |
108 |
local mycmakeargs=( |
109 |
-DSKG_BUILD_TEST=$(usex test) |