Control: tag -1 +patch

This problematic is actually documented in the code:

rpc_test.go
> var (
>        tcpAddr  = "tcp://0.0.0.0:46657"
>        unixAddr = "unix:///tmp/go-rpc.sock" // NOTE: must remove file for 
> test to run again
>        websocketEndpoint = "/websocket/endpoint"
> )

Patch is attached and I also pushed a commit onto the branch 'fix-ftbfs-856834' 
at https://anonscm.debian.org/cgit/pkg-go/packages/tendermint-go-rpc.git

Would be great if someone uploaded the (fixed) package.

Greetings
Jack
From c39788089e875d2cc0e8da1dc2f1c380cbbc6f81 Mon Sep 17 00:00:00 2001
From: Jack Henschel <jack...@mailbox.org>
Date: Mon, 6 Mar 2017 11:28:47 +0100
Subject: [PATCH] Fix FTBFS #856834

The location of the test socket is static. When the test is run
multiple times, the socket already exists (aka can't be created),
hence the test fails.
This can be fixed by deleting the socket before every run.
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index 0ef355b..9962d65 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,7 @@
 override_dh_auto_install:
 	dh_auto_install
 	rm -rf $(CURDIR)/debian/golang-github-tendermint-go-rpc-dev/usr/bin
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -f /tmp/go-rpc.sock
-- 
2.11.0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to