Skip to content

opam breaks man #3391

@RalfJung

Description

@RalfJung

If your issue concerns a package not building, please report to
https://github.com/ocaml/opam-repository/issues or to the package maintainer
unless you are confident it is an issue in the opam tool itself.

When no MANPATH is set, running the opam init script sets the MANPATH in a way that it is broken. This breaks every man page.

$ echo $MANPATH
/home/r/.opam/system/man:/home/r/.opam/system/man
$ man git
No manual entry for git
See 'man 7 undocumented' for help when manual pages are not available.
$ MANPATH= man git
# <man page appears>
# opam config report
# opam-version      2.0.0~rc # but this is really rc2
# self-upgrade      no
# system            arch=x86_64 os=linux os-distribution=debian os-version=testing
# solver            builtin-mccs+glpk
# install-criteria  -removed,-count[version-lag,request],-count[version-lag,changed],-changed
# upgrade-criteria  -removed,-count[version-lag,solution],-new
# jobs              8
# repositories      4 (http), 5 (local), 1 (version-controlled) (default repo at 61536b7f)
# pinned            1 (rsync)
# current-switch    system

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions