[arch-commits] Commit in gst-plugins-good/repos (6 files)

Jan Steffens heftig at archlinux.org
Sun Oct 9 13:53:00 UTC 2016


    Date: Sunday, October 9, 2016 @ 13:53:00
  Author: heftig
Revision: 277960

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  gst-plugins-good/repos/testing-i686/
  gst-plugins-good/repos/testing-i686/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch
    (from rev 277959, gst-plugins-good/trunk/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch)
  gst-plugins-good/repos/testing-i686/PKGBUILD
    (from rev 277959, gst-plugins-good/trunk/PKGBUILD)
  gst-plugins-good/repos/testing-x86_64/
  gst-plugins-good/repos/testing-x86_64/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch
    (from rev 277959, gst-plugins-good/trunk/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch)
  gst-plugins-good/repos/testing-x86_64/PKGBUILD
    (from rev 277959, gst-plugins-good/trunk/PKGBUILD)

-------------------------------------------------------------------+
 testing-i686/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch   |   91 ++++++++++
 testing-i686/PKGBUILD                                             |   64 +++++++
 testing-x86_64/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch |   91 ++++++++++
 testing-x86_64/PKGBUILD                                           |   64 +++++++
 4 files changed, 310 insertions(+)

Copied: gst-plugins-good/repos/testing-i686/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch (from rev 277959, gst-plugins-good/trunk/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch)
===================================================================
--- testing-i686/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch	                        (rev 0)
+++ testing-i686/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch	2016-10-09 13:53:00 UTC (rev 277960)
@@ -0,0 +1,91 @@
+From 944e86db955fa48137a1ac6ee593f2d23681c8f6 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Sun, 9 Oct 2016 15:23:51 +0200
+Subject: [PATCH] tests: Fix level test in CK_FORK=no mode
+
+The tests accumulate buffers in GstCheck's buffers list, and the list is
+not (consistently) reset between tests. Do that and remove the now
+conflicting unrefs for outbuffers.
+---
+ tests/check/elements/level.c | 9 +--------
+ 1 file changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/tests/check/elements/level.c b/tests/check/elements/level.c
+index f05370f0ff72709a..b17ea167f42b3291 100644
+--- a/tests/check/elements/level.c
++++ b/tests/check/elements/level.c
+@@ -96,6 +96,7 @@ cleanup_level (GstElement * level)
+ {
+   GST_DEBUG ("cleanup_level");
+ 
++  gst_check_drop_buffers ();
+   gst_pad_set_active (mysrcpad, FALSE);
+   gst_pad_set_active (mysinkpad, FALSE);
+   gst_check_teardown_src_pad (level);
+@@ -194,7 +195,6 @@ GST_START_TEST (test_ref_counts)
+   gst_element_set_bus (level, NULL);
+   ASSERT_OBJECT_REFCOUNT (bus, "bus", 1);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   fail_unless (gst_element_set_state (level,
+           GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+   ASSERT_OBJECT_REFCOUNT (level, "level", 1);
+@@ -241,7 +241,6 @@ GST_START_TEST (test_message_is_valid)
+   gst_object_unref (bus);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+-  gst_check_drop_buffers ();
+ }
+ 
+ GST_END_TEST;
+@@ -298,7 +297,6 @@ GST_START_TEST (test_int16)
+   gst_message_unref (message);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -377,7 +375,6 @@ GST_START_TEST (test_int16_panned)
+   gst_bus_set_flushing (bus, TRUE);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -436,7 +433,6 @@ GST_START_TEST (test_float)
+   gst_message_unref (message);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -503,7 +499,6 @@ GST_START_TEST (test_message_on_eos)
+   gst_message_unref (message);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -543,7 +538,6 @@ GST_START_TEST (test_message_count)
+ 
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -591,7 +585,6 @@ GST_START_TEST (test_message_timestamps)
+ 
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+-- 
+2.10.0
+

Copied: gst-plugins-good/repos/testing-i686/PKGBUILD (from rev 277959, gst-plugins-good/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-10-09 13:53:00 UTC (rev 277960)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gst-plugins-good
+pkgver=1.9.90+8+g6542edd
+pkgrel=1
+pkgdesc="GStreamer Multimedia Framework Good Plugins"
+url="https://gstreamer.freedesktop.org/"
+arch=(i686 x86_64)
+license=(LGPL)
+depends=(libpulse jack libsoup gst-plugins-base-libs wavpack aalib taglib libdv libshout libvpx
+         gdk-pixbuf2 libcaca libavc1394 libiec61883 libxdamage v4l-utils cairo libgudev)
+makedepends=(gstreamer speex flac libraw1394 python gtk-doc autoconf-archive git)
+options=(!emptydirs)
+_commit=6542edd9098aad98c0ac18f0ba5a4650932e14e1  # master
+source=("git://anongit.freedesktop.org/gstreamer/gst-plugins-good#commit=$_commit"
+        "gst-common::git://anongit.freedesktop.org/gstreamer/common"
+        0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch)
+sha256sums=('SKIP'
+            'SKIP'
+            'bff7a50820ddd3696c8a3bdb2e556c74aaf2eeac3be633801544cb4a48b5eeca')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+
+  patch -Np1 -i ../0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch
+
+  git submodule init
+  git config --local submodule.common.url "$srcdir/gst-common"
+  git submodule update
+
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
+    --with-package-name="GStreamer Good Plugins (Arch Linux)" \
+    --with-package-origin="http://www.archlinux.org/" \
+    --enable-experimental --enable-gtk-doc --disable-static
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  cd $pkgname
+  # souphttpsrc tests break when libcheck forks
+  CK_FORK=no make check
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}

Copied: gst-plugins-good/repos/testing-x86_64/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch (from rev 277959, gst-plugins-good/trunk/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch)
===================================================================
--- testing-x86_64/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch	                        (rev 0)
+++ testing-x86_64/0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch	2016-10-09 13:53:00 UTC (rev 277960)
@@ -0,0 +1,91 @@
+From 944e86db955fa48137a1ac6ee593f2d23681c8f6 Mon Sep 17 00:00:00 2001
+From: "Jan Alexander Steffens (heftig)" <jan.steffens at gmail.com>
+Date: Sun, 9 Oct 2016 15:23:51 +0200
+Subject: [PATCH] tests: Fix level test in CK_FORK=no mode
+
+The tests accumulate buffers in GstCheck's buffers list, and the list is
+not (consistently) reset between tests. Do that and remove the now
+conflicting unrefs for outbuffers.
+---
+ tests/check/elements/level.c | 9 +--------
+ 1 file changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/tests/check/elements/level.c b/tests/check/elements/level.c
+index f05370f0ff72709a..b17ea167f42b3291 100644
+--- a/tests/check/elements/level.c
++++ b/tests/check/elements/level.c
+@@ -96,6 +96,7 @@ cleanup_level (GstElement * level)
+ {
+   GST_DEBUG ("cleanup_level");
+ 
++  gst_check_drop_buffers ();
+   gst_pad_set_active (mysrcpad, FALSE);
+   gst_pad_set_active (mysinkpad, FALSE);
+   gst_check_teardown_src_pad (level);
+@@ -194,7 +195,6 @@ GST_START_TEST (test_ref_counts)
+   gst_element_set_bus (level, NULL);
+   ASSERT_OBJECT_REFCOUNT (bus, "bus", 1);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   fail_unless (gst_element_set_state (level,
+           GST_STATE_NULL) == GST_STATE_CHANGE_SUCCESS, "could not set to null");
+   ASSERT_OBJECT_REFCOUNT (level, "level", 1);
+@@ -241,7 +241,6 @@ GST_START_TEST (test_message_is_valid)
+   gst_object_unref (bus);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+-  gst_check_drop_buffers ();
+ }
+ 
+ GST_END_TEST;
+@@ -298,7 +297,6 @@ GST_START_TEST (test_int16)
+   gst_message_unref (message);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -377,7 +375,6 @@ GST_START_TEST (test_int16_panned)
+   gst_bus_set_flushing (bus, TRUE);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -436,7 +433,6 @@ GST_START_TEST (test_float)
+   gst_message_unref (message);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -503,7 +499,6 @@ GST_START_TEST (test_message_on_eos)
+   gst_message_unref (message);
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -543,7 +538,6 @@ GST_START_TEST (test_message_count)
+ 
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+@@ -591,7 +585,6 @@ GST_START_TEST (test_message_timestamps)
+ 
+   gst_element_set_bus (level, NULL);
+   gst_object_unref (bus);
+-  gst_buffer_unref (outbuffer);
+   gst_element_set_state (level, GST_STATE_NULL);
+   cleanup_level (level);
+ }
+-- 
+2.10.0
+

Copied: gst-plugins-good/repos/testing-x86_64/PKGBUILD (from rev 277959, gst-plugins-good/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-10-09 13:53:00 UTC (rev 277960)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gst-plugins-good
+pkgver=1.9.90+8+g6542edd
+pkgrel=1
+pkgdesc="GStreamer Multimedia Framework Good Plugins"
+url="https://gstreamer.freedesktop.org/"
+arch=(i686 x86_64)
+license=(LGPL)
+depends=(libpulse jack libsoup gst-plugins-base-libs wavpack aalib taglib libdv libshout libvpx
+         gdk-pixbuf2 libcaca libavc1394 libiec61883 libxdamage v4l-utils cairo libgudev)
+makedepends=(gstreamer speex flac libraw1394 python gtk-doc autoconf-archive git)
+options=(!emptydirs)
+_commit=6542edd9098aad98c0ac18f0ba5a4650932e14e1  # master
+source=("git://anongit.freedesktop.org/gstreamer/gst-plugins-good#commit=$_commit"
+        "gst-common::git://anongit.freedesktop.org/gstreamer/common"
+        0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch)
+sha256sums=('SKIP'
+            'SKIP'
+            'bff7a50820ddd3696c8a3bdb2e556c74aaf2eeac3be633801544cb4a48b5eeca')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+
+  patch -Np1 -i ../0001-tests-Fix-level-test-in-CK_FORK-no-mode.patch
+
+  git submodule init
+  git config --local submodule.common.url "$srcdir/gst-common"
+  git submodule update
+
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib \
+    --with-package-name="GStreamer Good Plugins (Arch Linux)" \
+    --with-package-origin="http://www.archlinux.org/" \
+    --enable-experimental --enable-gtk-doc --disable-static
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  cd $pkgname
+  # souphttpsrc tests break when libcheck forks
+  CK_FORK=no make check
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list