Hello community, here is the log from the commit of package python-systemd for openSUSE:Factory checked in at 2017-11-11 14:15:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-systemd (Old) and /work/SRC/openSUSE:Factory/.python-systemd.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-systemd" Sat Nov 11 14:15:43 2017 rev:7 rq:539384 version:234 Changes: -------- --- /work/SRC/openSUSE:Factory/python-systemd/python-systemd.changes 2017-10-20 16:11:22.608321905 +0200 +++ /work/SRC/openSUSE:Factory/.python-systemd.new/python-systemd.changes 2017-11-11 14:15:53.619363921 +0100 @@ -1,0 +2,5 @@ +Mon Nov 6 18:15:19 UTC 2017 - [email protected] + +- iso-c-90.patch added to fix building on SLE12-SP3 + +------------------------------------------------------------------- New: ---- iso-c-90.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-systemd.spec ++++++ --- /var/tmp/diff_new_pack.LcMIA3/_old 2017-11-11 14:15:54.647326243 +0100 +++ /var/tmp/diff_new_pack.LcMIA3/_new 2017-11-11 14:15:54.647326243 +0100 @@ -26,6 +26,8 @@ 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 @@ %prep %setup -q +%patch1 -p1 %patch100 -p1 %build ++++++ iso-c-90.patch ++++++ 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;
