diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2025-06-08 03:43:10 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-09 17:43:41 +0100 |
commit | bcf6af00f4f3fb31eca11b2439c57a540c6fc986 (patch) | |
tree | 2f8e94172f3f20d21a7855086d7b08ab414718b1 /meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch | |
parent | 140fde4c343963235556c3793e56b51b50f4acb4 (diff) | |
download | poky-bcf6af00f4f3fb31eca11b2439c57a540c6fc986.tar.gz |
rpm: 4.20.0 -> 4.20.1
* Rebased:
0001-When-cross-installing-execute-package-scriptlets-wit.patch
0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch
* Removed the one which already merged:
0001-Set-RPM_PLUGINDIR-in-top-level-CMakeLists.txt.patch
* Added a patch to fix rpm-native build error:
gcc: error: unrecognized command-line option -fhardened
0001-CMakeLists.txt-Fix-checking-for-CFLAGS.patch
* License-Update: Minor formatting changes as the commit messages said in
41143b27b6f7320f280aea6014e8f532eb0239d6
(From OE-Core rev: 5d25e1ba4d8850e2c281fc7f24493239bf2f9866)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch b/meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch index 278fa38bad..bac2d6331c 100644 --- a/meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch +++ b/meta/recipes-devtools/rpm/files/0016-rpmscript.c-change-logging-level-around-scriptlets-t.patch | |||
@@ -9,15 +9,18 @@ irrelevant noise to rootfs logs. | |||
9 | 9 | ||
10 | Upstream-Status: Inappropriate [oe-core specific] | 10 | Upstream-Status: Inappropriate [oe-core specific] |
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
12 | |||
13 | Rebased to 4.20.1 | ||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
12 | --- | 15 | --- |
13 | lib/rpmscript.c | 8 ++++---- | 16 | lib/rpmscript.c | 8 ++++---- |
14 | 1 file changed, 4 insertions(+), 4 deletions(-) | 17 | 1 file changed, 4 insertions(+), 4 deletions(-) |
15 | 18 | ||
16 | diff --git a/lib/rpmscript.c b/lib/rpmscript.c | 19 | diff --git a/lib/rpmscript.c b/lib/rpmscript.c |
17 | index 4dc6466a8..6d3c19d01 100644 | 20 | index e9f288ae0..f0c628708 100644 |
18 | --- a/lib/rpmscript.c | 21 | --- a/lib/rpmscript.c |
19 | +++ b/lib/rpmscript.c | 22 | +++ b/lib/rpmscript.c |
20 | @@ -290,7 +290,7 @@ static char * writeScript(const char *cmd, const char *script) | 23 | @@ -299,7 +299,7 @@ static char * writeScript(const char *cmd, const char *script) |
21 | if (Ferror(fd)) | 24 | if (Ferror(fd)) |
22 | goto exit; | 25 | goto exit; |
23 | 26 | ||
@@ -26,30 +29,30 @@ index 4dc6466a8..6d3c19d01 100644 | |||
26 | static const char set_x[] = "set -x\n"; | 29 | static const char set_x[] = "set -x\n"; |
27 | /* Assume failures will be caught by the write below */ | 30 | /* Assume failures will be caught by the write below */ |
28 | Fwrite(set_x, sizeof(set_x[0]), sizeof(set_x)-1, fd); | 31 | Fwrite(set_x, sizeof(set_x[0]), sizeof(set_x)-1, fd); |
29 | @@ -322,7 +322,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes, | 32 | @@ -330,7 +330,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes, |
30 | char *mline = NULL; | 33 | char *mline = NULL; |
31 | rpmRC rc = RPMRC_FAIL; | 34 | rpmRC rc = RPMRC_FAIL; |
32 | 35 | ||
33 | - rpmlog(RPMLOG_DEBUG, "%s: scriptlet start\n", sname); | 36 | - rpmlog(RPMLOG_DEBUG, "%s: scriptlet start\n", script->descr); |
34 | + rpmlog(RPMLOG_INFO, "%s: scriptlet start\n", sname); | 37 | + rpmlog(RPMLOG_INFO, "%s: scriptlet start\n", script->descr); |
35 | 38 | ||
36 | if (script) { | 39 | if (script->body) { |
37 | fn = writeScript(*argvp[0], script); | 40 | fn = writeScript(*argvp[0], script->body); |
38 | @@ -374,7 +374,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes, | 41 | @@ -382,7 +382,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes, |
39 | sname, strerror(errno)); | 42 | script->descr, strerror(errno)); |
40 | goto exit; | 43 | goto exit; |
41 | } else if (pid == 0) {/* Child */ | 44 | } else if (pid == 0) {/* Child */ |
42 | - rpmlog(RPMLOG_DEBUG, "%s: execv(%s) pid %d\n", | 45 | - rpmlog(RPMLOG_DEBUG, "%s: execv(%s) pid %d\n", |
43 | + rpmlog(RPMLOG_INFO, "%s: execv(%s) pid %d\n", | 46 | + rpmlog(RPMLOG_INFO, "%s: execv(%s) pid %d\n", |
44 | sname, *argvp[0], (unsigned)getpid()); | 47 | script->descr, *argvp[0], (unsigned)getpid()); |
45 | 48 | ||
46 | fclose(in); | 49 | fclose(in); |
47 | @@ -417,7 +417,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes, | 50 | @@ -426,7 +426,7 @@ static rpmRC runExtScript(rpmPlugins plugins, ARGV_const_t prefixes, |
48 | reaped = waitpid(pid, &status, 0); | 51 | reaped = waitpid(pid, &status, 0); |
49 | } while (reaped == -1 && errno == EINTR); | 52 | } while (reaped == -1 && errno == EINTR); |
50 | 53 | ||
51 | - rpmlog(RPMLOG_DEBUG, "%s: waitpid(%d) rc %d status %x\n", | 54 | - rpmlog(RPMLOG_DEBUG, "%s: waitpid(%d) rc %d status %x\n", |
52 | + rpmlog(RPMLOG_INFO, "%s: waitpid(%d) rc %d status %x\n", | 55 | + rpmlog(RPMLOG_INFO, "%s: waitpid(%d) rc %d status %x\n", |
53 | sname, (unsigned)pid, (unsigned)reaped, status); | 56 | script->descr, (unsigned)pid, (unsigned)reaped, status); |
54 | 57 | ||
55 | if (reaped < 0) { | 58 | if (reaped < 0) { |