1 |
ssuominen 09/07/30 16:49:34 |
2 |
|
3 |
Added: amos-2.0.8-gcc44.patch |
4 |
Log: |
5 |
Fix building with GCC 4.4 and GLIBC 2.10+ wrt #279572. |
6 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sci-biology/amos/files/amos-2.0.8-gcc44.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/amos/files/amos-2.0.8-gcc44.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/amos/files/amos-2.0.8-gcc44.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: amos-2.0.8-gcc44.patch |
15 |
=================================================================== |
16 |
diff -ur amos-2.0.8.orig/src/Align/align.cc amos-2.0.8/src/Align/align.cc |
17 |
--- amos-2.0.8.orig/src/Align/align.cc 2008-03-19 16:07:24.000000000 +0200 |
18 |
+++ amos-2.0.8/src/Align/align.cc 2009-07-30 19:40:51.000000000 +0300 |
19 |
@@ -247,7 +247,7 @@ |
20 |
// Add incr_val to the after count in this Vote_t for ch . |
21 |
|
22 |
{ |
23 |
- char * p; |
24 |
+ const char * p; |
25 |
|
26 |
p = strchr (ALPHABET, tolower (ch)); |
27 |
if (p == NULL) |
28 |
@@ -285,7 +285,7 @@ |
29 |
// count for a blank. |
30 |
|
31 |
{ |
32 |
- char * p; |
33 |
+ const char * p; |
34 |
|
35 |
p = strchr (ALPHABET, tolower (ch)); |
36 |
if (p == NULL) |
37 |
@@ -357,7 +357,7 @@ |
38 |
|
39 |
{ |
40 |
int i; |
41 |
- char * p; |
42 |
+ const char * p; |
43 |
|
44 |
for (i = 0; i <= ALPHABET_SIZE; i ++) |
45 |
here [i] = after [i] = 0; |
46 |
diff -ur amos-2.0.8.orig/src/Align/align_poly.cc amos-2.0.8/src/Align/align_poly.cc |
47 |
--- amos-2.0.8.orig/src/Align/align_poly.cc 2006-03-30 05:03:12.000000000 +0300 |
48 |
+++ amos-2.0.8/src/Align/align_poly.cc 2009-07-30 19:43:44.000000000 +0300 |
49 |
@@ -247,7 +247,7 @@ |
50 |
// Add 1 to the after count in this Vote_t for ch . |
51 |
|
52 |
{ |
53 |
- char * p; |
54 |
+ const char * p; |
55 |
|
56 |
p = strchr (ALPHABET, tolower (ch)); |
57 |
if (p == NULL) |
58 |
@@ -285,7 +285,7 @@ |
59 |
// count for a blank. |
60 |
|
61 |
{ |
62 |
- char * p; |
63 |
+ const char * p; |
64 |
|
65 |
p = strchr (ALPHABET, tolower (ch)); |
66 |
if (p == NULL) |
67 |
@@ -357,7 +357,7 @@ |
68 |
|
69 |
{ |
70 |
int i; |
71 |
- char * p; |
72 |
+ const char * p; |
73 |
|
74 |
for (i = 0; i <= ALPHABET_SIZE; i ++) |
75 |
here [i] = after [i] = 0; |
76 |
diff -ur amos-2.0.8.orig/src/AMOS/IDMap_AMOS.cc amos-2.0.8/src/AMOS/IDMap_AMOS.cc |
77 |
--- amos-2.0.8.orig/src/AMOS/IDMap_AMOS.cc 2006-11-21 17:45:46.000000000 +0200 |
78 |
+++ amos-2.0.8/src/AMOS/IDMap_AMOS.cc 2009-07-30 19:30:03.000000000 +0300 |
79 |
@@ -10,6 +10,7 @@ |
80 |
#include "IDMap_AMOS.hh" |
81 |
#include <string> |
82 |
#include <sstream> |
83 |
+#include <cstdio> |
84 |
#include <cstring> |
85 |
using namespace AMOS; |
86 |
using namespace std; |
87 |
diff -ur amos-2.0.8.orig/src/AMOS/Message_AMOS.cc amos-2.0.8/src/AMOS/Message_AMOS.cc |
88 |
--- amos-2.0.8.orig/src/AMOS/Message_AMOS.cc 2005-01-07 23:53:05.000000000 +0200 |
89 |
+++ amos-2.0.8/src/AMOS/Message_AMOS.cc 2009-07-30 19:32:21.000000000 +0300 |
90 |
@@ -7,6 +7,8 @@ |
91 |
//! |
92 |
//////////////////////////////////////////////////////////////////////////////// |
93 |
|
94 |
+#include <cstdio> |
95 |
+ |
96 |
#include "Message_AMOS.hh" |
97 |
using namespace AMOS; |
98 |
using namespace std; |
99 |
diff -ur amos-2.0.8.orig/src/Common/amp.cc amos-2.0.8/src/Common/amp.cc |
100 |
--- amos-2.0.8.orig/src/Common/amp.cc 2006-10-25 16:56:41.000000000 +0300 |
101 |
+++ amos-2.0.8/src/Common/amp.cc 2009-07-30 19:33:59.000000000 +0300 |
102 |
@@ -1,6 +1,7 @@ |
103 |
#include "amp.hh" |
104 |
#include <new> |
105 |
#include <iostream> |
106 |
+#include <cstdio> |
107 |
#include <cstring> |
108 |
#include <ctime> |
109 |
using namespace std; |
110 |
diff -ur amos-2.0.8.orig/src/Foundation/FileSystem.cc amos-2.0.8/src/Foundation/FileSystem.cc |
111 |
--- amos-2.0.8.orig/src/Foundation/FileSystem.cc 2005-07-09 00:52:03.000000000 +0300 |
112 |
+++ amos-2.0.8/src/Foundation/FileSystem.cc 2009-07-30 19:35:48.000000000 +0300 |
113 |
@@ -55,7 +55,7 @@ |
114 |
{ |
115 |
// Check to see if path was given |
116 |
|
117 |
- char * end_of_path = strrchr(filename, PATH_DELIMINATOR); |
118 |
+ const char * end_of_path = strrchr(filename, PATH_DELIMINATOR); |
119 |
|
120 |
if (end_of_path) |
121 |
{ |
122 |
diff -ur amos-2.0.8.orig/src/Foundation/Options.cc amos-2.0.8/src/Foundation/Options.cc |
123 |
--- amos-2.0.8.orig/src/Foundation/Options.cc 2008-06-22 18:19:07.000000000 +0300 |
124 |
+++ amos-2.0.8/src/Foundation/Options.cc 2009-07-30 19:37:40.000000000 +0300 |
125 |
@@ -26,6 +26,7 @@ |
126 |
*/ |
127 |
|
128 |
#include "Options.hh" |
129 |
+#include <cstdio> |
130 |
#include <cstring> |
131 |
|
132 |
//! Constructor takes command line options in standard argc, argv format |