On 20/07/2017 22:53, Hendrik Tews wrote: > I am looking into packaging topkg ... The topkg build system does > not seem to support installation (i.e., make install) but leaves > an opam install file > (https://opam.ocaml.org/doc/Manual.html#packagenameinstall) > behind, which can be used by opam-installer to install files. > > Do we have a package that uses opam-installer for installation? I > guess I need something like > > override_dh_auto_install: > opam-installer --prefix ./debian/package topkg.install > > in debian/rules?
$ grep opam-installer */debian/rules > bin-prot/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) --stubsdir=.$(OCAML_DLL_DIR) bin_prot.install > eliom/debian/rules: opam-installer --prefix=debian/tmp/usr --libdir=$(subst > /usr/,,$(OCAML_STDLIB_DIR)) --mandir=share/man --docdir=share/doc > eliom.install > fieldslib/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) fieldslib.install > js-build-tools/debian/rules: opam-installer > --prefix=debian/libjs-build-tools-ocaml-dev --libdir=.$(OCAML_STDLIB_DIR) > js-build-tools.install > ppx-core/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) ppx_core.install > ppx-driver/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) ppx_driver.install > ppx-optcomp/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) ppx_optcomp.install > ppx-sexp-conv/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) ppx_sexp_conv.install > ppx-type-conv/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) ppx_type_conv.install > react/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) --docdir=usr/share/doc react.install > reactivedata/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) reactiveData.install > sexplib310/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) sexplib.install > variantslib/debian/rules: opam-installer --prefix=debian/tmp > --libdir=.$(OCAML_STDLIB_DIR) variantslib.install But this adds opam to bdeps, whitch itself bdeps on cmdliner... This may pose problems on bytecode architectures during transitions... at least if we add a runtime package to cmdliner. By the way, it makes me think that the dependencies automatically filled by dh_ocaml are too coarse. If pkg ocaml-depends on Module and provides it, there is (probably) no need to depend on libmodule-ocaml. Cheers, -- Stéphane

