caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: Stefano Zacchiroli <zack@debian.org>
Cc: Inria Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] Re: ocaml support in autotools
Date: Sat, 05 Aug 2006 10:36:16 +1000	[thread overview]
Message-ID: <1154738176.5926.89.camel@rosella.wigram> (raw)
In-Reply-To: <20060804124813.GC7146@aquarium.takhisis.invalid>

On Fri, 2006-08-04 at 14:48 +0200, Stefano Zacchiroli wrote:
> On Fri, Aug 04, 2006 at 03:32:26PM +1000, skaller wrote:
> > BTW: anyone working on this should examine the Debian Ocaml Policy.
> > Sorry no link off hand, ask on
> 
> The policy is available on line at this URL:
> 
>   http://pkg-ocaml-maint.alioth.debian.org/ocaml_packaging_policy.html/index.html

Thanks..

> > At least any macros should work well with Debian packagers
> > requirements, people there have high expertise packaging Ocaml
> > stuff.

[]

> Still, I don't see the relationship of the policy with ocaml autotools
> support. 

I mention the policy document because it provides context which
may help factor autotools macros/variables etc.

There is a relationship: Debian packagers have to deal with
people's build systems.

> You may want to perform such a check at configure time, to ensure that
> linking will succeed, but IMO it would be overkilling and not really
> needed. After all the target user of autotools is a developer, not the
> final user. 

That's fine when everything works.. the problem comes when
something goes wrong. Then the person with the error is going
to try all sorts of things to solve the problem .. using
the latest cvs/svn repository version for example .. which
typically only have the autotools original sources, not
the generated scripts.

Perhaps not on Debian or GODI .. but it is common for Ocaml 
programmers to get inconsistent libraries simply because there's
no way to keep track of what libraries you have -- happens
to me all the time when I upgrade (in fact, its a bug in 
the Ocaml install procedure itself .. it doesn't properly
clean out the installation target)

So maybe a trial link is overkill .. when it succeeds:
it might be useful is it fails though.

In any case, this kind of thing is precisely what configuration
scripts actually do. Autoconf generated script regularly
compiles, links, and even runs C programs .. and so does
my Python hosted config script. For example we had some
code failing and it turned out our test of Linux epoll
was faulty. We just tried to compile a file using
create_epoll() but that compiles and links on Linux 2.4 kernels..
it doesn't work though. You actually have to executed the function
and check it doesn't return -1 to know if you have epoll support.

Exactly how one would do this in a cross compilation environment
I don't know (Felix is a cross-cross compiler). 

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net


  reply	other threads:[~2006-08-05  0:36 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 16:14 Guillaume Rousse
2006-08-01  8:03 ` [Caml-list] " Stefano Zacchiroli
2006-08-01  8:15 ` Erik de Castro Lopo
2006-08-01  8:30   ` Christian Lindig
2006-08-01  8:51     ` Erik de Castro Lopo
2006-08-01 11:30     ` Hendrik Tews
2006-08-01 12:32       ` skaller
2006-08-01 12:50         ` Guillaume Rousse
2006-08-01 13:13           ` skaller
2006-08-02 12:46     ` Guillaume Rousse
2006-08-02 14:03       ` Christian Lindig
2006-08-01 11:27 ` Hendrik Tews
2006-08-01 11:51   ` Erik de Castro Lopo
2006-08-02 12:28   ` Guillaume Rousse
2006-08-01 17:37 ` Grigory Batalov
2006-08-02 12:29   ` [Caml-list] " Guillaume Rousse
     [not found] ` <44CE6483.9070205@tepkom.ru>
2006-08-03 12:56   ` [Caml-list] " Guillaume Rousse
2006-08-03 21:10     ` Erik de Castro Lopo
2006-08-04  0:40     ` Grigory Batalov
2006-08-04  5:32       ` [Caml-list] " skaller
2006-08-04  5:41         ` skaller
2006-08-04 12:38           ` Guillaume Rousse
2006-08-04  8:41         ` Anil Madhavapeddy
2006-09-08 14:52           ` Guillaume Rousse
2006-08-04 12:48         ` Stefano Zacchiroli
2006-08-05  0:36           ` skaller [this message]
2006-08-06  9:22             ` Stefano Zacchiroli
2006-09-08 14:52         ` Guillaume Rousse
2006-08-03 15:10   ` [Caml-list] " Guillaume Rousse
2006-08-03 21:12     ` Erik de Castro Lopo
2006-08-04 12:26       ` Guillaume Rousse
2006-08-04  1:15     ` Grigory Batalov
2006-08-03 22:42 ` [Caml-list] " Sylvain Le Gall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1154738176.5926.89.camel@rosella.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    --cc=zack@debian.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).