[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#588978: ocaml-nox: ocamlbuild cannot handle symlink loops



Package: ocaml-nox
Version: 3.11.2-1
Severity: normal

ocamlbuild enters an infinite loop if a symlink creates a cycle in the source directory.

To produce the problem:

1. cd to the source directory of a project using ocamlbuild
2. do "ln -s . loop"
3. run ocamlbuild

Ironically, I discovered this while trying to prevent *my* OCaml code
from exhibiting this same problem.  When I created a cycle to test it, I
couldn't build the program any more :-)

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ocaml-nox depends on:
ii  binutils                  2.20.1-11      The GNU assembler, linker and bina
ii  gcc                       4:4.4.4-2      The GNU C compiler
ii  libc6                     2.11.2-2       Embedded GNU C Library: Shared lib
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libncurses5-dev           5.7+20100313-2 developer's libraries and docs for
ii  ocaml-base-nox [ocaml-bas 3.11.2-1       Runtime system for OCaml bytecode 
ii  ocaml-interp              3.11.2-1       OCaml interactive interpreter and 

Versions of packages ocaml-nox recommends:
pn  camlp4                        <none>     (no description available)
ii  file                          5.04-2     Determines file type using "magic"

Versions of packages ocaml-nox suggests:
pn  libgdbm-dev                   <none>     (no description available)
ii  ocaml-doc                     3.11-1     Documentation for Objective Caml
ii  tuareg-mode                   1:2.0.1-1  An emacs-mode for ocaml programs

-- no debconf information



Reply to: