Le 29/08/2010 23:10, Arthur Loiret a écrit :
> There you go:
> 
> http://people.debian.org/~aloiret/squeeze/llvm/llvm-2.6_2.6-10.dsc
> http://people.debian.org/~aloiret/squeeze/llvm/llvm-2.6_2.6-10.debdiff

From the diff:
>  define libllvm-ocaml-dev_extra_binary
>       if test "x$*" = "xlibllvm-ocaml-dev" ; then \
> -       cp $(D)/debian/$*.META 
> $(D)/debian/$*/$(OCAML_STDLIB_DIR)/METAS/META.llvm ; \
> +             cp $(D)/debian/$(strip $(call pkgname,$*)).META 
> $(D)/debian/$(strip $(call 
> pkgname,$*))/$(OCAML_STDLIB_DIR)/METAS/META.llvm-$(UVERSION) ; \
>       fi
>  endef

This won't work because of "." in $(UVERSION). "." is reserved for
delimiting subpackages. You should replace them with something else
(e.g. "_"), or drop punctuation altogether (as in META.llvm27). And the
contents should also reflect the (findlib) package name.

Actually, the same applies for llvm-2.7 as well... The META files should
be fixed for both, or dropped. They are useless as they are (it was fine
when the package name was versionless).

Attached is a (tentatively) fixed META.llvm-2_7 file. Beware that the
"directory" variable refers to the actual directory (here, llvm-2.7),
and the "requires" refer to the package name (i.e. the extension of the
META file, here llvm-2_7 or whatever you choose).

And by the way, "libllvm-ocaml-2.7-dev" doesn't respect OCaml packaging
policy (which is still work in progress...) and is not handled by
dh_ocaml (the virtual package with ABI hash is not provided)...
something like "libllvm-2.7-ocaml-dev" would be better.


Cheers,

-- 
Stéphane
description = "Low Level Virtual Machine bindings"
version = "2.7"

directory = "+llvm-2.7"

archive(byte)   = "llvm.cma"
archive(native) = "llvm.cmxa"
linkopts = "-cclib -lstdc++ -cclib -lllvm"

package "executionengine"
(
  requires = "llvm-2_7"
  version = "2.7"
  archive(native) = "llvm_executionengine.cmxa"
  archive(byte)   = "llvm_executionengine.cma"
  linkopts = "-cclib -lllvm_executionengine"
)

package "target"
(
  requires = "llvm-2_7"
  version = "2.7"
  archive(native) = "llvm_target.cmxa"
  archive(byte)   = "llvm_target.cma"
  linkopts = "-cclib -lllvm_target"
)

package "scalar_opts"
(
  requires = "llvm-2_7 llvm-2_7.target"
  version = "2.7"
  archive(native) = "llvm_scalar_opts.cmxa"
  archive(byte)   = "llvm_scalar_opts.cma"
  linkopts = "-cclib -lllvm_scalar_opts"
)

package "analysis"
(
  requires = "llvm-2_7"
  version = "2.7"
  archive(native) = "llvm_analysis.cmxa"
  archive(byte)   = "llvm_analysis.cma"
  linkopts = "-cclib -lllvm_analysis"
)

package "bitwriter"
(
  requires = "llvm-2_7"
  version = "2.7"
  archive(native) = "llvm_bitwriter.cmxa"
  archive(byte)   = "llvm_bitwriter.cma"
  linkopts = "-cclib -lllvm_bitwriter"
)

package "bitreader"
(
  requires = "llvm-2_7 llvm-2_7.bitwriter"
  version = "2.7"
  archive(native) = "llvm_bitreader.cmxa"
  archive(byte)   = "llvm_bitreader.cma"
  linkopts = "-cclib -lllvm_bitreader"
)

Reply via email to