Fwd: [Bug 323748] [NEW] FTBFS when ocaml present

Matthew Wilson diakopter at gmail.com
Sat Jan 31 23:53:07 UTC 2009


fyi..

---------- Forwarded message ----------
From: Matthew Wilson <diakopter at gmail.com>
Date: Sat, Jan 31, 2009 at 4:58 PM
Subject: [Bug 323748] [NEW] FTBFS when ocaml present
To: diakopter at gmail.com


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 direct subscriber
of the bug.

Status in "llvm" source package in Ubuntu: New

Bug description:
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20090131/a0276abb/attachment.htm 


More information about the Pkg-llvm-team mailing list