Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/vlc/0.8.6h: 000_all_glide.patch 010_all_freetype-font.patch 110_all_dtspic.patch 130_all_textrels.patch 140_all_directfb.patch 180_all_faad.patch 190_all_strict-aliasing.patch 200_all_nonpermissive.patch 220_all_firefox.patch 250_all_livepic.patch 290_all_altivec.patch 330_all_libdca.patch series
Date: Sat, 31 May 2008 10:01:26
Message-Id: E1K2Nto-0001g2-E9@stork.gentoo.org
1 aballier 08/05/31 10:01:20
2
3 Added: 000_all_glide.patch 010_all_freetype-font.patch
4 110_all_dtspic.patch 130_all_textrels.patch
5 140_all_directfb.patch 180_all_faad.patch
6 190_all_strict-aliasing.patch
7 200_all_nonpermissive.patch 220_all_firefox.patch
8 250_all_livepic.patch 290_all_altivec.patch
9 330_all_libdca.patch series
10 Log:
11 add patches for new upstream release (not released officially yet)
12
13 Revision Changes Path
14 1.1 src/patchsets/vlc/0.8.6h/000_all_glide.patch
15
16 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/000_all_glide.patch?rev=1.1&view=markup
17 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/000_all_glide.patch?rev=1.1&content-type=text/plain
18
19 Index: 000_all_glide.patch
20 ===================================================================
21 Portage has just glide 3.x so use that and not glide 2.x.
22 This patch replaces the sed to configure in src_unpack in old ebuilds.
23
24 Updated with report of Ed Catmur, Gentoo Bug #132809
25 Index: vlc-0.8.6-rc1/modules/video_output/glide.c
26 ===================================================================
27 --- vlc-0.8.6-rc1.orig/modules/video_output/glide.c
28 +++ vlc-0.8.6-rc1/modules/video_output/glide.c
29 @@ -244,20 +244,11 @@ static void Display( vout_thread_t *p_vo
30
31 static int OpenDisplay( vout_thread_t *p_vout )
32 {
33 - static char version[80];
34 - GrHwConfiguration hwconfig;
35 GrScreenResolution_t resolution = GR_RESOLUTION_800x600;
36 GrLfbInfo_t p_front_buffer_info; /* front buffer info */
37
38 - grGlideGetVersion( version );
39 grGlideInit();
40
41 - if( !grSstQueryHardware(&hwconfig) )
42 - {
43 - msg_Err( p_vout, "cannot get 3dfx hardware config" );
44 - return( 1 );
45 - }
46 -
47 grSstSelect( 0 );
48 if( !grSstWinOpen( 0, resolution, GR_REFRESH_60Hz,
49 GR_COLORFORMAT_ABGR, GR_ORIGIN_UPPER_LEFT, 2, 1 ) )
50 Index: vlc-0.8.6-rc1/configure.ac
51 ===================================================================
52 --- vlc-0.8.6-rc1.orig/configure.ac
53 +++ vlc-0.8.6-rc1/configure.ac
54 @@ -4019,11 +4019,11 @@ then
55 VLC_ADD_LDFLAGS([glide],[-L${with_glide}/lib])
56 CFLAGS="$CFLAGS -I${with_glide}/include"
57 fi ])
58 - CFLAGS="$CFLAGS -I/usr/include/glide"
59 + CFLAGS="$CFLAGS -I/usr/include/glide3"
60 AC_CHECK_HEADER(glide.h,[
61 VLC_ADD_PLUGINS([glide])
62 - VLC_ADD_LDFLAGS([glide],[-lglide2x -lm])
63 - VLC_ADD_CPPFLAGS([glide],[-I/usr/include/glide])
64 + VLC_ADD_LDFLAGS([glide],[-lglide3 -lm])
65 + VLC_ADD_CPPFLAGS([glide],[-I/usr/include/glide3])
66 ],[
67 AC_MSG_ERROR([You don't have libglide. Install it or do not use --enable-glide])
68 ])
69
70
71
72 1.1 src/patchsets/vlc/0.8.6h/010_all_freetype-font.patch
73
74 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/010_all_freetype-font.patch?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/010_all_freetype-font.patch?rev=1.1&content-type=text/plain
76
77 Index: 010_all_freetype-font.patch
78 ===================================================================
79 The default font used by VLC does not exists on every system, instead of that,
80 we use Bitstream Vera, and add it to the dependencies, as anyway many people
81 have that font installed.
82
83 Index: vlc-0.8.4/modules/misc/freetype.c
84 ===================================================================
85 --- vlc-0.8.4.orig/modules/misc/freetype.c
86 +++ vlc-0.8.4/modules/misc/freetype.c
87 @@ -55,7 +55,7 @@
88 #elif defined( WIN32 )
89 #define DEFAULT_FONT "" /* Default font found at run-time */
90 #else
91 -#define DEFAULT_FONT "/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf"
92 +#define DEFAULT_FONT "/usr/share/fonts/ttf-bitstream-vera/VeraBd.ttf"
93 #endif
94
95 #if defined(HAVE_FRIBIDI)
96
97
98
99 1.1 src/patchsets/vlc/0.8.6h/110_all_dtspic.patch
100
101 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/110_all_dtspic.patch?rev=1.1&view=markup
102 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/110_all_dtspic.patch?rev=1.1&content-type=text/plain
103
104 Index: 110_all_dtspic.patch
105 ===================================================================
106 Index: vlc-0.8.6-rc1/configure.ac
107 ===================================================================
108 --- vlc-0.8.6-rc1.orig/configure.ac
109 +++ vlc-0.8.6-rc1/configure.ac
110 @@ -3058,7 +3058,7 @@ if test "${enable_dts}" != "no"; then
111 VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic])
112 ],[
113 AC_CHECK_LIB(dts, dts_free, [
114 - VLC_ADD_BUILTINS([dtstofloat32])
115 + VLC_ADD_PLUGINS([dtstofloat32])
116 VLC_ADD_LDFLAGS([dtstofloat32],[-ldts])
117 ],[
118 if test "${enable_dts}" = "yes"; then
119
120
121
122 1.1 src/patchsets/vlc/0.8.6h/130_all_textrels.patch
123
124 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/130_all_textrels.patch?rev=1.1&view=markup
125 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/130_all_textrels.patch?rev=1.1&content-type=text/plain
126
127 Index: 130_all_textrels.patch
128 ===================================================================
129 Index: vlc-0.8.6-rc1/loader/Makefile.am
130 ===================================================================
131 --- vlc-0.8.6-rc1.orig/loader/Makefile.am
132 +++ vlc-0.8.6-rc1/loader/Makefile.am
133 @@ -16,7 +16,7 @@ endif
134 # TODO: real check for vsscanf() and <sys/mmap.h>
135 AM_CPPFLAGS = -D__WINE__ -DHAVE_SYS_MMAN_H=1 -DHAVE_VSSCANF=1 \
136 -DWIN32_PATH=\"\" -DTRACE\(...\)=\(void\)0
137 -AM_CFLAGS = -fno-PIC `$(top_builddir)/vlc-config --cflags` -U_FILE_OFFSET_BITS \
138 +AM_CFLAGS = -fPIC `$(top_builddir)/vlc-config --cflags` -U_FILE_OFFSET_BITS \
139 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
140
141 noinst_HEADERS = com.h driver.h ext.h ldt_keeper.h loader.h registry.h \
142 Index: vlc-0.8.6-rc1/loader/module.c
143 ===================================================================
144 --- vlc-0.8.6-rc1.orig/loader/module.c
145 +++ vlc-0.8.6-rc1/loader/module.c
146 @@ -63,8 +63,8 @@
147
148 #ifdef EMU_QTX_API
149 #include "wrapper.h"
150 -static int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags);
151 -static int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags);
152 +int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags);
153 +int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags);
154 #endif
155
156 //#undef TRACE
157 @@ -572,8 +572,6 @@ HMODULE WINAPI LoadLibraryExA(LPCSTR lib
158 fprintf(stderr,"QuickTime.qts patched!!! old entry=%p\n",ptr[0]);
159
160 #ifdef EMU_QTX_API
161 - report_entry = report_func;
162 - report_ret = report_func_ret;
163 wrapper_target=ptr[0];
164 ptr[0]=wrapper;
165 #endif
166 @@ -754,7 +752,7 @@ static int dump_component(char* name,int
167 static uint32_t ret_array[4096];
168 static int ret_i=0;
169
170 -static int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags)
171 +int report_func(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags)
172 {
173 #ifdef DEBUG_QTX_API
174 int i;
175 @@ -953,7 +951,7 @@ static int report_func(void *stack_base,
176 return 0;
177 }
178
179 -static int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags)
180 +int report_func_ret(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags)
181 {
182 int i;
183 short err;
184 @@ -1066,8 +1064,6 @@ FARPROC MODULE_GetProcAddress(
185 // || !strcmp(function,"_CallComponent")
186 ){
187 fprintf(stderr,"theQuickTimeDispatcher catched -> %p\n",retproc);
188 - report_entry = report_func;
189 - report_ret = report_func_ret;
190 wrapper_target=(void(*)(void))retproc;
191 retproc=(FARPROC)wrapper;
192 }
193 Index: vlc-0.8.6-rc1/loader/stubs.s
194 ===================================================================
195 --- vlc-0.8.6-rc1.orig/loader/stubs.s
196 +++ vlc-0.8.6-rc1/loader/stubs.s
197 @@ -33,3 +33,6 @@ exp_EH_prolog:
198 leal 12(%esp), %ebp
199 pushl %eax
200 ret
201 +
202 +.section .note.GNU-stack,"",@progbits
203 +
204 Index: vlc-0.8.6-rc1/loader/wrapper.S
205 ===================================================================
206 --- vlc-0.8.6-rc1.orig/loader/wrapper.S
207 +++ vlc-0.8.6-rc1/loader/wrapper.S
208 @@ -1,17 +1,19 @@
209 .section .data
210 -.globl caller_return
211 caller_return:
212 .long 0
213 -.globl report_entry
214 -report_entry:
215 - .long null_call
216 -.globl report_ret
217 -report_ret:
218 - .long null_call
219 .global wrapper_target
220 wrapper_target:
221 .long null_call
222
223 +#undef __i686 /* gcc define gets in our way */
224 + .section .gnu.linkonce.t.__i686.get_pc_thunk.bx,"ax",@progbits
225 +.globl __i686.get_pc_thunk.bx
226 + .hidden __i686.get_pc_thunk.bx
227 + .type __i686.get_pc_thunk.bx,@function
228 +__i686.get_pc_thunk.bx:
229 + movl (%esp), %ebx
230 + ret
231 +
232 .section .text
233 .globl null_call
234 .type null_call, @function
235 @@ -22,46 +24,60 @@ null_call:
236 .type wrapper, @function
237 .balign 16,0x90
238 wrapper:
239 + pushl $0
240 pusha # store registers (EAX, ECX, EDX, EBX, ESP, EBP, ESI, EDI)
241 pushf # store flags
242
243 push %ebp # set up a stack frame
244 movl %esp, %ebp
245
246 + call __i686.get_pc_thunk.bx
247 + addl $_GLOBAL_OFFSET_TABLE_, %ebx
248 +
249 leal 4(%ebp), %eax # push flags addr
250 push %eax
251 leal 8(%ebp), %eax # push registers addr
252 push %eax
253 -
254 - leal 40(%ebp), %edx
255 +
256 + leal 44(%ebp), %edx
257 movl (%ebp), %eax
258 subl %edx, %eax
259 push %eax
260 push %edx
261 -
262 - call *report_entry # report entry
263 -
264 +
265 + call report_func@PLT # report entry
266 +
267 test %eax, %eax
268 jnz .Ldone
269
270 + movl 44(%ebp), %eax # switch return addresses
271 + movl %eax, caller_return@GOTOFF(%ebx)
272 + leal .Lwrapper_return@GOTOFF(%ebx), %eax
273 + movl %eax, 40(%ebp)
274 +
275 + movl wrapper_target@GOTOFF(%ebx), %eax
276 + mov %eax, 40(%ebp) # wrapper_target should return at .Lwrapper_return
277 +
278 leave # restore %esp, %ebp
279 popf # restore flags
280 popa # restore registers
281 -
282 - popl caller_return # switch return addresses
283 - pushl $.Lwrapper_return
284 -
285 - jmp *wrapper_target # wrapper_target should return at .Lwrapper_return
286 +
287 + ret
288
289 .balign 16, 0x90
290 .Lwrapper_return:
291 - pushl caller_return # restore the original return address
292 + pushl $0 # restore the original return address
293 pusha # more for reference sake here
294 pushf
295
296 push %ebp # set up a stack frame
297 movl %esp, %ebp
298
299 + call __i686.get_pc_thunk.bx
300 + addl $_GLOBAL_OFFSET_TABLE_, %ebx
301 + movl caller_return@GOTOFF(%ebx), %eax
302 + movl %eax, 40(%ebp) # restore the original return address
303 +
304 leal 4(%ebp), %eax # push flags addr
305 push %eax
306 leal 8(%ebp), %eax # push registers addr
307 @@ -73,11 +89,13 @@ wrapper:
308 push %eax
309 push %edx
310
311 - call *report_ret # report the return information (same args)
312 + call report_func_ret@PLT# report the return information (same args)
313 .Ldone:
314
315 leave
316 popf
317 popa
318 ret
319 -
320 +
321 +.section .note.GNU-stack,"",@progbits
322 +
323 Index: vlc-0.8.6-rc1/loader/wrapper.h
324 ===================================================================
325 --- vlc-0.8.6-rc1.orig/loader/wrapper.h
326 +++ vlc-0.8.6-rc1/loader/wrapper.h
327 @@ -7,10 +7,6 @@ typedef struct {
328 uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
329 } reg386_t;
330
331 -typedef int (*wrapper_func_t)(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags);
332 -
333 -extern wrapper_func_t report_entry, report_ret;
334 -
335 extern void (*wrapper_target)(void);
336
337 extern int wrapper(void);
338
339
340
341 1.1 src/patchsets/vlc/0.8.6h/140_all_directfb.patch
342
343 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/140_all_directfb.patch?rev=1.1&view=markup
344 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/140_all_directfb.patch?rev=1.1&content-type=text/plain
345
346 Index: 140_all_directfb.patch
347 ===================================================================
348 Index: vlc-0.8.6c/configure.ac
349 ===================================================================
350 --- vlc-0.8.6c.orig/configure.ac
351 +++ vlc-0.8.6c/configure.ac
352 @@ -3986,38 +3986,73 @@ fi
353
354 dnl
355 dnl DirectFB module
356 +dnl try to find using: 1 - given location; 2 - directfb-config; 3 - pkg-config
357 +dnl TODO: support for static linking
358 dnl
359 AC_ARG_ENABLE(directfb,
360 [ --enable-directfb DirectFB support (default disabled)])
361 -if test "${enable_directfb}" = "yes"
362 -then
363 - if test "${with_directfb}" = "no"
364 - then
365 - AC_CHECK_HEADER(directfb.h, have_directfb="true", have_directfb="false")
366 - if test "${have_directfb}"= "true"
367 - then
368 +AC_ARG_WITH(directfb,
369 + [ --with-directfb=PATH path to DirectFB headers and libraries])
370 +
371 +if test "${enable_directfb}" = "yes"; then
372 + have_directfb="false"
373 + CPPFLAGS_mydirectfb=
374 + LDFLAGS_mydirectfb=
375 + if test "${with_directfb}" != "no" -a -n "${with_directfb}"; then
376 + dnl Trying the given location
377 + CPPFLAGS_save=${CPPFLAGS}
378 + LDFLAGS_save=${LDFLAGS}
379 +
380 + CPPFLAGS_new="-I${with_directfb}/include -D_REENTRANT -D_GNU_SOURCE"
381 + LDFLAGS_new="-L${with_directfb}/lib/fusion/.libs/ -L${with_directfb}/lib/direct/.libs/"
382 + LDFLAGS_new="${LDFLAGS_new} -L${with_directfb}/src/.libs/"
383 +
384 + CPPFLAGS="${CPPFLAGS} ${CPPFLAGS_new}"
385 + LDFLAGS="${LD_FLAGS} ${LDFLAGS_new}"
386 +
387 + dnl FIXME: too obscure
388 + AC_CHECK_HEADER([directfb.h], [
389 + AC_CHECK_LIB([direct],[direct_initialize], [
390 + AC_CHECK_LIB([fusion], [fusion_enter], [
391 + AC_CHECK_LIB([directfb], [DirectFBInit], have_directfb="true", have_directfb="false")
392 + ], have_directfb="false")
393 + ], have_directfb="false")
394 + ], have_directfb="false")
395 +
396 + dnl Restore flags
397 + CPPFLAGS="${CPPFLAGS_save}"
398 + LDFLAGS="${LDFLAGS_save}"
399 +
400 + if test "${have_directfb}" = "true"; then
401 + LDFLAGS_mydirectfb="${LDFLAGS_new} -lz -ldl -ldirectfb -lfusion -ldirect -lpthread"
402 + CPPFLAGS_mydirectfb="${CPPFLAGS_new}"
403 + fi
404 + else
405 + dnl Look for directfb-config
406 + AC_PATH_PROG(DIRECTFB_CONFIG, directfb-config, no, ${PATH})
407 + if test "${DIRECTFB_CONFIG}" != "no"; then
408 + CPPFLAGS_mydirectfb="`${DIRECTFB_CONFIG} --cflags`"
409 + LDFLAGS_mydirectfb="`${DIRECTFB_CONFIG} --libs`"
410 + have_directfb="true"
411 + else
412 + dnl Trying with pkg-config
413 + PKG_CHECK_MODULES(DIRECTFB, directfb, [
414 + CPPFLAGS_mydirectfb="${DIRECTFB_CFLAGS}"
415 + LDFLAGS_mydirectfb="${DIRECTFB_LIBS}"
416 + have_directfb="true"
417 + ], [have_directfb="false"])
418 + fi
419 + fi
420 + if test "${have_directfb}" = "true"; then
421 VLC_ADD_PLUGINS([directfb])
422 - VLC_ADD_LDFLAGS([directfb],[-ldirectfb -lfusion -ldirect -lpthread -ljpeg -lz -ldl])
423 - VLC_ADD_CPPFLAGS([directfb],[-I/usr/include/directfb -D_REENTRANT])
424 - else
425 - AC_MSG_ERROR([cannot find /usr/include/directfb headers, make sure directfb is installed on your system or use --disable-directfb])
426 + VLC_ADD_CPPFLAGS([directfb],[${CPPFLAGS_mydirectfb}])
427 + VLC_ADD_LDFLAGS([directfb],[${LDFLAGS_mydirectfb}])
428 + else
429 + AC_MSG_ERROR([cannot find directfb headers and/or libraries ])
430 fi
431 - else
432 - CPPFLAGS_save="${CPPFLAGS}"
433 - CPPFLAGS="${CPPFLAGS} -I${with_directfb}/include"
434 - AC_CHECK_HEADER(directfb.h, have_directfb="true", have_directfb="false")
435 - CPPFLAGS="${CPPFLAGS_save}"
436 - AC_ARG_WITH(directfb,
437 - [ --with-directfb=PATH path to directfb],
438 - [ if test "${with_directfb}" != "no" -a -n "${with_directfb}"
439 - then
440 - VLC_ADD_PLUGINS([directfb])
441 - VLC_ADD_CPPFLAGS([directfb],[-I${with_directfb}/include -D_REENTRANT])
442 - VLC_ADD_LDFLAGS([directfb],[-L${with_directfb}/lib -ldirectfb -lfusion -ldirect -lpthread -ljpeg -lz -ldl])
443 - fi ],
444 - [ AC_MSG_ERROR([cannot find directfb headers in ${with_directfb}/include]) ])
445 - fi
446 fi
447 +
448 +
449
450 dnl
451 dnl GGI module
452
453
454
455 1.1 src/patchsets/vlc/0.8.6h/180_all_faad.patch
456
457 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/180_all_faad.patch?rev=1.1&view=markup
458 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/180_all_faad.patch?rev=1.1&content-type=text/plain
459
460 Index: 180_all_faad.patch
461 ===================================================================
462 Index: vlc-0.8.6-rc1/modules/codec/ffmpeg/ffmpeg.c
463 ===================================================================
464 --- vlc-0.8.6-rc1.orig/modules/codec/ffmpeg/ffmpeg.c
465 +++ vlc-0.8.6-rc1/modules/codec/ffmpeg/ffmpeg.c
466 @@ -238,14 +238,6 @@ static int OpenDecoder( vlc_object_t *p_
467 return VLC_EGENERIC;
468 }
469
470 - /* Bail out if buggy decoder */
471 - if( i_codec_id == CODEC_ID_AAC )
472 - {
473 - msg_Dbg( p_dec, "refusing to use ffmpeg's (%s) decoder which is buggy",
474 - psz_namecodec );
475 - return VLC_EGENERIC;
476 - }
477 -
478 /* Initialization must be done before avcodec_find_decoder() */
479 E_(InitLibavcodec)(p_this);
480
481
482
483
484 1.1 src/patchsets/vlc/0.8.6h/190_all_strict-aliasing.patch
485
486 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/190_all_strict-aliasing.patch?rev=1.1&view=markup
487 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/190_all_strict-aliasing.patch?rev=1.1&content-type=text/plain
488
489 Index: 190_all_strict-aliasing.patch
490 ===================================================================
491 Index: vlc-0.8.6-rc1/configure.ac
492 ===================================================================
493 --- vlc-0.8.6-rc1.orig/configure.ac
494 +++ vlc-0.8.6-rc1/configure.ac
495 @@ -5310,6 +5310,16 @@ then
496 fi
497
498
499 +AC_CACHE_CHECK([if \$CXX accepts -fno-strict-aliasing],
500 + [ac_cv_cxx_fnostrictaliasing],
501 + [CXXFLAGS="${CXXFLAGS_save} -fno-strict-aliasing"
502 + AC_TRY_COMPILE([],,ac_cv_cxx_fnostrictaliasing=yes,
503 + ac_cv_cxx_fnostrictaliasing=no)])
504 +# wxWidgest has the bad behaviour of forcing breakages of strict aliasing
505 +# rules all over, so pass this to force using -fno-strict-aliasing on it.
506 +if test "${ac_cv_cxx_fnostrictaliasing}" = "yes"; then
507 + VLC_ADD_CXXFLAGS([wxwidgets skins2],-fno-strict-aliasing)
508 +fi
509 dnl
510 dnl Plugin and builtin checks
511 dnl
512 Index: vlc-0.8.6-rc1/modules/demux/m3u.c
513 ===================================================================
514 --- vlc-0.8.6-rc1.orig/modules/demux/m3u.c
515 +++ vlc-0.8.6-rc1/modules/demux/m3u.c
516 @@ -127,7 +127,7 @@ static int Activate( vlc_object_t * p_th
517 if( i_type != TYPE_M3U )
518 {
519 char *p_peek;
520 - int i_size = stream_Peek( p_demux->s, (uint8_t **)&p_peek, MAX_LINE );
521 + int i_size = stream_Peek( p_demux->s, &p_peek, MAX_LINE );
522 i_size -= sizeof("[Reference]") - 1;
523
524 if( i_size > 0 )
525 Index: vlc-0.8.6-rc1/modules/demux/mkv.cpp
526 ===================================================================
527 --- vlc-0.8.6-rc1.orig/modules/demux/mkv.cpp
528 +++ vlc-0.8.6-rc1/modules/demux/mkv.cpp
529 @@ -5307,11 +5307,11 @@ bool matroska_segment_c::CompareSegmentU
530 if ( p_item_a == NULL || p_item_b == NULL )
531 return false;
532
533 - EbmlBinary * p_itema = (EbmlBinary *)(p_item_a->p_segment_uid);
534 + EbmlBinary * p_itema = dynamic_cast<EbmlBinary *>(p_item_a->p_segment_uid);
535 if ( p_item_b->p_prev_segment_uid != NULL && *p_itema == *p_item_b->p_prev_segment_uid )
536 return true;
537
538 - p_itema = (EbmlBinary *)(&p_item_a->p_next_segment_uid);
539 + p_itema = dynamic_cast<EbmlBinary *>(p_item_a->p_next_segment_uid);
540 if ( p_item_b->p_segment_uid != NULL && *p_itema == *p_item_b->p_segment_uid )
541 return true;
542
543
544
545
546 1.1 src/patchsets/vlc/0.8.6h/200_all_nonpermissive.patch
547
548 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/200_all_nonpermissive.patch?rev=1.1&view=markup
549 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/200_all_nonpermissive.patch?rev=1.1&content-type=text/plain
550
551 Index: 200_all_nonpermissive.patch
552 ===================================================================
553 Index: vlc-0.8.6-rc1/configure.ac
554 ===================================================================
555 --- vlc-0.8.6-rc1.orig/configure.ac
556 +++ vlc-0.8.6-rc1/configure.ac
557 @@ -4561,17 +4561,6 @@ then
558 AC_MSG_ERROR([Your development package for wxWidgets is too old, you need at least version 2.3.0. Please upgrade and try again. Alternatively you can also configure with --disable-wxwidgets.])
559 fi
560 AC_LANG_PUSH(C++)
561 - # Turn this error:
562 - # playlist.cpp:1351: error: ISO C++ forbids cast to non-reference type
563 - # into a warning. However better would be to fix playlist.cpp
564 - AC_CACHE_CHECK([if \$CXX accepts -fpermissive],
565 - [ac_cv_cxx_fpermissive],
566 - [CXXFLAGS="${CXXFLAGS_save} -fpermissive"
567 - AC_TRY_COMPILE([],,ac_cv_cxx_fpermissive=yes,
568 - ac_cv_cxx_fpermissive=no)])
569 - if test "${ac_cv_cxx_fpermissive}" = "yes"; then
570 - VLC_ADD_CXXFLAGS([wxwidgets],-fpermissive)
571 - fi
572 VLC_ADD_LDFLAGS([wxwidgets],[`${WX_CONFIG} --libs`])
573 VLC_ADD_CXXFLAGS([wxwidgets],[`${WX_CONFIG} --cxxflags`])
574 if ${WX_CONFIG} --unicode
575 Index: vlc-0.8.6-rc1/include/vlc_common.h
576 ===================================================================
577 --- vlc-0.8.6-rc1.orig/include/vlc_common.h
578 +++ vlc-0.8.6-rc1/include/vlc_common.h
579 @@ -599,6 +599,29 @@ static int64_t GCD( int64_t a, int64_t b
580 } \
581 while( 0 )
582
583 +/* Special version for C++ code */
584 +#define REMOVE_ELEM_PP( type_p_ar, p_ar, i_oldsize, i_pos ) \
585 + do \
586 + { \
587 + if( (i_oldsize) - (i_pos) - 1 ) \
588 + { \
589 + memmove( (p_ar) + (i_pos), \
590 + (p_ar) + (i_pos) + 1, \
591 + ((i_oldsize) - (i_pos) - 1) * sizeof( *(p_ar) ) ); \
592 + } \
593 + if( i_oldsize > 1 ) \
594 + { \
595 + (p_ar) = (type_p_ar)realloc( p_ar, ((i_oldsize) - 1) * sizeof( *(p_ar) ) ); \
596 + } \
597 + else \
598 + { \
599 + free( p_ar ); \
600 + (p_ar) = NULL; \
601 + } \
602 + (i_oldsize)--; \
603 + } \
604 + while( 0 )
605 +
606
607 #define TAB_APPEND( count, tab, p ) \
608 if( (count) > 0 ) \
609 Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/interaction.cpp
610 ===================================================================
611 --- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/interaction.cpp
612 +++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/interaction.cpp
613 @@ -245,7 +245,7 @@ void InteractionDialog::OnClear( wxComma
614 user_widget_t *p_widget = p_dialog->pp_widgets[i];
615 FREE( p_widget->psz_text );
616 FREE( p_widget->val.psz_string );
617 - REMOVE_ELEM( p_dialog->pp_widgets, p_dialog->i_widgets, i );
618 + REMOVE_ELEM_PP( user_widget_t **, p_dialog->pp_widgets, p_dialog->i_widgets, i );
619 free( p_widget );
620 }
621 widgets_panel->DestroyChildren();
622 Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/open.cpp
623 ===================================================================
624 --- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/open.cpp
625 +++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/open.cpp
626 @@ -1825,14 +1825,14 @@ void OpenDialog::OnSubsFileSettings( wxC
627 }
628 if( subsfile_dialog->align_combo )
629 {
630 - subsfile_mrl.Add( wxString::Format(wxT("subsdec-align=%i"),
631 - (int)subsfile_dialog->align_combo->GetClientData(
632 + subsfile_mrl.Add( wxString::Format(wxT("subsdec-align=%li"),
633 + (long)subsfile_dialog->align_combo->GetClientData(
634 subsfile_dialog->align_combo->GetSelection()) ) );
635 }
636 if( subsfile_dialog->size_combo )
637 {
638 - subsfile_mrl.Add( wxString::Format( wxT("freetype-rel-fontsize=%i"),
639 - (int)subsfile_dialog->size_combo->GetClientData(
640 + subsfile_mrl.Add( wxString::Format( wxT("freetype-rel-fontsize=%li"),
641 + (long)subsfile_dialog->size_combo->GetClientData(
642 subsfile_dialog->size_combo->GetSelection()) ) );
643 }
644 subsfile_mrl.Add( wxString::Format( wxT("sub-fps=%i"),
645 Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp
646 ===================================================================
647 --- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp
648 +++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/preferences_widgets.cpp
649 @@ -249,7 +249,7 @@ int KeyConfigControl::GetIntValue()
650 int selected = combo->GetSelection();
651 if( selected != -1 )
652 {
653 - result |= (int)combo->GetClientData( selected );
654 + result |= (long)combo->GetClientData( selected );
655 }
656 return result;
657 }
658 @@ -873,7 +873,7 @@ int IntegerListConfigControl::GetIntValu
659 int selected = combo->GetSelection();
660 if( selected != -1 )
661 {
662 - return (int)combo->GetClientData( selected );
663 + return static_cast<int>((long)combo->GetClientData( selected ));
664 }
665 return -1;
666 }
667 Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/wizard.cpp
668 ===================================================================
669 --- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/wizard.cpp
670 +++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/wizard.cpp
671 @@ -208,7 +208,7 @@ class wizInputPage : public wxWizardPage
672 {
673 public:
674 wizInputPage( wxWizard *, wxWizardPage *, intf_thread_t *);
675 - wizInputPage::~wizInputPage();
676 + ~wizInputPage();
677 void OnWizardPageChanging(wxWizardEvent& event);
678 void OnInputChange( wxCommandEvent& event );
679 void OnEnablePartial(wxCommandEvent& event);
680 @@ -262,7 +262,7 @@ class wizTranscodeCodecPage : public wxW
681 public:
682 wizTranscodeCodecPage( wxWizard *parent, wxWizardPage *next);
683 ~wizTranscodeCodecPage();
684 - void wizTranscodeCodecPage::OnWizardPageChanging(wxWizardEvent& event);
685 + void OnWizardPageChanging(wxWizardEvent& event);
686 virtual wxWizardPage *GetPrev() const;
687 virtual wxWizardPage *GetNext() const;
688 void SetPrev( wxWizardPage *page);
689 @@ -339,7 +339,7 @@ class wizEncapPage : public wxWizardPage
690 {
691 public:
692 wizEncapPage( wxWizard *parent);
693 - wizEncapPage::~wizEncapPage();
694 + ~wizEncapPage();
695 void OnWizardPageChanging(wxWizardEvent& event);
696 virtual wxWizardPage *GetPrev() const;
697 virtual wxWizardPage *GetNext() const;
698 @@ -387,7 +387,7 @@ public:
699 void OnWizardPageChanging( wxWizardEvent& event );
700 protected:
701 DECLARE_EVENT_TABLE()
702 - void wizTranscodeExtraPage::OnSelectFile(wxCommandEvent&);
703 + void OnSelectFile(wxCommandEvent&);
704 wxTextCtrl *file_text;
705 WizardDialog *p_parent;
706 wxWizardPage *p_prev;
707 Index: vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/updatevlc.cpp
708 ===================================================================
709 --- vlc-0.8.6-rc1.orig/modules/gui/wxwidgets/dialogs/updatevlc.cpp
710 +++ vlc-0.8.6-rc1/modules/gui/wxwidgets/dialogs/updatevlc.cpp
711 @@ -200,7 +200,7 @@ void UpdateVLC::OnChooseItem( wxListEven
712 wxSAVE | wxOVERWRITE_PROMPT );
713 if( filedialog->ShowModal() == wxID_OK )
714 {
715 - update_download( p_uit, filedialog->GetPath().mb_str(wxConvUTF8) );
716 + update_download( p_uit, const_cast<char*>((const char*)(filedialog->GetPath().mb_str(wxConvUTF8))) );
717 }
718 update_iterator_Delete( p_uit );
719 delete filedialog;
720
721
722
723 1.1 src/patchsets/vlc/0.8.6h/220_all_firefox.patch
724
725 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/220_all_firefox.patch?rev=1.1&view=markup
726 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/220_all_firefox.patch?rev=1.1&content-type=text/plain
727
728 Index: 220_all_firefox.patch
729 ===================================================================
730 Index: vlc-0.8.6-test2/mozilla/vlcshell.cpp
731 ===================================================================
732 --- vlc-0.8.6-test2.orig/mozilla/vlcshell.cpp
733 +++ vlc-0.8.6-test2/mozilla/vlcshell.cpp
734 @@ -35,10 +35,8 @@
735 # include <mozilla-config.h>
736 #endif
737
738 -/* This is from mozilla java, do we really need it? */
739 -#if 0
740 +/* This is from mozilla java, needed for jref type */
741 #include <jri.h>
742 -#endif
743
744 #include "vlcplugin.h"
745
746
747
748
749 1.1 src/patchsets/vlc/0.8.6h/250_all_livepic.patch
750
751 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/250_all_livepic.patch?rev=1.1&view=markup
752 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/250_all_livepic.patch?rev=1.1&content-type=text/plain
753
754 Index: 250_all_livepic.patch
755 ===================================================================
756 Starting from version 2006.12.08, Gentoo installs live555 as a system
757 library properly. For policy we also build a shared version of it that
758 uses PIC.
759 For this reason, we can reasonably force VLC to create a Plugin for
760 live555 rather than a builtin.Index: vlc-0.8.6/configure.ac
761 ===================================================================
762 Index: vlc-0.8.6_p18636/configure.ac
763 ===================================================================
764 --- vlc-0.8.6_p18636.orig/configure.ac
765 +++ vlc-0.8.6_p18636/configure.ac
766 @@ -1558,9 +1558,9 @@ if test "${enable_live555}" = "yes"; the
767 ], [
768 AC_CHECK_LIB(liveMedia, main, [
769 # We only have -lliveMedia, do builtins
770 - VLC_ADD_BUILTINS([live555])
771 + VLC_ADD_PLUGINS([live555])
772 VLC_ADD_LDFLAGS([live555], [-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment])
773 - ])
774 + ], ,[-lgroupsock -lBasicUsageEnvironment -lUsageEnvironment])
775 ])
776 if test "${SYS}" = "mingw32"; then
777 # add ws2_32 for closesocket, select, recv
778
779
780
781 1.1 src/patchsets/vlc/0.8.6h/290_all_altivec.patch
782
783 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/290_all_altivec.patch?rev=1.1&view=markup
784 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/290_all_altivec.patch?rev=1.1&content-type=text/plain
785
786 Index: 290_all_altivec.patch
787 ===================================================================
788 This really disables altivec if not wanted.
789 Patch from xtophe: https://trac.videolan.org/vlc/ticket/1055
790 https://bugs.gentoo.org/show_bug.cgi?id=158126
791 Causes a compile failure because altivec.h is found and -maltivec not appended to cflags
792 updated to try to fix this
793 ===================================================================
794 Index: vlc-0.8.6_p18636/configure.ac
795 ===================================================================
796 --- vlc-0.8.6_p18636.orig/configure.ac
797 +++ vlc-0.8.6_p18636/configure.ac
798 @@ -1301,10 +1301,12 @@ AC_CACHE_CHECK([if \$CC groks AltiVec C
799 if test "${ac_cv_c_altivec}" != "no"; then
800 CPPFLAGS="${CPPFLAGS_save} ${ac_cv_c_altivec}"
801 fi
802 +if test "${enable_altivec}" != "no"; then
803 AC_CHECK_HEADERS(altivec.h)
804 +fi
805 CPPFLAGS="${CPPFLAGS_save}"
806
807 -if test "${ac_cv_c_altivec}" != "no"; then
808 +if test "${ac_cv_c_altivec}" != "no" -a "${enable_altivec}" != "no"; then
809 AC_DEFINE(CAN_COMPILE_C_ALTIVEC, 1, Define if your compiler groks C AltiVec extensions.)
810 VLC_ADD_CFLAGS([vlc],[${ac_cv_c_altivec}])
811 VLC_ADD_CFLAGS([idctaltivec motionaltivec],[${ac_cv_c_altivec}])
812
813
814
815 1.1 src/patchsets/vlc/0.8.6h/330_all_libdca.patch
816
817 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/330_all_libdca.patch?rev=1.1&view=markup
818 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/330_all_libdca.patch?rev=1.1&content-type=text/plain
819
820 Index: 330_all_libdca.patch
821 ===================================================================
822 Index: vlc-0.8.6h/configure.ac
823 ===================================================================
824 --- vlc-0.8.6h.orig/configure.ac
825 +++ vlc-0.8.6h/configure.ac
826 @@ -3107,9 +3107,10 @@ if test "${enable_dts}" != "no"; then
827 VLC_ADD_PLUGINS([dtstofloat32])
828 VLC_ADD_LDFLAGS([dtstofloat32],[-ldts_pic])
829 ],[
830 - AC_CHECK_LIB(dts, dts_free, [
831 + PKG_CHECK_MODULES([DCA], [libdts >= 0.0.2], [
832 VLC_ADD_PLUGINS([dtstofloat32])
833 - VLC_ADD_LDFLAGS([dtstofloat32],[-ldts])
834 + VLC_ADD_CPPFLAGS([dtstofloat32], [${DCA_CFLAGS}])
835 + VLC_ADD_LDFLAGS([dtstofloat32],[${DCA_LIBS}])
836 ],[
837 if test "${enable_dts}" = "yes"; then
838 AC_MSG_ERROR([Could not find libdts on your system: you may get it from http://www.videolan.org/dtsdec.html])
839
840
841
842 1.1 src/patchsets/vlc/0.8.6h/series
843
844 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/series?rev=1.1&view=markup
845 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/0.8.6h/series?rev=1.1&content-type=text/plain
846
847 Index: series
848 ===================================================================
849 000_all_glide.patch
850 010_all_freetype-font.patch
851 110_all_dtspic.patch
852 130_all_textrels.patch
853 140_all_directfb.patch
854 180_all_faad.patch
855 190_all_strict-aliasing.patch
856 200_all_nonpermissive.patch
857 220_all_firefox.patch
858 250_all_livepic.patch
859 290_all_altivec.patch
860 330_all_libdca.patch
861
862
863
864 --
865 gentoo-commits@l.g.o mailing list