Re: ocaml-findlib cannot compile on m68k
On Wed, Apr 11, 2001 at 11:50:54PM +0200, Stefano Zacchiroli wrote:
> On Wed, Apr 11, 2001 at 09:55:42PM +0200, Sven LUTHER wrote:
> > > what do you think about:
> > >
> > > -$(MAKE) libs_opt;
> >
> >
> > mmm, this will try to build libs_opt, and not exit if an error was
> > encountered, isn't it ?
>
> not exactly.
> The debian/rules file is a Makefile, that run 'make libs_opt' that is
> another makefile.
> When 'make libs_opt' try to invoke ocamlopt it exit when an error, so no
> time consuming unneeded compilation, but the calling makefile
> (debian/rules) not exit due to strange error code from executed command.
Yes, but what if the upstream makefiles does lots of things before calling
ocamlopt for the first time ?
> I prefer this solution cause it is more flexible, as an example the
> native code compiler may change name but may continue to be not
> available on m68k architecture.
Yes, this may be a worry, but i don't think this will happen. In any case, if
this happen, then i will put a wrapper or symlink there, so that this solution
may continue to work.
> Btw I've uploaded ocamlfind whith this solution and I hope it works
> well ... but if all of you think that the test on ocamlfind is better I
> change the debian/rules file....
No, let's see what happens.
Another idea would be to split the package between bytecode and nativecode,
and have a Architecture field mapping to all except m68k for the native code
version. Or maybe list all the supported archs instead.
Friendly,
Sven Luther
Reply to: