Accepting request 539384 from devel:languages:python

- iso-c-90.patch added to fix building on SLE12-SP3

OBS-URL: https://build.opensuse.org/request/show/539384
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-systemd?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2017-11-11 13:15:43 +00:00 committed by Git OBS Bridge
commit dafe3769fe
3 changed files with 25 additions and 0 deletions

17
iso-c-90.patch Normal file
View File

@ -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;

View File

@ -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

View File

@ -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