Re: Freeze for LLVM packages
- To: debian-release@lists.debian.org
- Cc: Debian Ocaml Maint ML <debian-ocaml-maint@lists.debian.org>
- Subject: Re: Freeze for LLVM packages
- From: Stéphane Glondu <glondu@debian.org>
- Date: Mon, 30 Aug 2010 01:17:02 +0200
- Message-id: <4C7AEA6E.6070908@debian.org>
- In-reply-to: <AANLkTi=brCGFV=QbUjDM2=LKPCvvM6LC4_WzmA8N+PLV@mail.gmail.com>
- References: <AANLkTimJEbcKsJD+GQJ4nv5RN7bnnRujO+sRW3avkSbk@mail.gmail.com> <1281883234.29656.435.camel@kaa.jungle.aubergine.my-net-space.net> <AANLkTi=AYnG9jBpMH1+2bm_o2XxESZpvFw=zqg5E8xLA@mail.gmail.com> <1281981812.12140.372.camel@kaa.jungle.aubergine.my-net-space.net> <AANLkTinv-L4VzKBxnEbEqMSN=APvRjSvAZVdYJtvCZ0W@mail.gmail.com> <1282108396.8293.4930.camel@kaa.jungle.aubergine.my-net-space.net> <AANLkTik7TbN7vZe4MZHzs9Hsbe4cuJCb4EDEHnLAJo8J@mail.gmail.com> <88e4fe533bb849157843fac544c8e781.squirrel@adsl.funky-badger.org> <AANLkTi=OJEdUs+Rj0jpAq=qcdAEu=75q4bkEi0MT=uTe@mail.gmail.com> <AANLkTi=brCGFV=QbUjDM2=LKPCvvM6LC4_WzmA8N+PLV@mail.gmail.com>
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 to: