# HG changeset patch # User Dominique Corbex # Date 1361127344 -3600 # Node ID de13a14f1b22022f6af51f55e9dbc87ba52026a2 # Parent 57aa50b1eabeb6a5edb3b80017b9017a306f3d98 Up gst-plugins-base (0.10.36) diff -r 57aa50b1eabe -r de13a14f1b22 gst-plugins-base/receipt --- a/gst-plugins-base/receipt Sun Feb 17 19:53:59 2013 +0100 +++ b/gst-plugins-base/receipt Sun Feb 17 19:55:44 2013 +0100 @@ -1,47 +1,51 @@ # SliTaz package receipt. PACKAGE="gst-plugins-base" -VERSION="0.10.35" +VERSION="0.10.36" +SERIES="0.10" CATEGORY="multimedia" SHORT_DESC="GStreamer Base Plugins" MAINTAINER="jozee@slitaz.org" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://gstreamer.freedesktop.org/" +DEPENDS="gstreamer pango libgio \ +alsa-lib libogg libtheora libtheora-enc libvorbis vorbis-tools \ +cdparanoia-III orc" +BUILD_DEPENDS="pkg-config glib-dev gstreamer-dev pango-dev libgio-dev \ +alsa-lib-dev libogg-dev libtheora-dev libvorbis-dev xorg-libXv-dev \ +gobject-introspection-dev \ +cdparanoia-III-dev orc-dev" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WEB_SITE="http://gstreamer.freedesktop.org/" WGET_URL="$WEB_SITE/src/$PACKAGE/$TARBALL" - -DEPENDS="libxml2 alsa-lib cdparanoia-III libvorbis libtheora gstreamer liboil \ -libtheora-enc fontconfig libgio pango xorg-libICE xorg-libSM xorg-libXau \ -xorg-libXdmcp xorg-libXext xorg-libXv freetype" -BUILD_DEPENDS="pkg-config glib-dev alsa-lib-dev liboil-dev gstreamer-dev \ -libtheora-enc libtheora-dev libvorbis-dev cdparanoia-III-dev libxml2-dev \ -libogg-dev libgio-dev freetype-dev fontconfig-dev pango-dev xorg-libSM-dev \ -xorg-libXau-dev xorg-libICE-dev xorg-libXdmcp-dev xorg-libXext-dev \ -xorg-libXv-dev xorg-dev-proto util-linux-uuid-dev gobject-introspection-dev" +LOCALES="da de es fr id it pt_BR ru zh_CN" # Rules to configure and make the package. compile_rules() { cd $src - patch -Np1 -i $stuff/oggstream-fix-crashes-with-0-byte-vorbis-packets.patch - patch -Np1 -i $stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-experimental \ + --disable-static \ + --disable-debug \ + --disable-gnome_vfs \ + --with-package-name="GStreamer Base Plugins ($SERIES)" \ + --with-package-origin="http://www.slitaz.org/" \ $CONFIGURE_ARGS && - make $MAKEFLAGS && - sed -e 's/^SUBDIRS_EXT =.*/SUBDIRS_EXT =/' -i Makefile && - make install + make $MAKEFLAGS && make install + } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib - cp -a $_pkg/usr/bin $fs/usr - cp -a $_pkg/usr/lib/*.so* $fs/usr/lib - cp -a $_pkg/usr/lib/gstreamer* $fs/usr/lib - cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib - rm $fs/usr/lib/gstreamer*/*.*a + mkdir -p $fs/usr/lib/gstreamer-$SERIES $fs/usr/share/locale + mv $install/usr/bin $fs/usr + mv $install/usr/lib/*.so* $fs/usr/lib + mv $install/usr/lib/gstreamer-$SERIES/*.so* $fs/usr/lib/gstreamer-$SERIES + mv $install/usr/lib/girepository-1.0 $fs/usr/lib + for locale in $LOCALES; do + mv $install/usr/share/locale/$locale $fs/usr/share/locale + done } diff -r 57aa50b1eabe -r de13a14f1b22 gst-plugins-base/stuff/oggstream-fix-crashes-with-0-byte-vorbis-packets.patch --- a/gst-plugins-base/stuff/oggstream-fix-crashes-with-0-byte-vorbis-packets.patch Sun Feb 17 19:53:59 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -From 8bd3bdaf3768b3fb6adc85b3bc681fdce07b786e Mon Sep 17 00:00:00 2001 -From: Jonathan Liu -Date: Wed, 03 Aug 2011 08:18:29 +0000 -Subject: oggstream: Fix crashes with 0-byte vorbis packets - -Fixes bug #655574. ---- -diff --git a/ext/ogg/gstoggstream.c b/ext/ogg/gstoggstream.c -index e843f48..77f39d4 100644 ---- a/ext/ogg/gstoggstream.c -+++ b/ext/ogg/gstoggstream.c -@@ -792,7 +792,7 @@ packet_duration_vorbis (GstOggStream * pad, ogg_packet * packet) - int size; - int duration; - -- if (packet->packet[0] & 1) -+ if (packet->bytes == 0 || packet->packet[0] & 1) - return 0; - - mode = (packet->packet[0] >> 1) & ((1 << pad->vorbis_log2_num_modes) - 1); --- -cgit v0.8.3-6-g21f6 diff -r 57aa50b1eabe -r de13a14f1b22 gst-plugins-base/stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch --- a/gst-plugins-base/stuff/theoradec-segfault-on-0-byte-ogg_packet-in-_chain_reverse.patch Sun Feb 17 19:53:59 2013 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -From 7d22d91fca6b9f24ca205eef98031f1ed6a44d33 Mon Sep 17 00:00:00 2001 -From: Philip Jägenstedt -Date: Tue, 26 Jul 2011 14:10:17 +0000 -Subject: theoradec: segfault on 0-byte ogg_packet in _chain_reverse - ---- -diff --git a/ext/theora/gsttheoradec.c b/ext/theora/gsttheoradec.c -index 96e12ee..25d68db 100644 ---- a/ext/theora/gsttheoradec.c -+++ b/ext/theora/gsttheoradec.c -@@ -1440,7 +1440,7 @@ theora_dec_chain_reverse (GstTheoraDec * dec, gboolean discont, GstBuffer * buf) - - /* if we copied a keyframe, flush and decode the decode queue */ - data = GST_BUFFER_DATA (gbuf); -- if ((data[0] & 0x40) == 0) { -+ if (data && (data[0] & 0x40) == 0) { - GST_DEBUG_OBJECT (dec, "copied keyframe"); - res = theora_dec_flush_decode (dec); - } --- -cgit v0.8.3-6-g21f6