[Spice-devel] [spice-protocol] build-sys: Make installed spice_codegen.py is executable

Frediano Ziglio fziglio at redhat.com
Mon Aug 10 09:59:03 PDT 2015


> Files listed as _DATA in Makefile.am are installed without the
> executable bit set, files listed as _SCRIPT do get the executable bit
> set. As spice_codegen.py is meant to be run by spice-protocol users,
> make sure this bit is set.
> ---
>  Makefile.am | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index 1082bf2..53e87be 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -4,11 +4,14 @@ SUBDIRS = python_modules spice
>  
>  codegendir = $(libdir)/spice-protocol
>  dist_codegen_DATA =			\
> -	spice_codegen.py		\
>  	spice.proto			\
>  	spice1.proto			\
>  	$(NULL)
>  
> +dist_codegen_SCRIPTS =			\
> +	spice_codegen.py		\
> +	$(NULL)
> +
>  DISTCLEANFILES = *.pyc
>  
>  pkgconfigdir = $(datadir)/pkgconfig
> --
> 2.4.3
> 

Acked, works correctly

Frediano


More information about the Spice-devel mailing list