From f97f4a5fc0a00a136c4e2cebeb520abf9b411d94 Mon Sep 17 00:00:00 2001 From: basebuilder_pel7x64builder0 Date: Tue, 27 Nov 2018 18:45:42 +0100 Subject: [PATCH] python-schedutils package update Signed-off-by: basebuilder_pel7x64builder0 --- ...-to-install-man-pages-for-pchrt-and-.patch | 13 ++++--- ...s-Add-man-pages-for-pchrt-and-ptasks.patch | 3 +- ...tils-Correct-typos-in-usage-messages.patch | 21 +++++----- ...s-Update-URL-in-python-schedutils.sp.patch | 3 +- ...s.c-added-support-for-SCHED_DEADLINE.patch | 39 ++++++++++--------- 5 files changed, 42 insertions(+), 37 deletions(-) diff --git a/SOURCES/Update-spec-file-to-install-man-pages-for-pchrt-and-.patch b/SOURCES/Update-spec-file-to-install-man-pages-for-pchrt-and-.patch index 4ff666ad..337f2bbd 100644 --- a/SOURCES/Update-spec-file-to-install-man-pages-for-pchrt-and-.patch +++ b/SOURCES/Update-spec-file-to-install-man-pages-for-pchrt-and-.patch @@ -30,7 +30,7 @@ index 24749581fd2f..084f0978a4ac 100644 +mkdir -p %{buildroot}%{_mandir}/man1 +gzip -c pchrt.1 > %{buildroot}%{_mandir}/man1/pchrt.1.gz +gzip -c ptaskset.1 > %{buildroot}%{_mandir}/man1/ptaskset.1.gz - + %clean rm -rf %{buildroot} @@ -41,8 +44,14 @@ rm -rf %{buildroot} @@ -39,7 +39,7 @@ index 24749581fd2f..084f0978a4ac 100644 %endif +%{_mandir}/man1/pchrt.1.gz +%{_mandir}/man1/ptaskset.1.gz - + %changelog +* Tue May 10 2016 John Kacur - 0.4-2 +- Add man pages for pchrt and ptaskset @@ -47,17 +47,18 @@ index 24749581fd2f..084f0978a4ac 100644 + * Mon Aug 1 2011 Arnaldo Carvalho de Melo - 0.4-1 - New upstream release. - + @@ -63,8 +72,8 @@ rm -rf %{buildroot} * Tue Jun 10 2008 Arnaldo Carvalho de Melo - 0.1-3 - add dist to the release tag - + -* Tue Dec 19 2007 Arnaldo Carvalho de Melo - 0.1-2 +* Wed Dec 19 2007 Arnaldo Carvalho de Melo - 0.1-2 - First build into rhel5-rt - + -* Tue Dec 19 2007 Arnaldo Carvalho de Melo - 0.1-1 +* Wed Dec 19 2007 Arnaldo Carvalho de Melo - 0.1-1 - Initial package --- +-- 2.4.11 + diff --git a/SOURCES/python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch b/SOURCES/python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch index 618efd11..4e6392da 100644 --- a/SOURCES/python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch +++ b/SOURCES/python-schedutils-Add-man-pages-for-pchrt-and-ptasks.patch @@ -99,5 +99,6 @@ index 000000000000..022d8f8bed65 +This manual page was written by John Kacur +.PP +Report bugs and send patches to --- +-- 2.4.11 + diff --git a/SOURCES/python-schedutils-Correct-typos-in-usage-messages.patch b/SOURCES/python-schedutils-Correct-typos-in-usage-messages.patch index c5a9802b..1206b752 100644 --- a/SOURCES/python-schedutils-Correct-typos-in-usage-messages.patch +++ b/SOURCES/python-schedutils-Correct-typos-in-usage-messages.patch @@ -20,35 +20,36 @@ index c4f1f2c5e5ec..0761792454fa 100755 --- a/pchrt.py +++ b/pchrt.py @@ -18,7 +18,7 @@ import os, schedutils, sys - + def usage(): - print '''pchrt (python-schedutils) + print '''pchrt (python-schedutils) -usage: chrt [options] [prio] [pid | cmd [args...]] +usage: pchrt [options] [prio] [pid | cmd [args...]] manipulate real-time attributes of a process -b, --batch set policy to SCHED_BATCH -f, --fifo set policy to SCHED_FIFO @@ -32,7 +32,7 @@ manipulate real-time attributes of a process - + You must give a priority if changing policy. - + -Report bugs and send patches to ''' +Report bugs and send patches to ''' - return - + return + def show_priority_limits(policy): diff --git a/ptaskset.py b/ptaskset.py index 15f0ec5bfa1f..afd18477f109 100755 --- a/ptaskset.py +++ b/ptaskset.py @@ -18,7 +18,7 @@ import os, schedutils, sys - + def usage(): - print '''ptaskset (python-schedutils) + print '''ptaskset (python-schedutils) -usage: taskset [options] [mask | cpu-list] [pid | cmd [args...]] +usage: ptaskset [options] [mask | cpu-list] [pid | cmd [args...]] set or get the affinity of a process - + -p, --pid operate on existing given pid --- +-- 2.4.11 + diff --git a/SOURCES/python-schedutils-Update-URL-in-python-schedutils.sp.patch b/SOURCES/python-schedutils-Update-URL-in-python-schedutils.sp.patch index b6b3c8be..dfce1cc2 100644 --- a/SOURCES/python-schedutils-Update-URL-in-python-schedutils.sp.patch +++ b/SOURCES/python-schedutils-Update-URL-in-python-schedutils.sp.patch @@ -25,5 +25,6 @@ index 084f0978a4ac..8372a898ac1c 100644 Group: System Environment/Libraries BuildRequires: python-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) --- +-- 2.4.11 + diff --git a/SOURCES/schedutils.c-added-support-for-SCHED_DEADLINE.patch b/SOURCES/schedutils.c-added-support-for-SCHED_DEADLINE.patch index 4bc45626..8a26c371 100644 --- a/SOURCES/schedutils.c-added-support-for-SCHED_DEADLINE.patch +++ b/SOURCES/schedutils.c-added-support-for-SCHED_DEADLINE.patch @@ -21,33 +21,34 @@ index d852d5d6ad10..be38e1811af2 100644 +#define SCHED_DEADLINE 6 +#endif + - + static PyObject *schedstr(PyObject *self __unused, PyObject *args) { @@ -258,6 +262,7 @@ static PyObject *schedstr(PyObject *self __unused, PyObject *args) - case SCHED_FIFO: s = "SCHED_FIFO"; break; - case SCHED_BATCH: s = "SCHED_BATCH"; break; - case SCHED_IDLE: s = "SCHED_IDLE"; break; + case SCHED_FIFO: s = "SCHED_FIFO"; break; + case SCHED_BATCH: s = "SCHED_BATCH"; break; + case SCHED_IDLE: s = "SCHED_IDLE"; break; + case SCHED_DEADLINE: s = "SCHED_DEADLINE"; break; - default: s = "UNKNOWN"; break; - } - + default: s = "UNKNOWN"; break; + } + @@ -282,6 +287,8 @@ static PyObject *schedfromstr(PyObject *self __unused, PyObject *args) - scheduler = SCHED_BATCH; - else if (strcmp(s, "SCHED_IDLE") == 0) - scheduler = SCHED_IDLE; + scheduler = SCHED_BATCH; + else if (strcmp(s, "SCHED_IDLE") == 0) + scheduler = SCHED_IDLE; + else if (strcmp(s, "SCHED_DEADLINE") == 0) + scheduler = SCHED_DEADLINE; - else { - PyErr_SetString(PyExc_OSError, "Unknown scheduler"); - return NULL; + else { + PyErr_SetString(PyExc_OSError, "Unknown scheduler"); + return NULL; @@ -382,6 +389,7 @@ PyMODINIT_FUNC initschedutils(void) - PyModule_AddIntConstant(m, "SCHED_RR", SCHED_RR); - PyModule_AddIntConstant(m, "SCHED_BATCH", SCHED_BATCH); - PyModule_AddIntConstant(m, "SCHED_IDLE", SCHED_IDLE); + PyModule_AddIntConstant(m, "SCHED_RR", SCHED_RR); + PyModule_AddIntConstant(m, "SCHED_BATCH", SCHED_BATCH); + PyModule_AddIntConstant(m, "SCHED_IDLE", SCHED_IDLE); + PyModule_AddIntConstant(m, "SCHED_DEADLINE", SCHED_DEADLINE); - PyModule_AddIntConstant(m, "SCHED_RESET_ON_FORK", SCHED_RESET_ON_FORK); + PyModule_AddIntConstant(m, "SCHED_RESET_ON_FORK", SCHED_RESET_ON_FORK); } - --- + +-- 2.4.11 +