[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#766456: pv: FTBFS on hurd-i386

Source: pv
Version: 1.5.7-1
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd


Currently pv FTBFS on GNU/Hurd due to two failing tests:

018-remote-format and 019-remote-cksum.

These tests require the functions msgsnd, msgrcv, msgget and msgctl,
who are not yet implemented. The attached patch solves this problem by
moving these tests up one directory level from the tests directory
before running the tests and move them back afterwards.

--- a/debian_rules	2014-08-27 02:52:25.000000000 +0200
+++ b/debian/rules	2014-10-23 10:40:04.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
+DEB_HOST_ARCH_OS        ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 	dh $@
@@ -9,3 +11,15 @@
 	dh_clean -Xmk~
+#  Functions msgsnd, msgrcv, msgget, msgctl are not yet implemented on GNU/Hurd
+ifeq (hurd,$(DEB_HOST_ARCH_OS))
+	mv tests/018-remote-format .
+	mv tests/019-remote-cksum .
+	dh_auto_test
+	mv ./018-remote-format ./tests
+	mv ./019-remote-cksum ./tests
+	dh_auto_test

Reply to: