Skip to content

Commit

Permalink
DocBook: Do not exceed argument list limit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
michal42 authored and Jonathan Corbet committed Jan 28, 2015
1 parent 4f7d455 commit d56fcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/DocBook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ htmldocs: $(HTML)

MAN := $(patsubst %.xml, %.9, $(BOOKS))
mandocs: $(MAN)
$(if $(wildcard $(obj)/man/*.9),gzip -f $(obj)/man/*.9)
find $(obj)/man -name '*.9' | xargs gzip -f

installmandocs: mandocs
mkdir -p /usr/local/man/man9/
Expand Down

0 comments on commit d56fcf2

Please sign in to comment.