iso-c-90.patch added to fix building on SLE12-SP3
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-systemd?expand=0&rev=14
This commit is contained in:
parent
d8e65497e0
commit
4b7d586e73
17
iso-c-90.patch
Normal file
17
iso-c-90.patch
Normal 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;
|
||||||
|
|
@ -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
|
Sat Oct 7 13:20:19 UTC 2017 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ License: LGPL-2.1+
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/systemd/python-systemd
|
Url: https://github.com/systemd/python-systemd
|
||||||
Source: https://github.com/systemd/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
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
|
# 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
|
Patch100: exclude-tests-on-obs.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
@ -62,6 +64,7 @@ Documentation and help files for python-systemd.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user