Bug#993858: ocaml-dune: dune-install doesn't correctly place "doc" section in Debian systems
Source: ocaml-dune
Version: 2.7.1-2
Severity: important
Dear OCaml Maintainers,
dune-install will by default install files in the "doc" section to
$prefix/doc, this is incorrect in Debian as it should be $share/doc.
This creates problems for both users and developers.
Dune >= 2.9 allows configuring the doc install path. For previous
versions, this patch must be added:
diff --git a/src/dune_rules/install.ml b/src/dune_rules/install.ml
index afa2acdad..9fd7e6779 100644
--- a/src/dune_rules/install.ml
+++ b/src/dune_rules/install.ml
@@ -209,7 +209,7 @@ module Section = struct
let libexec_root = libdir in
let share_root = Path.relative destdir "share" in
let etc_root = Path.relative destdir "etc" in
- let doc_root = Path.relative destdir "doc" in
+ let doc_root = Path.relative share_root "doc" in
{ lib_root
; libexec_root
; share_root
Note that a similar problem may exist for files in the "etc" section.
Kind regards,
Emilio
-- System Information:
Debian Release: bullseye/sid
APT prefers focal-updates
APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), (100, 'focal-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-81-lowlatency (SMP w/8 CPU cores; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE=es_ES (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Reply to: