about summary refs log tree commit diff
path: root/modules/system
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-08-07 17:03:18 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-08-07 17:03:18 +0200
commit80d32b8eb98276337f8c9ae9ad9b7e2af74e3ae9 (patch)
tree8400acc6e710cb444c7f6fa685f6c561643fb008 /modules/system
parent9733282fc1a993f91fa7d21070d7a932dff04ba2 (diff)
machines/sterneseemann/base: hack around makewhatis(8) ignoring secs
buildEnv is conservative with creating symlinks, i. e. it only creates
directories if it has to. Consequently if a directory is only present in a
single package in the environment, it'll be a symlink.

Enter: makewhatis(8), a tool that has never imagined a creation as accursed as
Nix or even NixOS. Thus it assumes that probably no one ever uses symlinks in
their man directory and if they do, it'll be to alias man pages. Consequently
it assumes that all symbolic links are files [1] and ignores them in the
normal mode because they are in the wrong place. To still be able to use
apropos(1) with POSIX man pages, introduce this shell hack to re-create the
symlinked directories before building mandoc's db.

[1]: See also
https://inbox.vuxu.org/mandoc-tech/bccac2cd-01b6-b349-86e5-de4066ed8dee@systemli.org/T/#u
Diffstat (limited to 'modules/system')
0 files changed, 0 insertions, 0 deletions