Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/STLport/files: STLport-5.1.5-hppa.patch STLport-5.1.5-cxx_use_c99.patch STLport-5.1.5-gcc-4.3.patch STLport-5.1.5-fix-warnings.patch STLport-5.1.5-portability-hack.patch STLport-5.1.5-bashism.patch STLport-5.1.5-alpha.patch
Date: Wed, 30 Apr 2008 18:54:31
Message-Id: E1JrHRk-0004eW-Ho@stork.gentoo.org
1 dev-zero 08/04/30 18:54:28
2
3 Added: STLport-5.1.5-hppa.patch
4 STLport-5.1.5-cxx_use_c99.patch
5 STLport-5.1.5-gcc-4.3.patch
6 STLport-5.1.5-fix-warnings.patch
7 STLport-5.1.5-portability-hack.patch
8 STLport-5.1.5-bashism.patch
9 STLport-5.1.5-alpha.patch
10 Log:
11 Version bump (including a lot fixes, thanks to Peter Alfredsen and Debian, bug #219457).
12 (Portage version: 2.1.5_rc6)
13
14 Revision Changes Path
15 1.1 dev-libs/STLport/files/STLport-5.1.5-hppa.patch
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-hppa.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-hppa.patch?rev=1.1&content-type=text/plain
19
20 Index: STLport-5.1.5-hppa.patch
21 ===================================================================
22 --- STLport-5.1.5.orig/build/Makefiles/gmake/lib/gcc.mak
23 +++ STLport-5.1.5/build/Makefiles/gmake/lib/gcc.mak
24 @@ -93,6 +93,9 @@
25 #START_A_OBJ := $(shell for o in crt{i,beginT}.o; do ${CXX} -print-file-name=$$o; done)
26 END_OBJ := $(shell for o in crtendS.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
27 STDLIBS := -Wl,--whole-archive -lsupc++ ${_LGCC_EH} -Wl,--no-whole-archive ${_LGCC_S} -lpthread -lc -lm
28 +ifneq (,$(findstring $(M_ARCH),hppa parisc64 parisc))
29 +STDLIBS += -lgcc
30 +endif
31 endif
32 ifeq ($(OSNAME),openbsd)
33 START_OBJ := $(shell for o in crtbeginS.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
34 --- STLport-5.1.5.orig/build/Makefiles/gmake/app/gcc.mak
35 +++ STLport-5.1.5/build/Makefiles/gmake/app/gcc.mak
36 @@ -107,6 +107,9 @@
37 START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
38 END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
39 STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
40 +ifneq (,$(findstring $(M_ARCH),hppa parisc64 parisc))
41 +STDLIBS += -lgcc
42 +endif
43 endif
44 ifeq ($(OSNAME),openbsd)
45 START_OBJ := $(shell for o in crt{0,begin}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
46
47
48
49 1.1 dev-libs/STLport/files/STLport-5.1.5-cxx_use_c99.patch
50
51 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-cxx_use_c99.patch?rev=1.1&view=markup
52 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-cxx_use_c99.patch?rev=1.1&content-type=text/plain
53
54 Index: STLport-5.1.5-cxx_use_c99.patch
55 ===================================================================
56 --- STLport-5.1.5.orig/stlport/stl/_cstdlib.h
57 +++ STLport-5.1.5/stlport/stl/_cstdlib.h
58 @@ -16,12 +16,27 @@
59 #ifndef _STLP_INTERNAL_CSTDLIB
60 #define _STLP_INTERNAL_CSTDLIB
61
62 +/* Work around inconsistent definition of _GLIBCXX_USE_C99 across arches; on
63 + * these arches std::llabs is therefore not available.
64 + *
65 + * See http://bugs.debian.org/443234
66 + */
67 +#ifndef _GLIBCXX_USE_C99
68 +#define _GLIBCXX_USE_C99 1
69 +#define _HACK_CXX_USE_C99 1
70 +#endif
71 +
72 #if defined (_STLP_USE_NEW_C_HEADERS)
73 # include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
74 #else
75 # include <stdlib.h>
76 #endif
77
78 +#ifdef _HACK_CXX_USE_C99
79 +#undef _GLIBCXX_USE_C99
80 +#undef _HACK_CXX_USE_C99
81 +#endif
82 +
83 #if defined (__BORLANDC__)
84 /* Borland process.h header do not bring anything here and is just included
85 * in order to avoid inclusion later. This header cannot be included later
86 --- STLport-5.1.5.orig/stlport/stl/_cmath.h
87 +++ STLport-5.1.5/stlport/stl/_cmath.h
88 @@ -21,7 +21,16 @@
89 * so cstdlib has to be included first.
90 */
91 #if defined (__GNUC__) && defined (_STLP_USE_NEW_C_HEADERS)
92 +/* See http://bugs.debian.org/443234 */
93 +# ifndef _GLIBCXX_USE_C99
94 +# define _GLIBCXX_USE_C99 1
95 +# define _HACK_CXX_USE_C99 1
96 +# endif
97 # include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
98 +# ifdef _HACK_CXX_USE_C99
99 +# undef _GLIBCXX_USE_C99
100 +# undef _HACK_CXX_USE_C99
101 +# endif
102 #endif
103
104 #if defined (_STLP_USE_NEW_C_HEADERS)
105
106
107
108 1.1 dev-libs/STLport/files/STLport-5.1.5-gcc-4.3.patch
109
110 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-gcc-4.3.patch?rev=1.1&view=markup
111 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-gcc-4.3.patch?rev=1.1&content-type=text/plain
112
113 Index: STLport-5.1.5-gcc-4.3.patch
114 ===================================================================
115 --- STLport-5.1.5.orig/build/Makefiles/gmake/gcc.mak
116 +++ STLport-5.1.5/build/Makefiles/gmake/gcc.mak
117 @@ -29,6 +29,11 @@
118 CXX_VERSION := $(shell ${CXX} --version | grep GCC | awk '{ print $$3; }')
119
120 ifeq ($(CXX_VERSION),)
121 +# Current g++-4.3
122 +CXX_VERSION := $(shell ${CXX} --version | grep '^g++' | awk '{ print $$4; }')
123 +endif
124 +
125 +ifeq ($(CXX_VERSION),)
126 # 2.95 report only version
127 CXX_VERSION := $(shell ${CXX} --version)
128 endif
129 --- STLport-5.1.5.orig/stlport/limits.h
130 +++ STLport-5.1.5/stlport/limits.h
131 @@ -24,7 +24,11 @@
132 struct _exception;
133 #endif
134
135 -#include _STLP_NATIVE_C_HEADER(limits.h)
136 +#if defined (_STLP_HAS_INCLUDE_NEXT)
137 +# include_next <limits.h>
138 +#else
139 +# include _STLP_NATIVE_C_HEADER(limits.h)
140 +#endif
141
142 #if (_STLP_OUTERMOST_HEADER_ID == 0x201)
143 # if ! defined (_STLP_DONT_POP_HEADER_ID)
144 --- STLport-5.1.5.orig/stlport/stl/config/_gcc.h
145 +++ STLport-5.1.5/stlport/stl/config/_gcc.h
146 @@ -4,6 +4,8 @@
147
148 #define _STLP_COMPILER "gcc"
149
150 +#define _STLP_HAS_INCLUDE_NEXT 1
151 +
152 /* Systems having GLIBC installed have different traits */
153 #if defined (__linux__)
154 # ifndef _STLP_USE_GLIBC
155
156
157
158 1.1 dev-libs/STLport/files/STLport-5.1.5-fix-warnings.patch
159
160 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-fix-warnings.patch?rev=1.1&view=markup
161 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-fix-warnings.patch?rev=1.1&content-type=text/plain
162
163 Index: STLport-5.1.5-fix-warnings.patch
164 ===================================================================
165 --- STLport-5.1.5.orig/stlport/stl/_num_put.c
166 +++ STLport-5.1.5/stlport/stl/_num_put.c
167 @@ -158,7 +158,7 @@
168 //casting numeric_limits<ptrdiff_t>::max to streamsize only works is ptrdiff_t is signed or streamsize representation
169 //is larger than ptrdiff_t one.
170 _STLP_STATIC_ASSERT((sizeof(streamsize) > sizeof(ptrdiff_t)) ||
171 - (sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed)
172 + ((sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed))
173 ptrdiff_t __pad = __STATIC_CAST(ptrdiff_t, (min) (__STATIC_CAST(streamsize, (numeric_limits<ptrdiff_t>::max)()),
174 __STATIC_CAST(streamsize, __wid - __len)));
175 ios_base::fmtflags __dir = __flg & ios_base::adjustfield;
176 --- STLport-5.1.5.orig/stlport/stl/_istream.c
177 +++ STLport-5.1.5/stlport/stl/_istream.c
178 @@ -647,7 +647,7 @@
179 //casting numeric_limits<ptrdiff_t>::max to streamsize only works is ptrdiff_t is signed or streamsize representation
180 //is larger than ptrdiff_t one.
181 _STLP_STATIC_ASSERT((sizeof(streamsize) > sizeof(ptrdiff_t)) ||
182 - (sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed)
183 + ((sizeof(streamsize) == sizeof(ptrdiff_t)) && numeric_limits<ptrdiff_t>::is_signed))
184 ptrdiff_t __request = __STATIC_CAST(ptrdiff_t, (min) (__STATIC_CAST(streamsize, (numeric_limits<ptrdiff_t>::max)()), _Num - __n));
185
186 const _CharT* __p = __scan_delim(__first, __last);
187 --- STLport-5.1.5.orig/stlport/stl/_locale.h
188 +++ STLport-5.1.5/stlport/stl/_locale.h
189 @@ -308,11 +308,11 @@
190 #endif
191
192 template <class _Facet>
193 -bool _HasFacet(const locale& __loc, const _Facet* __facet) _STLP_NOTHROW
194 +bool _HasFacet(const locale& __loc, const _Facet*) _STLP_NOTHROW
195 { return (__loc._M_get_facet(_Facet::id) != 0); }
196
197 template <class _Facet>
198 -_Facet* _UseFacet(const locale& __loc, const _Facet* __facet)
199 +_Facet* _UseFacet(const locale& __loc, const _Facet*)
200 { return __STATIC_CAST(_Facet*, __loc._M_use_facet(_Facet::id)); }
201
202 _STLP_END_NAMESPACE
203 --- STLport-5.1.5.orig/stlport/stl/_algo.c
204 +++ STLport-5.1.5/stlport/stl/_algo.c
205 @@ -1342,7 +1342,7 @@
206 template <class _ForwardIter, class _Tp,
207 class _Compare1, class _Compare2, class _Distance>
208 _ForwardIter __upper_bound(_ForwardIter __first, _ForwardIter __last, const _Tp& __val,
209 - _Compare1 __comp1, _Compare2 __comp2, _Distance*) {
210 + _Compare1 _STLP_VERBOSE_PARAM(__comp1), _Compare2 __comp2, _Distance*) {
211 _Distance __len = distance(__first, __last);
212 _Distance __half;
213
214 --- STLport-5.1.5.orig/stlport/stl/_algobase.c
215 +++ STLport-5.1.5/stlport/stl/_algobase.c
216 @@ -371,7 +371,7 @@
217
218 template <class _ForwardIter, class _Tp, class _Compare1, class _Compare2, class _Distance>
219 _ForwardIter __lower_bound(_ForwardIter __first, _ForwardIter __last, const _Tp& __val,
220 - _Compare1 __comp1, _Compare2 __comp2, _Distance*) {
221 + _Compare1 __comp1, _Compare2 _STLP_VERBOSE_PARAM(__comp2), _Distance*) {
222 _Distance __len = distance(__first, __last);
223 _Distance __half;
224 _ForwardIter __middle;
225 --- STLport-5.1.5.orig/stlport/stl/config/features.h
226 +++ STLport-5.1.5/stlport/stl/config/features.h
227 @@ -415,6 +415,7 @@
228
229 #if !defined (_STLP_DEBUG)
230 # define _STLP_VERBOSE_ASSERT(expr,diagnostic)
231 +# define _STLP_VERBOSE_PARAM(param)
232 # define _STLP_DEBUG_CHECK(expr)
233 # define _STLP_DEBUG_DO(expr)
234 #endif
235 --- STLport-5.1.5.orig/stlport/stl/debug/_debug.h
236 +++ STLport-5.1.5/stlport/stl/debug/_debug.h
237 @@ -184,6 +184,7 @@
238 }
239 # endif
240
241 +# define _STLP_VERBOSE_PARAM(param) param
242 # define _STLP_DEBUG_CHECK(expr) _STLP_ASSERT(expr)
243 # define _STLP_DEBUG_DO(expr) expr;
244
245 --- STLport-5.1.5.orig/src/strstream.cpp
246 +++ STLport-5.1.5/src/strstream.cpp
247 @@ -266,11 +266,12 @@
248 }
249
250 void strstreambuf::_M_free(char* p) {
251 - if (p)
252 + if (p) {
253 if (_M_free_fun)
254 _M_free_fun(p);
255 else
256 delete[] p;
257 + }
258 }
259
260 void strstreambuf::_M_setup(char* get, char* put, streamsize n) {
261
262
263
264 1.1 dev-libs/STLport/files/STLport-5.1.5-portability-hack.patch
265
266 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-portability-hack.patch?rev=1.1&view=markup
267 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-portability-hack.patch?rev=1.1&content-type=text/plain
268
269 Index: STLport-5.1.5-portability-hack.patch
270 ===================================================================
271 --- STLport-5.1.5.orig/stlport/stl/config/_gcc.h
272 +++ STLport-5.1.5/stlport/stl/config/_gcc.h
273 @@ -459,3 +459,23 @@
274 # define _STLP_STATIC_TEMPLATE_DATA 1
275 #endif
276
277 +/* Ugly hack here ; we pull in GNU libc <bits/mathdef.h> to find out whether
278 + * this platform has `long double' type. It solves #356570.
279 + *
280 + * THIS IS BAD BECAUSE WE POLLUTE THE GLOBAL NAMESPACE.
281 + */
282 +#ifdef __GLIBC__
283 +# if !defined(_MATH_H)
284 +# define _HACK_UNDEF_MATH_H
285 +# define _MATH_H
286 +# endif
287 +# include <bits/mathdef.h>
288 +# if defined(__NO_LONG_DOUBLE_MATH)
289 +# define _STLP_NO_LONG_DOUBLE
290 +# endif
291 +# if defined(_HACK_UNDEF_MATH_H)
292 +# undef _HACK_UNDEF_MATH_H
293 +# undef _MATH_H
294 +# endif
295 +#endif
296 +
297
298
299
300 1.1 dev-libs/STLport/files/STLport-5.1.5-bashism.patch
301
302 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-bashism.patch?rev=1.1&view=markup
303 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-bashism.patch?rev=1.1&content-type=text/plain
304
305 Index: STLport-5.1.5-bashism.patch
306 ===================================================================
307 --- STLport-5.1.5.orig/build/Makefiles/gmake/lib/gcc.mak
308 +++ STLport-5.1.5/build/Makefiles/gmake/lib/gcc.mak
309 @@ -89,9 +89,9 @@
310 # Include whole language support archive (libsupc++.a) into libstlport:
311 # all C++ issues are in libstlport now.
312 ifeq ($(OSNAME),linux)
313 -START_OBJ := $(shell for o in crt{i,beginS}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
314 +START_OBJ := $(shell for o in crti.o crtbeginS.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
315 #START_A_OBJ := $(shell for o in crt{i,beginT}.o; do ${CXX} -print-file-name=$$o; done)
316 -END_OBJ := $(shell for o in crt{endS,n}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
317 +END_OBJ := $(shell for o in crtendS.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
318 STDLIBS := -Wl,--whole-archive -lsupc++ ${_LGCC_EH} -Wl,--no-whole-archive ${_LGCC_S} -lpthread -lc -lm
319 endif
320 ifeq ($(OSNAME),openbsd)
321 @@ -107,8 +107,8 @@
322 STDLIBS := -Wl,--whole-archive -lsupc++ ${_LGCC_EH} -Wl,--no-whole-archive ${_LGCC_S} -l${PTHR} -lc -lm
323 endif
324 ifeq ($(OSNAME),netbsd)
325 -START_OBJ := $(shell for o in crt{i,beginS}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
326 -END_OBJ := $(shell for o in crt{endS,n}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
327 +START_OBJ := $(shell for o in crti.o crtbeginS.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
328 +END_OBJ := $(shell for o in crtendS.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
329 STDLIBS := -Wl,--whole-archive -lsupc++ ${_LGCC_EH} -Wl,--no-whole-archive ${_LGCC_S} -lpthread -lc -lm
330 endif
331 ifeq ($(OSNAME),sunos)
332 --- STLport-5.1.5.orig/build/Makefiles/gmake/app/gcc.mak
333 +++ STLport-5.1.5/build/Makefiles/gmake/app/gcc.mak
334 @@ -104,8 +104,8 @@
335 endif
336
337 ifeq ($(OSNAME),linux)
338 -START_OBJ := $(shell for o in crt{1,i,begin}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
339 -END_OBJ := $(shell for o in crt{end,n}.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
340 +START_OBJ := $(shell for o in crt1.o crti.o crtbegin.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
341 +END_OBJ := $(shell for o in crtend.o crtn.o; do ${CXX} ${CXXFLAGS} -print-file-name=$$o; done)
342 STDLIBS = ${STLPORT_LIB} ${_LGCC_S} -lpthread -lc -lm
343 endif
344 ifeq ($(OSNAME),openbsd)
345
346
347
348 1.1 dev-libs/STLport/files/STLport-5.1.5-alpha.patch
349
350 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-alpha.patch?rev=1.1&view=markup
351 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/STLport/files/STLport-5.1.5-alpha.patch?rev=1.1&content-type=text/plain
352
353 Index: STLport-5.1.5-alpha.patch
354 ===================================================================
355 --- stlport5.1.orig/stlport/stl/_cwchar.h
356 +++ stlport5.1/stlport/stl/_cwchar.h
357 @@ -105,18 +105,6 @@
358 # define WCHAR_MAX ((wchar_t)~0)
359 # endif
360 # endif
361 -# if defined (__GNUC__) && defined (__alpha__)
362 -/* Definition of WCHAR_MIN and MAX are wrong for alpha platform
363 - * as gcc consider wchar_t as an unsigned type. Static assertion are
364 - * here to check that a future alpha SDK or a future gcc won't change the
365 - * situation making this workaround useless.
366 - */
367 -_STLP_STATIC_ASSERT(((wchar_t)-1 > 0) && (WCHAR_MIN < 0))
368 -# undef WCHAR_MIN
369 -# define WCHAR_MIN 0
370 -# undef WCHAR_MAX
371 -# define WCHAR_MAX ((wchar_t)~0)
372 -# endif
373 # if defined(__HP_aCC) && (__HP_aCC >= 60000)
374 /* Starting with B.11.31, HP-UX/ia64 provides C99-compliant definitions
375 * of WCHAR_MIN/MAX macros without having to define
376
377
378
379 --
380 gentoo-commits@l.g.o mailing list