Subject: Re: bug#14152: [PATCH] build: use 'chmod a-w' instead of 'chmod -w'

From: Pádraig Brady <[email-masked]>
Date: Sat, 06 Apr 2013 19:58:26 +0100

On 04/06/2013 01:23 PM, Enrico Scholz wrote:
> 'chmod -w' is not portable and breaks the build:
> 
> | WARNING: Cannot create proper 'hostid.1' man page, since perl is missing or
> | WARNING: inadequate on this system.  Creating a stub man page instead.
> | chmod: man/hostid.1-t: new permissions are r--rw-r--, not r--r--r--
> | make[2]: *** [man/hostid.1] Error 1
> 
> Signed-off-by: Enrico Scholz <[email-masked]>
> ---
>  man/local.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man/local.mk b/man/local.mk
> index b5e6e21..53debad 100644
> --- a/man/local.mk
> +++ b/man/local.mk
> @@ -192,5 +192,5 @@ man/yes.1:       src/yes
>  		     --output=$$t/$$name.1 $$t/$$name			\
>  	  && sed 's|$*\.td/||g' $$t/$$name.1 > $@-t			\
>  	  && rm -rf $$t							\
> -	  && chmod -w $@-t						\
> +	  && chmod a-w $@-t						\
>  	  && mv $@-t $@
> 

I'll apply that fix.

What system does the build fail on as a matter of interest.

thanks!
Pádraig.