]> git.pld-linux.org Git - packages/collectd.git/commitdiff
- rel 5; fix python build auto/th/collectd-5.8.0-5
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 3 Jul 2018 17:56:02 +0000 (19:56 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 3 Jul 2018 17:56:02 +0000 (19:56 +0200)
collectd-python.patch [new file with mode: 0644]
collectd.spec

diff --git a/collectd-python.patch b/collectd-python.patch
new file mode 100644 (file)
index 0000000..8992c54
--- /dev/null
@@ -0,0 +1,11 @@
+--- collectd-5.8.0/src/python.c~       2017-11-18 10:03:27.000000000 +0100
++++ collectd-5.8.0/src/python.c        2018-07-03 19:31:41.523756509 +0200
+@@ -1136,7 +1136,7 @@ static void *cpy_interactive(void *pipef
+     cpy_log_exception("interactive session init");
+   }
+   cur_sig = PyOS_setsig(SIGINT, python_sigint_handler);
+-  PyOS_AfterFork();
++  PyOS_AfterFork_Child();
+   PyEval_InitThreads();
+   close(*(int *)pipefd);
+   PyRun_InteractiveLoop(stdin, "<stdin>");
index a95ecb3705670ac136a0c4e4c7eba42ad46a3df2..6a4b73dce8b8cd03dd681815b64a5aa66268b2d4 100644 (file)
@@ -136,7 +136,7 @@ Summary:    Collects system information in RRD files
 Summary(pl.UTF-8):     Zbieranie informacji o systemie w plikach RRD
 Name:          collectd
 Version:       5.8.0
 Summary(pl.UTF-8):     Zbieranie informacji o systemie w plikach RRD
 Name:          collectd
 Version:       5.8.0
-Release:       4
+Release:       5
 License:       GPL v2
 Group:         Daemons
 Source0:       http://collectd.org/files/%{name}-%{version}.tar.bz2
 License:       GPL v2
 Group:         Daemons
 Source0:       http://collectd.org/files/%{name}-%{version}.tar.bz2
@@ -149,6 +149,7 @@ Source5:    %{name}-apache.conf
 Source10:      %{name}-df.conf
 Source11:      %{name}-rrdtool.conf
 Patch0:                %{name}-collection.patch
 Source10:      %{name}-df.conf
 Source11:      %{name}-rrdtool.conf
 Patch0:                %{name}-collection.patch
+Patch1:                %{name}-python.patch
 Patch2:                noquote.patch
 URL:           http://collectd.org/
 %{?with_ipmi:BuildRequires:    OpenIPMI-devel >= 2.0.14-3}
 Patch2:                noquote.patch
 URL:           http://collectd.org/
 %{?with_ipmi:BuildRequires:    OpenIPMI-devel >= 2.0.14-3}
@@ -1314,6 +1315,7 @@ Perl files from Collectd package
 %prep
 %setup -q
 %patch0 -p1
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %patch2 -p1
 
 %build
 %patch2 -p1
 
 %build
This page took 0.061123 seconds and 4 git commands to generate.