LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] DocBook: Do not exceed argument list limit
@ 2015-01-26 10:31 Michal Marek
  2015-01-27  1:36 ` Randy Dunlap
  2015-01-28 19:00 ` Jonathan Corbet
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Marek @ 2015-01-26 10:31 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-doc, linux-kbuild, linux-kernel

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>
---
 Documentation/DocBook/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
index 9c7d92d..b6a6a2e 100644
--- a/Documentation/DocBook/Makefile
+++ b/Documentation/DocBook/Makefile
@@ -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/
-- 
2.1.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] DocBook: Do not exceed argument list limit
  2015-01-26 10:31 [PATCH] DocBook: Do not exceed argument list limit Michal Marek
@ 2015-01-27  1:36 ` Randy Dunlap
  2015-01-28 19:00 ` Jonathan Corbet
  1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2015-01-27  1:36 UTC (permalink / raw)
  To: Michal Marek, Jonathan Corbet; +Cc: linux-doc, linux-kbuild, linux-kernel

Adding Mr. Corbet.

On 01/26/15 02:31, Michal Marek wrote:
> 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>
> ---
>  Documentation/DocBook/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/DocBook/Makefile b/Documentation/DocBook/Makefile
> index 9c7d92d..b6a6a2e 100644
> --- a/Documentation/DocBook/Makefile
> +++ b/Documentation/DocBook/Makefile
> @@ -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/
> 


-- 
~Randy

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] DocBook: Do not exceed argument list limit
  2015-01-26 10:31 [PATCH] DocBook: Do not exceed argument list limit Michal Marek
  2015-01-27  1:36 ` Randy Dunlap
@ 2015-01-28 19:00 ` Jonathan Corbet
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Corbet @ 2015-01-28 19:00 UTC (permalink / raw)
  To: Michal Marek; +Cc: Randy Dunlap, linux-doc, linux-kbuild, linux-kernel

On Mon, 26 Jan 2015 11:31:17 +0100
Michal Marek <mmarek@suse.cz> wrote:

> 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

That is a lot of files in that directory these days...applied to the docs
tree, thanks.

jon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-29  1:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-26 10:31 [PATCH] DocBook: Do not exceed argument list limit Michal Marek
2015-01-27  1:36 ` Randy Dunlap
2015-01-28 19:00 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).