diff --git a/iso-c-90.patch b/iso-c-90.patch new file mode 100644 index 0000000..5703ac4 --- /dev/null +++ b/iso-c-90.patch @@ -0,0 +1,17 @@ +diff -ur python-systemd-234.orig/systemd/_daemon.c python-systemd-234/systemd/_daemon.c +--- python-systemd-234.orig/systemd/_daemon.c 2017-03-26 03:33:59.000000000 +0200 ++++ python-systemd-234/systemd/_daemon.c 2017-11-06 19:11:48.546733677 +0100 +@@ -127,11 +127,12 @@ + return NULL; + + for (i = 0; i < len; i++) { ++ long value; + PyObject *item = PySequence_GetItem(fds, i); + if (!item) + return NULL; + +- long value = PyLong_AsLong(item); ++ value = PyLong_AsLong(item); + if (PyErr_Occurred()) + return NULL; + diff --git a/python-systemd.changes b/python-systemd.changes index c0d4d16..b45dbf5 100644 --- a/python-systemd.changes +++ b/python-systemd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 6 18:15:19 UTC 2017 - jweberhofer@weberhofer.at + +- iso-c-90.patch added to fix building on SLE12-SP3 + ------------------------------------------------------------------- Sat Oct 7 13:20:19 UTC 2017 - sebix+novell.com@sebix.at diff --git a/python-systemd.spec b/python-systemd.spec index 975be43..54b298b 100644 --- a/python-systemd.spec +++ b/python-systemd.spec @@ -26,6 +26,8 @@ License: LGPL-2.1+ Group: Development/Languages/Python Url: https://github.com/systemd/python-systemd Source: https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE iso-c-90.patch makes the building iso-c-90 compatible to allow building on SLE12 SP3 +Patch1: iso-c-90.patch # PATCH-FIX-OPENSUSE exclude-tests-on-obs.patch removes a test when running tests at OBS. Should be removed as soon as OBS is fixed Patch100: exclude-tests-on-obs.patch BuildRequires: %{python_module devel} @@ -62,6 +64,7 @@ Documentation and help files for python-systemd. %prep %setup -q +%patch1 -p1 %patch100 -p1 %build