summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch')
-rw-r--r--meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch b/meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch
new file mode 100644
index 0000000000..9648cac7c9
--- /dev/null
+++ b/meta/recipes-devtools/rpm/files/0001-When-nice-value-cannot-be-reset-issue-a-notice-inste.patch
@@ -0,0 +1,31 @@
1From d42ece6fa15b98d7f9221b90b85b78631df2c0a0 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 14 Feb 2017 13:51:19 +0200
4Subject: [PATCH] When nice value cannot be reset, issue a notice instead of a
5 warning
6
7Otherwise build logs on the autobuilder get very clutter, as it
8doesn't allow the nice value to be reset for some reason.
9
10Upstream-Status: Inappropriate [oe specific]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 lib/rpmscript.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/lib/rpmscript.c b/lib/rpmscript.c
17index 5e1e99906..3975aead8 100644
18--- a/lib/rpmscript.c
19+++ b/lib/rpmscript.c
20@@ -347,7 +347,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes,
21 int ret;
22 ret = setpriority(PRIO_PROCESS, 0, 0);
23 if (ret == -1) {
24- rpmlog(RPMLOG_WARNING, _("Unable to reset nice value: %s"),
25+ rpmlog(RPMLOG_NOTICE, _("Unable to reset nice value: %s\n"),
26 strerror(errno));
27 }
28
29--
302.11.0
31