diff --git a/debian/patches/missing-member-m_reload-on-pymoduledef-py3-5.patch b/debian/patches/missing-member-m_reload-on-pymoduledef-py3-5.patch new file mode 100644 index 0000000..2b9c9ce --- /dev/null +++ b/debian/patches/missing-member-m_reload-on-pymoduledef-py3-5.patch @@ -0,0 +1,20 @@ +Author: Agustin Henze +Bug-Debian: https://bugs.debian.org/800888 + +--- + +--- python-cbor-0.1.24.orig/c/cbormodule.c ++++ python-cbor-0.1.24/c/cbormodule.c +@@ -1468,7 +1468,11 @@ PyInit__cbor(void) + modef.m_doc = NULL; + modef.m_size = 0; + modef.m_methods = CborMethods; +- modef.m_reload = NULL; ++#if PY_MINOR_VERSION >= 5 ++ modef.m_slots = NULL, ++#else ++ modef.m_reload = NULL, ++#endif + modef.m_traverse = NULL; + modef.m_clear = NULL; + modef.m_free = NULL; diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..635cca8 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +missing-member-m_reload-on-pymoduledef-py3-5.patch