From: Stephane Glondu Date: Fri, 20 Apr 2012 05:59:42 +0000 (+0200) Subject: Remove files that make no sense without ocamlopt X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~244 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e680625f99b971f8c73fde27d24a8a9a54a7092d;p=ocaml.git Remove files that make no sense without ocamlopt Their presence combined with dh_install --fail-missing cause FTBFS on bytecode architectures... --- diff --git a/debian/rules b/debian/rules index 234885b6..db89c5a0 100755 --- a/debian/rules +++ b/debian/rules @@ -214,6 +214,13 @@ ifeq (,$(DEB_TEST_BUILD_PREFIX)) $(INSTDIR)/share/man/man1/ocamlopt.opt.1 \ $(INSTDIR)/share/man/man1/ocamlc.opt.1 \ $(INSTDIR)/bin/camlp4boot +ifeq ($(OCAML_HAVE_OCAMLOPT),no) +# Remove files that make no sense without ocamlopt + rm -f \ + $(INSTDIR)/share/man/man1/ocamloptp.1 \ + $(INSTDIR)/share/man/man1/ocamlopt.1 \ + $(INSTDIR)/bin/ocamloptp +endif # Dispatch files with dh_install cd debian && \ for u in ocaml ocaml-nox; do \