Hello community, here is the log from the commit of package libdv for openSUSE:Factory checked in at 2015-01-30 11:00:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libdv (Old) and /work/SRC/openSUSE:Factory/.libdv.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libdv" Changes: -------- --- /work/SRC/openSUSE:Factory/libdv/libdv.changes 2013-04-23 15:10:49.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libdv.new/libdv.changes 2015-01-30 11:00:16.000000000 +0100 @@ -1,0 +2,11 @@ +Tue Jan 27 19:59:19 UTC 2015 - [email protected] + +- libdv-endian.patch : Fix endiannnes tests to rely on the + compiler instead on the precence of C library definitions + This is more important for dv_types.h public header because + BYTE_ORDER is only defined when USE_MISC is. +- libdv-visibility.patch: Export only the public API (dv.h) + private symbols are now hidden so the unprefixed ones + do not name-clash with other components of the system. + +------------------------------------------------------------------- New: ---- libdv-endian.patch libdv-visibility.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libdv.spec ++++++ --- /var/tmp/diff_new_pack.lUMYau/_old 2015-01-30 11:00:17.000000000 +0100 +++ /var/tmp/diff_new_pack.lUMYau/_new 2015-01-30 11:00:17.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package libdv # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -49,6 +49,8 @@ Patch5: libdv-1.0.0-textrels-selinux.patch Patch6: libdv-v4l-2.6.38.patch Patch7: libdv-fix-no-add-needed.patch +Patch8: libdv-endian.patch +Patch9: libdv-visibility.patch %description The Quasar DV codec (libdv) is a software codec for DV video, the @@ -132,7 +134,8 @@ %patch6 -p1 %endif %patch7 - +%patch8 -p1 +%patch9 -p1 %build mkdir m4 autoreconf -fiv ++++++ libdv-endian.patch ++++++ --- libdv-1.0.0.orig/libdv/bitstream.h +++ libdv-1.0.0/libdv/bitstream.h @@ -42,16 +42,6 @@ extern "C" { #endif -//My new and improved vego-matic endian swapping routine -//(stolen from the kernel) -#if (BYTE_ORDER == BIG_ENDIAN) -#define swab32(x) (x) -#else // LITTLE_ENDIAN -# define swab32(x)\ -((((uint8_t*)&x)[0] << 24) | (((uint8_t*)&x)[1] << 16) | \ - (((uint8_t*)&x)[2] << 8) | (((uint8_t*)&x)[3])) -#endif // LITTLE_ENDIAN - bitstream_t *_dv_bitstream_init(); void _dv_bitstream_set_fill_func(bitstream_t *bs,uint32_t (*next_function) (uint8_t **,void *),void *priv); void _dv_bitstream_next_buffer(bitstream_t * bs); @@ -66,7 +56,7 @@ static void bitstream_next_word(bitstrea if ((bs->buflen - bs->bufoffset) >=4 ) { bs->next_word = *(uint32_t *)(bs->buf + bs->bufoffset); - bs->next_word = swab32(bs->next_word); + bs->next_word = htobe32(bs->next_word); bs->next_bits = 32; // fprintf(stderr,"next_word is %08x at %d\n",bs->next_word,bs->bufoffset); bs->bufoffset += 4; @@ -195,10 +185,10 @@ static inline void bitstream_flush_large static inline void bitstream_seek_set(bitstream_t *bs, uint32_t offset) { bs->bufoffset = ((offset & (~0x1f)) >> 5) << 2; bs->current_word = *(uint32_t *)(bs->buf + bs->bufoffset); - bs->current_word = swab32(bs->current_word); + bs->current_word = htobe32(bs->current_word); bs->bufoffset += 4; bs->next_word = *(uint32_t *)(bs->buf + bs->bufoffset); - bs->next_word = swab32(bs->next_word); + bs->next_word = htobe32(bs->next_word); bs->bufoffset += 4; bs->bits_left = 32 - (offset & 0x1f); bs->next_bits = 32; --- libdv-1.0.0.orig/libdv/YUY2.c +++ libdv-1.0.0/libdv/YUY2.c @@ -275,7 +275,7 @@ dv_mb420_YUY2 (dv_macroblock_t *mb, uint cb_frame++; cr_frame++; -#if (BYTE_ORDER == LITTLE_ENDIAN) +#if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) *pwyuv0++ = ylut[CLAMP(*(Ytmp0 + 0), -256, 511)]; *pwyuv0++ = cb; *pwyuv0++ = ylut[CLAMP(*(Ytmp0 + 1), -256, 511)]; --- libdv-1.0.0.orig/libdv/dv_types.h +++ libdv-1.0.0/libdv/dv_types.h @@ -253,11 +253,13 @@ typedef struct { counter examples. If we do find out there is one, we'll have to fix it... */ -#if (BYTE_ORDER == LITTLE_ENDIAN) +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #define LITTLE_ENDIAN_BITFIELD -#else +#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ #define BIG_ENDIAN_BITFIELD -#endif /* (BYTE_ORDER == LITTLE_ENDIAN) */ +#else +#error "cannot determine endianness" +#endif typedef struct { #if defined(LITTLE_ENDIAN_BITFIELD) ++++++ libdv-visibility.patch ++++++ --- libdv-1.0.0.orig/libdv/Makefile.am +++ libdv-1.0.0/libdv/Makefile.am @@ -3,10 +3,13 @@ MAINTAINERCLEANFILES = Makefile.in CLEANFILES = asmoff.h -LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent +AM_CFLAGS = -fvisibility=hidden +#LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent lib_LTLIBRARIES= libdv.la +noinst_LTLIBRARIES = libdv-internal.la + if HOST_X86 GASMOFF=gasmoff endif # HOST_X86 @@ -59,16 +62,18 @@ libdv_la_SOURCES= dv.c dct.c idct_248.c encode.c headers.c enc_input.c enc_audio_input.c enc_output.c \ $(libdv_la_ASMS) -libdv_la_LDFLAGS = -version-info 4:3:0 +libdv_la_LDFLAGS = -no-undefined -version-info 4:3:0 + +libdv_internal_la_SOURCES = $(libdv_la_SOURCES) dovlc_SOURCES= dovlc.c -dovlc_LDADD= libdv.la +dovlc_LDADD= libdv.la libdv-internal.la testvlc_SOURCES= testvlc.c -testvlc_LDADD=libdv.la +testvlc_LDADD=libdv.la libdv-internal.la testbitstream_SOURCES= testbitstream.c bitstream.h -testbitstream_LDADD=libdv.la +testbitstream_LDADD=libdv.la libdv-internal.la recode_SOURCES=recode.c recode_LDADD=libdv.la --- libdv-1.0.0.orig/libdv/dv.h +++ libdv-1.0.0/libdv/dv.h @@ -43,7 +43,7 @@ #include <stdio.h> #include <inttypes.h> #include <time.h> - +#pragma GCC visibility push(default) #ifdef __cplusplus extern "C" { #endif @@ -154,7 +154,7 @@ extern int dv_get_num_samples (dv_decode #ifdef __cplusplus } #endif - +#pragma GCC visibility pop #endif // DV_H /*@}*/ --- libdv-1.0.0.orig/libdv/gasmoff.c +++ libdv-1.0.0/libdv/gasmoff.c @@ -25,9 +25,7 @@ #include "dv_types.h" #include <stdio.h> - -#define offsetof(S, M) \ - ((int)&(((S*)NULL)->M)) +#include <stddef.h> #define declare(S, M) \ printf("#define %-40s %d\n", #S "_" #M, offsetof(S, M)) --- libdv-1.0.0.orig/libdv/headers.c +++ libdv-1.0.0/libdv/headers.c @@ -31,6 +31,7 @@ #include <string.h> #include <inttypes.h> +#include "dv.h" #include "headers.h" static void write_header_block(unsigned char* target, int ds, int isPAL) --- libdv-1.0.0.orig/encodedv/Makefile.am +++ libdv-1.0.0/encodedv/Makefile.am @@ -5,22 +5,22 @@ EXTRA_DIST = $(man_MANS) MAINTAINERCLEANFILES = Makefile.in $(AUX_DIST) -LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent - CLEANFILES = +AM_CFLAGS = -fvisibility=hidden + bin_PROGRAMS= encodedv dvconnect dubdv noinst_PROGRAMS= fix_headers scan_packet_headers steal_header ppmqscale dvavi encodedv_SOURCES= encodedv.c -encodedv_LDADD= ../libdv/libdv.la $(POPT_LIB) +encodedv_LDADD= ../libdv/libdv.la ../libdv/libdv-internal.la $(POPT_LIB) dubdv_SOURCES = insert_audio.c -dubdv_LDADD= ../libdv/libdv.la $(POPT_LIB) +dubdv_LDADD= ../libdv/libdv.la ../libdv/libdv-internal.la $(POPT_LIB) fix_headers_SOURCES = fix_headers.c -fix_headers_LDADD= ../libdv/libdv.la +fix_headers_LDADD= ../libdv/libdv.la ../libdv/libdv-internal.la scan_packet_headers_SOURCES = scan_packet_headers.c @@ -32,4 +32,4 @@ dvconnect_SOURCES = dvconnect.c dvconnect_LDADD = $(PTHREAD_LIBS) $(POPT_LIB) dvavi_SOURCES = dvavi.c -dvavi_LDADD= ../libdv/libdv.la +dvavi_LDADD= ../libdv/libdv.la ../libdv/libdv-internal.la --- libdv-1.0.0.orig/playdv/Makefile.am +++ libdv-1.0.0/playdv/Makefile.am @@ -6,13 +6,11 @@ MAINTAINERCLEANFILES = Makefile.in CLEANFILES = -LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent - -AM_CFLAGS = $(SDL_CFLAGS) $(GTK_CFLAGS) +AM_CFLAGS = -fvisibility=hidden $(SDL_CFLAGS) $(GTK_CFLAGS) bin_PROGRAMS= playdv noinst_HEADERS= display.h oss.h playdv_SOURCES= playdv.c display.c display.h oss.c -playdv_LDADD= $(SDL_LIBS) $(GTK_LIBS) $(XV_LIB) ../libdv/libdv.la $(POPT_LIB) -lX11 -lXext +playdv_LDADD= $(SDL_LIBS) $(GTK_LIBS) $(XV_LIB) ../libdv/libdv.la ../libdv/libdv-internal.la $(POPT_LIB) -lX11 -lXext --- libdv-1.0.0.orig/libdv/vlc_x86.S +++ libdv-1.0.0/libdv/vlc_x86.S @@ -88,6 +88,7 @@ dv_decode_vlc: .align 4 .globl __dv_decode_vlc .type __dv_decode_vlc,@function + .hidden __dv_decode_vlc __dv_decode_vlc: pushl %ebx pushl %ebp --- libdv-1.0.0.orig/libdv/vlc_x86_64.S +++ libdv-1.0.0/libdv/vlc_x86_64.S @@ -5,6 +5,7 @@ .align 4 .globl dv_decode_vlc .type dv_decode_vlc,@function + .hidden dv_decode_vlc dv_decode_vlc: push %rbx push %rbp @@ -101,6 +102,7 @@ void __dv_decode_vlc(int bits, dv_vlc_t .align 4 .globl __dv_decode_vlc .type __dv_decode_vlc,@function + .hidden __dv_decode_vlc __dv_decode_vlc: push %rbx push %rbp -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
