From 96666650ef2e85252fed3bf8881a96f65a49dafd Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 19 Nov 2017 15:04:32 +0100 Subject: [PATCH] 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. --- pkgs/tools/misc/man-db/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix index f5a99ba1c71c..d0cb9a223366 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