all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#31213] [PATCH] gnu: gst-plugins-base: Disable tests that create network
@ 2018-04-18 22:01 Roel Janssen
  2018-04-19 16:11 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Roel Janssen @ 2018-04-18 22:01 UTC (permalink / raw)
  To: 31213

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-gst-plugins-base-Disable-tests-that-create-netwo.patch --]
[-- Type: text/x-patch, Size: 3114 bytes --]

From 1036f149e2117f4db4997a7427dec4707db30e9f Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
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 <roel@gnu.org>
+
+*** 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#31213] [PATCH] gnu: gst-plugins-base: Disable tests that create network
  2018-04-18 22:01 [bug#31213] [PATCH] gnu: gst-plugins-base: Disable tests that create network Roel Janssen
@ 2018-04-19 16:11 ` Marius Bakke
  2018-04-19 17:16   ` bug#31213: " Roel Janssen
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2018-04-19 16:11 UTC (permalink / raw)
  To: Roel Janssen, 31213

[-- Attachment #1: Type: text/plain, Size: 773 bytes --]

Roel Janssen <roel@gnu.org> writes:

> 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.

I cannot reproduce this failure, and on Hydra everything is fine:

https://hydra.gnu.org/job/gnu/master/gst-plugins-base-1.12.4.x86_64-linux

Strange that it fails on your machine, it suggests some "impurity" in
the build environment.  Can you try to figure out why it does not work?

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

TCP sockets on localhost are normally fine, as long as they don't use
getaddrinfo() (I've been thinking about adding support for that).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#31213: [PATCH] gnu: gst-plugins-base: Disable tests that create network
  2018-04-19 16:11 ` Marius Bakke
@ 2018-04-19 17:16   ` Roel Janssen
  0 siblings, 0 replies; 3+ messages in thread
From: Roel Janssen @ 2018-04-19 17:16 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 31213-done


Marius Bakke <mbakke@fastmail.com> writes:

> Roel Janssen <roel@gnu.org> writes:
>
>> 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.
>
> I cannot reproduce this failure, and on Hydra everything is fine:
>
> https://hydra.gnu.org/job/gnu/master/gst-plugins-base-1.12.4.x86_64-linux
>
> Strange that it fails on your machine, it suggests some "impurity" in
> the build environment.  Can you try to figure out why it does not work?
>
>> It seems that both tests attempt to set-up or connect to a TCP socket on
>> "localhost".  Would this work in the build environment?
>
> TCP sockets on localhost are normally fine, as long as they don't use
> getaddrinfo() (I've been thinking about adding support for that).

Right..  So the patch is not needed.

Kind regards,
Roel Janssen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-19 17:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-18 22:01 [bug#31213] [PATCH] gnu: gst-plugins-base: Disable tests that create network Roel Janssen
2018-04-19 16:11 ` Marius Bakke
2018-04-19 17:16   ` bug#31213: " Roel Janssen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.