From: Johannes Schauer <josch@debian.org>
Subject: print a keepalive message to not abort builds on slow architectures without native ocaml

--- a/Makefile
+++ b/Makefile
@@ -121,7 +121,14 @@ atdgen: datatypes_j.ml datatypes_t.ml
 .PHONY: test-default
 test-default: $(OCAML_BEST)
 	rm -rf tmp out
-	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --jobs=2 --drop-b-d-indep amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z
+	sh -c 'starttime=`date +%s`; \
+		while sleep 300; do \
+			now=`date +%s`; \
+			diff=$$(((now-starttime)/60)); \
+			echo "running for $$diff minutes and still alive"; \
+		done' & PID=$$!; \
+	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --jobs=2 --drop-b-d-indep amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z; \
+	kill $$PID
 	for f in tests/default/tmp/* tmp/*; do basename "$$f"; done | sort | uniq | while read f; do \
 		echo checking $$f; \
 		case "$$f" in \
@@ -140,7 +147,14 @@ test-default: $(OCAML_BEST)
 .PHONY: test-selfcontained
 test-selfcontained: $(OCAML_BEST)
 	rm -rf tmp out
-	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --drop-b-d-indep --optgraph --latest --clean --self-contained --optuniv --sapsb --strong --no-drop amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z
+	sh -c 'starttime=`date +%s`; \
+		while sleep 300; do \
+			now=`date +%s`; \
+			diff=$$(((now-starttime)/60)); \
+			echo "running for $$diff minutes and still alive"; \
+		done' & PID=$$!; \
+	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --drop-b-d-indep --optgraph --latest --clean --self-contained --optuniv --sapsb --strong --no-drop amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z; \
+	kill $$PID
 	for f in tests/selfcontained/tmp/* tmp/*; do basename "$$f"; done | sort | uniq | while read f; do \
 		echo checking $$f; \
 		case "$$f" in \
@@ -161,7 +175,14 @@ test-cross: $(OCAML_BEST)
 	rm -rf tmp out
 	mkdir out
 	cp tests/cross-ma.diff out/ma.diff
-	./tools/cross.sh --debug --verbose --develop --output=out --tmp=tmp --drop-b-d-indep --optgraph --jobs=2 amd64 armhf tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z
+	sh -c 'starttime=`date +%s`; \
+		while sleep 300; do \
+			now=`date +%s`; \
+			diff=$$(((now-starttime)/60)); \
+			echo "running for $$diff minutes and still alive"; \
+		done' & PID=$$!; \
+	./tools/cross.sh --debug --verbose --develop --output=out --tmp=tmp --drop-b-d-indep --optgraph --jobs=2 amd64 armhf tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z; \
+	kill $$PID
 	for f in tests/cross/tmp/* tmp/*; do basename "$$f"; done | sort | uniq | while read f; do \
 		echo checking $$f; \
 		case "$$f" in \
