Skip to contentSkip to conversation

Python-bindings fix: outdated dist target babeltrace.i

PATCH New Jérémie Galarneau 2 participants 2 messages Nov 23, 2013 – Nov 24, 2013 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 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.

---
 bindings/python/Makefile.am | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
bindings/python/Makefile.am +4 -4
index b25ce92..2952454 100644
@@ -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)
Signature · 7 lines
1.8.4.2


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

----- Original Message -----

Quoted 8 lines

From: "Jérémie Galarneau" <[email protected]>
To: [email protected]
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

Quoted 38 lines
---
 bindings/python/Makefile.am | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
bindings/python/Makefile.am +4 -5
index b25ce92..2952454 100644
@@ -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
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 8 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev