[Bug 323748] [NEW] FTBFS when ocaml present

Matthew Wilson diakopter at gmail.com
Sat Jan 31 22:58:26 UTC 2009


Public bug reported:

Binary package hint: llvm

I'm using the nightly jaunty.  When ocaml is present, the ocaml bindings
in llvm are attempted to be built, but the build fails when building the
documentation for the ocaml bindings, because (parallel) make of
docs/Makefile attempts target $(PROJ_OBJ_DIR)/ocamldoc.tar.gz
concurrently with the target regen-ocamldoc, when in fact regen-ocamldoc
is an implicit dependency of $(PROJ_OBJ_DIR)/ocamldoc.tar.gz

I did:
sudo apt-get install ocaml ocaml-base ocaml-base-nox ocaml-compiler-libs ocaml-core ocaml-doc ocamldsort ocaml-findlib ocaml-interp ocaml-libs ocamlmakefile ocaml-native-compilers ocaml-nox ocaml-source ocaml-tools ocaml-ulex ocaml-ulex08 ocamlweb
apt-get source llvm
cd llvm-2.4
debuild -us -uc

My suggestion for fixing: add ocaml/ocaml-doc as build dependencies, in
addition to applying the below patch.  Also, I recommend that Debian
packages llvm-bindings-ocaml be packaged separately for the ocaml
bindings and ocamldoc bindings documentation.

--- Makefile.orig       2009-01-31 16:43:18.000000000 -0600
+++ Makefile    2009-01-31 16:47:55.000000000 -0600
@@ -78,7 +78,7 @@
        fi
        $(Verb) $(DOXYGEN) $(PROJ_OBJ_DIR)/doxygen.cfg

-$(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFILES) $(PROJ_OBJ_DIR)/doxygen.cfg
+$(PROJ_OBJ_DIR)/doxygen.tar.gz: $(DOXYFILES) $(PROJ_OBJ_DIR)/doxygen.cfg regendoc
        $(Echo) Packaging doxygen documentation
        $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/doxygen.tar
        $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/doxygen.tar doxygen
@@ -113,7 +113,7 @@
                $(OCAMLDOC) -d $(PROJ_OBJ_DIR)/ocamldoc/html -sort -colorize-code -html \
                `$(FIND) $(LEVEL)/bindings/ocaml -name "*.odoc" -exec echo -load '{}' ';'`

-$(PROJ_OBJ_DIR)/ocamldoc.tar.gz:
+$(PROJ_OBJ_DIR)/ocamldoc.tar.gz: regen-ocamldoc
        $(Echo) Packaging ocamldoc documentation
        $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/ocamldoc.tar
        $(Verb) $(TAR) cf $(PROJ_OBJ_DIR)/ocamldoc.tar ocamldoc

** Affects: llvm (Ubuntu)
     Importance: Undecided
         Status: New

-- 
FTBFS when ocaml present
https://bugs.launchpad.net/bugs/323748
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list