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.
This commit is contained in:
Philipp Gesang 2017-11-19 15:04:32 +01:00
parent 1b594f05a2
commit 96666650ef
No known key found for this signature in database
GPG Key ID: 39CD08A25B96032C

View File

@ -28,6 +28,10 @@ stdenv.mkDerivation rec {
"--with-systemdtmpfilesdir=\${out}/lib/tmpfiles.d" "--with-systemdtmpfilesdir=\${out}/lib/tmpfiles.d"
]; ];
preConfigure = ''
configureFlagsArray+=("--with-sections=1 n l 8 3 0 2 5 4 9 6 7")
'';
postInstall = '' postInstall = ''
# apropos/whatis uses program name to decide whether to act like apropos or whatis # 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 # (multi-call binary). `apropos` is actually just a symlink to whatis. So we need to