diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2017-11-19 15:04:32 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2017-11-19 15:11:38 +0100 |
commit | 96666650ef2e85252fed3bf8881a96f65a49dafd (patch) | |
tree | b17cb243acbe1a291b2f54921653badc2ce9c3c6 /pkgs/tools/misc/man-db | |
parent | 1b594f05a2b0f5ce3f1ea947bcfcf6ad4d5d4dcc (diff) |
man-db: explicitly pass section string
Work around a bug in the autoconf setup of man-db: The list of default sections does not include section 0 (zero) despite ``./configure --help`` advertising it. This causes header man pages (e. g. time.h from package posix_man_pages) to be ignored by man(1): $ file /run/current-system/sw/share/man/man0p/time.h.0p.gz /run/current-system/sw/share/man/man0p/time.h.0p.gz: gzip compressed data, from Unix $ man 0p time.h No manual entry for 0p No manual entry for time.h Override the default (as defined in m4/man-arg-sections.m4) until this is fixed upstream.
Diffstat (limited to 'pkgs/tools/misc/man-db')
-rw-r--r-- | pkgs/tools/misc/man-db/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix index f5a99ba1c71c6..d0cb9a2233668 100644 --- a/pkgs/tools/misc/man-db/default.nix +++ b/pkgs/tools/misc/man-db/default.nix @@ -28,6 +28,10 @@ stdenv.mkDerivation rec { "--with-systemdtmpfilesdir=\${out}/lib/tmpfiles.d" ]; + preConfigure = '' + configureFlagsArray+=("--with-sections=1 n l 8 3 0 2 5 4 9 6 7") + ''; + postInstall = '' # apropos/whatis uses program name to decide whether to act like apropos or whatis # (multi-call binary). `apropos` is actually just a symlink to whatis. So we need to |