Package: botch
Version: 0.17-3
Severity: serious
Tags: sid + patch
Justification: FTBFS
User: debian-m...@lists.debian.org
Usertags: mips-patch

Hello,

Package botch_0.17-3 FTBFS on mips, mipsel and mips64el with following error:

> atdgen -j -j-std datatypes.atd
> make[2]: atdgen: Command not found
> Makefile:130: recipe for target 'datatypes_j.ml' failed
> make[2]: *** [datatypes_j.ml] Error 127

build log:
https://buildd.debian.org/status/fetch.php?pkg=botch&arch=mipsel&ver=0.17-3&stamp=1460610554

This problem occurs because there is no atdgen binary file on mips, mips64el 
and mipsel,
instead we could use atdgen.run.

I have created and attached a patch which enable useage of atdgen.run if atdgen 
does not exist.

After applaying this patch, this problem no longer occurs, but there is the 
same problem as well as architectures i386 and amd64:
https://bugs.debian.org/827977


Regards,
Radovan
--- botch-0.17.orig/Makefile	2016-06-22 13:49:38.000000000 +0000
+++ botch-0.17/Makefile	2016-06-24 09:26:59.582651725 +0000
@@ -29,6 +29,7 @@ BIN_TOOLS:=$(BIN_PYTOOLS) $(BIN_OCTOOLS)
 MANPAGES:=$(patsubst %, doc/man/botch-%.1, $(BIN_TOOLS))
 
 OCAML_BEST ?= $(if $(wildcard /usr/bin/ocamlopt),native,byte)
+ATDGEN ?= $(if $(wildcard /usr/bin/atdgen ),atdgen,atdgen.run)
 
 PWD := $(shell pwd)
 BUILD = $(PWD)/dose/_build
@@ -127,10 +128,10 @@ doselib:
 	done
 
 %_j.ml: %.atd
-	atdgen -j -j-std $<
+	$(ATDGEN) -j -j-std $<
 
 %_t.ml: %.atd
-	atdgen -t $<
+	$(ATDGEN) -t $<
 
 .PHONY: atdgen
 atdgen: datatypes_j.ml datatypes_t.ml

Reply via email to