1 |
dev-zero 08/05/07 08:29:31 |
2 |
|
3 |
Added: 1.0-gcc43.patch |
4 |
Log: |
5 |
Fix gcc-4.3 build issues (bug #217755, thanks to Peter Alfredsen and Debian) |
6 |
(Portage version: 2.1.5_rc6) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-libs/log4cpp/files/1.0-gcc43.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/log4cpp/files/1.0-gcc43.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/log4cpp/files/1.0-gcc43.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: 1.0-gcc43.patch |
15 |
=================================================================== |
16 |
Index: log4cpp-1.0/src/BasicLayout.cpp |
17 |
=================================================================== |
18 |
--- log4cpp-1.0.orig/src/BasicLayout.cpp 2008-03-14 16:06:57.000000000 -0400 |
19 |
+++ log4cpp-1.0/src/BasicLayout.cpp 2008-03-14 16:07:11.000000000 -0400 |
20 |
@@ -15,6 +15,8 @@ |
21 |
#include <sstream> |
22 |
#endif |
23 |
|
24 |
+#include <memory> |
25 |
+ |
26 |
namespace log4cpp { |
27 |
|
28 |
BasicLayout::BasicLayout() { |
29 |
Index: log4cpp-1.0/src/PatternLayout.cpp |
30 |
=================================================================== |
31 |
--- log4cpp-1.0.orig/src/PatternLayout.cpp 2008-03-14 16:07:33.000000000 -0400 |
32 |
+++ log4cpp-1.0/src/PatternLayout.cpp 2008-03-14 16:07:49.000000000 -0400 |
33 |
@@ -370,7 +370,7 @@ |
34 |
literal = ""; |
35 |
} |
36 |
if ((minWidth != 0) || (maxWidth != 0)) { |
37 |
- component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0); |
38 |
+ component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0); |
39 |
minWidth = maxWidth = 0; |
40 |
} |
41 |
_components.push_back(component); |
42 |
|
43 |
|
44 |
|
45 |
-- |
46 |
gentoo-commits@l.g.o mailing list |