Bug#1125673: ghc: Please do not ship files under /var
Gioele Barabucci
gioele at svario.it
Mon Apr 20 12:54:26 BST 2026
On 20/04/26 08:16, Stéphane Glondu wrote:
> /var/lib/ocaml currently contains static data, computed at build time
> over build artifacts, that are used to easy the work of dh_ocaml (and
> lintian). It is similar in spirit to dune-package files that exist
> outside Debian (and are installed in /usr/lib).
>
> What would be the canonical location for that? I'm thinking about
> "$(ocamlc -where)/.dh-ocaml" (aka "/usr/lib/$arch/ocaml/.dh-ocaml"), or
> spreading each package's data in each package's dir in /usr/lib, e.g.
> "$(ocamlc -where)/$pkg/.dh-ocaml". Any opinions?
Bikeshedding!
May I suggest a third option: `/usr/lib/$arch/dh-ocaml/$pkg/`?
A hidden directory in /usr/lib sounds... problematic? (for the lack of a
better word).
Also dh-ocaml is related to ocaml, but is not ocaml. Debian's Ruby uses
`/usr/lib/$arch/rubygems-integration/$api-ver/gems/$pkg`.
Also, dh-ocaml is not the only program using the information in these
files, lintian uses it as well. Perhaps something more generic like
`/usr/lib/$arch/ocaml-integration/$pkg/` and
`/usr/lib/$arch/ghc-integration/$pkg/`?
Regards,
--
Gioele Barabucci
More information about the Pkg-haskell-maintainers
mailing list