[lttng-dev] [PATCH babeltrace python/bindings] Python-bindings fix: outdated dist target babeltrace.i

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Sat Nov 23 20:31:41 EST 2013


----- Original Message -----
> From: "Jérémie Galarneau" <jeremie.galarneau at efficios.com>
> To: lttng-dev at lists.lttng.org
> Sent: Saturday, November 23, 2013 4:30:59 PM
> Subject: [lttng-dev] [PATCH babeltrace python/bindings] Python-bindings fix:	outdated dist target babeltrace.i
> 
> This fixes the dist target for the python bindings. The
> python-complements.h/.c files must be distributed, but not installed,
> in order to build the python bindings.

make distclean
make dist
cp the tarball elsewhere, extract
then, from other path:
path/to/babeltrace-1.1.1/configure --enable-python-bindings
make -j4

make[3]: Entering directory `/tmp/z/bindings/python'
sed "s/BABELTRACE_VERSION_STR/Babeltrace 1.1.1/g" <babeltrace.i.in >babeltrace.i
/bin/bash: babeltrace.i.in: No such file or directory

(with your patch applied)

Anything else missing ?

Thanks,

Mathieu

> 
> Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
> ---
>  bindings/python/Makefile.am | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
> index b25ce92..2952454 100644
> --- a/bindings/python/Makefile.am
> +++ b/bindings/python/Makefile.am
> @@ -3,14 +3,14 @@ babeltrace.i: babeltrace.i.in
>  
>  AM_CFLAGS = $(PYTHON_INCLUDE) -I$(top_srcdir)/include/
>  
> -EXTRA_DIST = babeltrace.i
> -python_PYTHON = babeltrace.py
> +EXTRA_DIST = babeltrace.i.in
> +nodist_python_PYTHON = babeltrace.py
>  pyexec_LTLIBRARIES = _babeltrace.la
>  
>  MAINTAINERCLEANFILES = babeltrace_wrap.c babeltrace.py
>  
> -_babeltrace_la_SOURCES = babeltrace_wrap.c python-complements.c
> -
> +nodist__babeltrace_la_SOURCES = babeltrace_wrap.c
> +_babeltrace_la_SOURCES = python-complements.h python-complements.c
>  _babeltrace_la_LDFLAGS = -module
>  
>  _babeltrace_la_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
> --
> 1.8.4.2
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list