From e680625f99b971f8c73fde27d24a8a9a54a7092d Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Fri, 20 Apr 2012 07:59:42 +0200 Subject: [PATCH] Remove files that make no sense without ocamlopt Their presence combined with dh_install --fail-missing cause FTBFS on bytecode architectures... --- debian/rules | 7 +++++++ 1 file changed, 7 insertions(+) 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 \ -- 2.30.2