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

Re: sbuild vs relative paths



Stefano Zacchiroli <zack@debian.org> writes:

> Dear mentors, 
>   the last version of ocaml I uploaded FTBFS on all autobuilders but
> build properly on my unstable and in a pbuilder chroot.
>
> According to the build logs (e.g. [1]) the FTFBS happened at this point:
>
>   if [ -x ./ocamlopt ]; then                                      \
>           /usr/bin/make -C ocaml-md5sums/ opt;                            \
>   else                                                            \
>           /usr/bin/make -C ocaml-md5sums/ all;                            \
>   fi
>   make[1]: Entering directory `/build/buildd/ocaml-3.08.3/ocaml-md5sums'
>   ../ocamlopt -I ../otherlibs/unix -I ../otherlibs/str unix.cmxa str.cmxa -o ocaml-md5sums.opt ocaml-md5sums.ml
>   make[1]: ../ocamlopt: Command not found
>   make[1]: *** [ocaml-md5sums.opt] Error 127
>
> As you can see the test verifies that there exists an "ocamlopt"
> executable and then enters a subdir from which "../ocamlopt" is invoked
> unsuccessfully.
>
> Am I missing something important about sbuild and its setup on the
> various autobuilders?

ocamlopt is a '/usr/bin/ocamlrun script text executable' and most
likely that error means the interpreter '/usr/bin/ocamlrun' could not
be found.

Have you thought about using '../ocamlrun ../ocamlopt'?

MfG
        Goswin



Reply to: