[Pkg-ocaml-maint-commits] r2292 - trunk/packages/ocaml/trunk/debian

Sven Luther sven.luther at wanadoo.fr
Fri Dec 16 07:36:29 UTC 2005


On Thu, Dec 15, 2005 at 07:17:56PM +0100, Sven Luther wrote:
> On Thu, Dec 15, 2005 at 07:07:07PM +0100, Julien Cristau wrote:
> > On Thu, Dec 15, 2005 at 18:37:18 +0000, Sven Luther wrote:
> > 
> > > Note, it would be usefull to put the list of native supported arches in a file
> > > (/usr/lib/ocaml/<version>/native-arches maybe) which can then be used to
> > > generate control files automatically, a bit in the same way we do the rest of
> > > the substitutions.
> > > 
> > I agree, that would indeed be better than the conditional I added in
> > debian/rules.

I think we misundesrstood us some.

For ocaml proper, there should be a list of native arches, as you have done,
not sure about the targets though, and i was doing :

ifeq (,$(shell grep "ARCH=none" config/Makefile))
...build native stuff...

but having an explicit list is better.

The idea is to use this explicit list to generate the control file of ocaml :

Package: ocaml-native-compilers
Architecture: alpha amd64 arm hppa hurd-i386 i386 ia64 kfreebsd-i386 powerpc sparc

would be replaced with :

Package: ocaml-native-compilers
Architecture: ${F:OCamlNativeArches}

And the substvar be done right in gencontrol.

Now, the idea is to output this list in some file installed by the ocaml-nox
package, and have the library packages (like spamoracle) use this to generate
their own Architecture: field at gencontrol time (or even during the pre-build
debian/control generation phase if needed.

Friendly,

Sven Luther






More information about the Pkg-ocaml-maint-commits mailing list