Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

DocBook: Do not exceed argument list limit

Use find + xargs to compress the generated manpages. Without this patch,
the build can fail with

gzip -f Documentation/DocBook/man/*.9
/bin/bash: /usr/bin/gzip: Argument list too long

This happened with qemu user mode emulation on aarch64.

Signed-off-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Michal Marek and committed by
Jonathan Corbet
d56fcf29 4f7d4559

+1 -1
+1 -1
Documentation/DocBook/Makefile
··· 56 56 57 57 MAN := $(patsubst %.xml, %.9, $(BOOKS)) 58 58 mandocs: $(MAN) 59 - $(if $(wildcard $(obj)/man/*.9),gzip -f $(obj)/man/*.9) 59 + find $(obj)/man -name '*.9' | xargs gzip -f 60 60 61 61 installmandocs: mandocs 62 62 mkdir -p /usr/local/man/man9/