diff --git a/.gitignore b/.gitignore index 3c1ebaa983..8fa229eab2 100644 --- a/.gitignore +++ b/.gitignore @@ -82,6 +82,7 @@ gcov.log /bindings/python/libredwg.py /bindings/python/Makefile3.6 /bindings/python/swig_python.c +/bindings/python/swig_python.c.orig /build-aux/compile /build-aux/config.guess /build-aux/config.sub diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 9db37012e9..93bc583283 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -56,7 +56,7 @@ if HAVE_PATCH swig_python.c : $(SWIG_SOURCES) Makefile.am swig -python -I$(top_srcdir)/include -o swig_python.c $(srcdir)/../dwg.i -$(PATCH) -t --dry-run -N -p2 -i $(SWIG_PYTHON_PATCH) && \ - $(PATCH) -t -N -p2 -i $(SWIG_PYTHON_PATCH) + $(PATCH) -t -N -p2 -b -i $(SWIG_PYTHON_PATCH) CLEANFILES = swig_python.c.orig else swig_python.c : $(SWIG_SOURCES) Makefile.am diff --git a/build-aux/swig_python.patch b/build-aux/swig_python.patch index 492db52e9b..8e33360fe9 100644 --- a/build-aux/swig_python.patch +++ b/build-aux/swig_python.patch @@ -1,8 +1,8 @@ difforig bindings/python/swig_python.c diff -u bindings/python/swig_python.c.orig bindings/python/swig_python.c ---- bindings/python/swig_python.c.orig 2018-07-10 17:19:22.000000000 +0200 -+++ bindings/python/swig_python.c 2018-07-10 17:19:23.000000000 +0200 +--- bindings/python/swig_python.c.orig 2018-07-25 12:13:08.000000000 +0200 ++++ bindings/python/swig_python.c 2018-07-25 12:13:14.000000000 +0200 @@ -2480,7 +2480,7 @@ */ @@ -83,7 +83,7 @@ diff -u bindings/python/swig_python.c.orig bindings/python/swig_python.c Py_DECREF(dict); } -@@ -192076,6 +192076,17 @@ +@@ -205945,6 +205945,17 @@ #ifdef __cplusplus extern "C" #endif