Subject: [PATCH] gnu: gst-plugins-base: Disable tests that create network

From: Roel Janssen <[email-masked]>
Date: Thu, 19 Apr 2018 00:01:23 +0200

Dear Guix,

The build for gst-plugins-base is failing, breaking the builds of quite
a few dependent packages.  The attached patch disables the two tests
that are failing.

It seems that both tests attempt to set-up or connect to a TCP socket on
"localhost".  Would this work in the build environment?

Is it OK to apply the following patch to fix the build for this package?

Kind regards,
Roel Janssen

>From 1036f149e2117f4db4997a7427dec4707db30e9f Mon Sep 17 00:00:00 2001
From: Roel Janssen <[email-masked]>
Date: Wed, 18 Apr 2018 23:55:23 +0200
Subject: [PATCH] gnu: gst-plugins-base: Disable tests that create network
 connections.

* gnu/local.mk: Register patch.
* gnu/packages/gstreamer.scm: Add patch.
* gnu/packages/patches/gst-plugins-base-disable-tcp-tests.patch: New file.
---
 gnu/local.mk                                  |  1 +
 gnu/packages/gstreamer.scm                    |  3 +-
 .../gst-plugins-base-disable-tcp-tests.patch  | 34 +++++++++++++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 gnu/packages/patches/gst-plugins-base-disable-tcp-tests.patch

diff --git a/gnu/local.mk b/gnu/local.mk
index 056a46cb7..f2e041d05 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -750,6 +750,7 @@ dist_patch_DATA =						\
   %D%/packages/patches/grep-timing-sensitive-test.patch		\
   %D%/packages/patches/groff-source-date-epoch.patch		\
   %D%/packages/patches/gsl-test-i686.patch			\
+  %D%/packages/patches/gst-plugins-base-disable-tcp-tests.patch	\
   %D%/packages/patches/gspell-dash-test.patch			\
   %D%/packages/patches/guile-1.8-cpp-4.5.patch			\
   %D%/packages/patches/guile-2.2-default-utf8.patch		\
diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 6747c388d..33c4e04cd 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -157,7 +157,8 @@ This package provides the core library and elements.")
                           name "-" version ".tar.xz"))
       (sha256
        (base32
-        "10i255q7i8an1hxz3szb36x1jcs9nfdy511pj2wg24h2vw1nnc2c"))))
+        "10i255q7i8an1hxz3szb36x1jcs9nfdy511pj2wg24h2vw1nnc2c"))
+      (patches (search-patches "gst-plugins-base-disable-tcp-tests.patch"))))
     (build-system gnu-build-system)
     (outputs '("out" "doc"))
     (propagated-inputs
diff --git a/gnu/packages/patches/gst-plugins-base-disable-tcp-tests.patch b/gnu/packages/patches/gst-plugins-base-disable-tcp-tests.patch
new file mode 100644
index 000000000..e58081bd4
--- /dev/null
+++ b/gnu/packages/patches/gst-plugins-base-disable-tcp-tests.patch
@@ -0,0 +1,34 @@
+This patch disables the rtspconnection test and the pipelines/tcp test because
+it attempts to set up a network connection.
+
+Patch by Roel Janssen <[email-masked]>
+
+*** a/tests/check/Makefile.am	2017-05-15 17:46:23.000000000 +0200
+--- b/tests/check/Makefile.am	2018-04-18 23:36:45.691293186 +0200
+***************
+*** 179,185 ****
+  
+  if USE_PLUGIN_TCP
+  if USE_PLUGIN_APP
+! check_tcp = elements/multifdsink elements/multisocketsink pipelines/tcp
+  else
+  check_tcp = elements/multifdsink elements/multisocketsink
+  endif
+--- 179,185 ----
+  
+  if USE_PLUGIN_TCP
+  if USE_PLUGIN_APP
+! check_tcp = elements/multifdsink elements/multisocketsink
+  else
+  check_tcp = elements/multifdsink elements/multisocketsink
+  endif
+***************
+*** 219,225 ****
+  	libs/rtpbasedepayload \
+  	libs/rtpbasepayload \
+  	libs/rtsp \
+- 	libs/rtspconnection \
+  	libs/sdp \
+  	libs/tag \
+  	libs/video \
+--- 219,224 ----
-- 
2.17.0