summaryrefslogtreecommitdiff
path: root/extra/python-telepathy/telepathy-python-generated-errors.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/python-telepathy/telepathy-python-generated-errors.patch')
-rw-r--r--extra/python-telepathy/telepathy-python-generated-errors.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/python-telepathy/telepathy-python-generated-errors.patch b/extra/python-telepathy/telepathy-python-generated-errors.patch
new file mode 100644
index 000000000..d52861d89
--- /dev/null
+++ b/extra/python-telepathy/telepathy-python-generated-errors.patch
@@ -0,0 +1,18 @@
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 135f2f0..ede1fc3 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -13,10 +13,12 @@ telepathy_PYTHON = \
+ spec_dir = $(top_srcdir)/spec
+ spec_files := $(patsubst $(spec_dir)%.xml,_generated%.py,$(wildcard $(spec_dir)/*.xml))
+
++# We leave _generated/errors.py out of here because there exists a
++# spec/errors.xml file, so that means there'll be a
++# _generated/errors.py in $(spec_files). See fd.o#32526
+ BUILT_SOURCES = \
+ _generated/interfaces.py \
+ _generated/constants.py \
+- _generated/errors.py \
+ _generated/__init__.py \
+ $(spec_files)
+