[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#666257: libderiving-ocaml: Programs using libderiving fail to link (archive missing in META)



Package: libderiving-ocaml
Version: 0.1.1a-3+b1
Severity: normal

Dear Maintainer,

There are two problems with the META file in /usr/lib/ocaml/deriving/META

  - The archives aren't mentioned, so ocamlfind doesn't try bringing
    in the appropriate libraries.

  - The files depend on the num package which is not mentioned.

With this version of the META file, I am able to link the program
below.  Without the archive lines, it fails to link because of a
reference to the Show module.  Without the 'requires' line, it fails
to link because of a reference to Num.

----------------------------------------------------------------------
version = "0.1.1a-3+b1"
name = "deriving"
requires = "num"
description = "deriving functions"
archive(byte) = "deriving.cma"
archive(native) = "deriving.cmxa"
----------------------------------------------------------------------
type foo = { a: int } deriving (Show)
let () = Printf.printf "%s\n" (Show.show<foo> {a=42})
----------------------------------------------------------------------

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libderiving-ocaml depends on:
ii  ocaml-base-nox [ocaml-base-nox-3.12.1]  3.12.1-2

Versions of packages libderiving-ocaml recommends:
ii  ocaml-findlib  1.2.8+debian-1

libderiving-ocaml suggests no packages.

-- no debconf information



Reply to: