summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-07-13 22:57:52 +0200
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2011-07-16 16:06:24 +0200
commitafeacfcb19f285000885d6c0379bc14c2f5afa31 (patch)
tree083066a8bb72a253088cef04cad423942bdbee97
parent7f41b08501ebd418490d51c9a22a7bd31324caaa (diff)
downloadrt-tests-afeacfcb19f285000885d6c0379bc14c2f5afa31.tar.gz
new patch: Don't reference non-standard realtime group
Notice: this object is not reachable from any branch.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Notice: this object is not reachable from any branch.
-rw-r--r--debian/changelog2
-rw-r--r--debian/patches/fix_comment_about_realtime_group.patch26
-rw-r--r--debian/patches/series1
3 files changed, 29 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index fd41db3..0f3438c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ rt-tests (0.73-1) UNRELEASED; urgency=low
* provide sequence as first parameter to dh for debhelper compatitility
level 8 and switch to level 8
* Standards-Version: 3.9.2 (no changes needed)
+ * new patch to fix wording for error message when setting the
+ scheduling policy fails (Closes: #619938)
-- Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Fri, 13 May 2011 12:22:25 +0200
diff --git a/debian/patches/fix_comment_about_realtime_group.patch b/debian/patches/fix_comment_about_realtime_group.patch
new file mode 100644
index 0000000..4dc03d4
--- /dev/null
+++ b/debian/patches/fix_comment_about_realtime_group.patch
@@ -0,0 +1,26 @@
+From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+Subject: Don't reference non-standard realtime group
+
+There is no dedicated realtime group in most distributions. So make the
+error message a bit more understandable for people not running Redhat
+MRG.
+
+Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
+Forwarded: id:1310590111-11484-1-git-send-email-u.kleine-koenig@pengutronix.de
+Closes: http://bugs.debian.org/619938
+---
+ src/lib/rt-utils.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/src/lib/rt-utils.c
++++ b/src/lib/rt-utils.c
+@@ -72,7 +72,8 @@
+ param.sched_priority = 1;
+ if (sched_setscheduler(0, SCHED_FIFO, &param)) {
+ fprintf(stderr, "Unable to change scheduling policy!\n");
+- fprintf(stderr, "either run as root or join realtime group\n");
++ fprintf(stderr, "Probably missing capabilities, either run as "
++ "root or increase RLIMIT_RTPRIO limits.\n");
+ return 1;
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index 4233cb7..0a96060 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ debian_adapt_errormsg_on_failure_to_open_device
kernvar_fix_possible_buffer_overflow
manpage_pip_stress.patch
debian_has_recent_glibc
+fix_comment_about_realtime_group.patch