diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/files')
15 files changed, 183 insertions, 121 deletions
diff --git a/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch b/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch index 25aa69d7da..769d7b3409 100644 --- a/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch +++ b/meta/recipes-devtools/rpm/files/0001-Add-a-color-setting-for-mips64_n32-binaries.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f4cf90b5a298d6a3199e8b4c07f520aaf593ce2b Mon Sep 17 00:00:00 2001 | 1 | From 38e38437e83ed961dc1fa6d5b534bbdaae5b535e Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Thu, 9 Mar 2017 18:54:02 +0200 | 3 | Date: Thu, 9 Mar 2017 18:54:02 +0200 |
4 | Subject: [PATCH] Add a color setting for mips64_n32 binaries | 4 | Subject: [PATCH] Add a color setting for mips64_n32 binaries |
@@ -11,10 +11,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
11 | 2 files changed, 6 insertions(+) | 11 | 2 files changed, 6 insertions(+) |
12 | 12 | ||
13 | diff --git a/build/rpmfc.c b/build/rpmfc.c | 13 | diff --git a/build/rpmfc.c b/build/rpmfc.c |
14 | index 4b67a9bae..ed7e4e623 100644 | 14 | index 86dd36d14..df421a23f 100644 |
15 | --- a/build/rpmfc.c | 15 | --- a/build/rpmfc.c |
16 | +++ b/build/rpmfc.c | 16 | +++ b/build/rpmfc.c |
17 | @@ -660,6 +660,7 @@ exit: | 17 | @@ -716,6 +716,7 @@ static int rpmfcHelper(rpmfc fc, int *fnx, int nfn, const char *proto, |
18 | static const struct rpmfcTokens_s rpmfcTokens[] = { | 18 | static const struct rpmfcTokens_s rpmfcTokens[] = { |
19 | { "directory", RPMFC_INCLUDE }, | 19 | { "directory", RPMFC_INCLUDE }, |
20 | 20 | ||
@@ -22,8 +22,8 @@ index 4b67a9bae..ed7e4e623 100644 | |||
22 | { "ELF 32-bit", RPMFC_ELF32|RPMFC_INCLUDE }, | 22 | { "ELF 32-bit", RPMFC_ELF32|RPMFC_INCLUDE }, |
23 | { "ELF 64-bit", RPMFC_ELF64|RPMFC_INCLUDE }, | 23 | { "ELF 64-bit", RPMFC_ELF64|RPMFC_INCLUDE }, |
24 | 24 | ||
25 | @@ -1158,6 +1159,9 @@ static uint32_t getElfColor(const char *fn) | 25 | @@ -1258,6 +1259,9 @@ static uint32_t getElfColor(const char *fn) |
26 | color = RPMFC_ELF32; | 26 | color = 0; |
27 | break; | 27 | break; |
28 | } | 28 | } |
29 | + if (ehdr.e_machine == EM_MIPS || ehdr.e_machine == EM_MIPS_RS3_LE) | 29 | + if (ehdr.e_machine == EM_MIPS || ehdr.e_machine == EM_MIPS_RS3_LE) |
diff --git a/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-Fix-checking-for-CFLAGS.patch b/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-Fix-checking-for-CFLAGS.patch new file mode 100644 index 0000000000..412e1c146d --- /dev/null +++ b/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-Fix-checking-for-CFLAGS.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From e14502834fe6a9c6c9a439401ac3d2c8fd979267 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Sun, 8 Jun 2025 00:36:38 -0700 | ||
4 | Subject: [PATCH] CMakeLists.txt: Improve checking for CFLAGS | ||
5 | |||
6 | The previous log wasn't clear: | ||
7 | -- Performing Test found | ||
8 | -- Performing Test found - Success | ||
9 | -- Performing Test found | ||
10 | -- Performing Test found - Success | ||
11 | -- Performing Test found | ||
12 | -- Performing Test found - Failed | ||
13 | |||
14 | Use a new var compiler-supports${flag} will make it more clear: | ||
15 | -- Performing Test compiler-supports-fno-strict-overflow | ||
16 | -- Performing Test compiler-supports-fno-strict-overflow - Success | ||
17 | -- Performing Test compiler-supports-fno-delete-null-pointer-checks | ||
18 | -- Performing Test compiler-supports-fno-delete-null-pointer-checks - Success | ||
19 | -- Performing Test compiler-supports-fhardened | ||
20 | -- Performing Test compiler-supports-fhardened - Failed | ||
21 | |||
22 | Upstream-Status: Backport [https://github.com/rpm-software-management/rpm/commit/e14502834fe6a9c6c9a439401ac3d2c8fd979267] | ||
23 | |||
24 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
25 | --- | ||
26 | CMakeLists.txt | 5 ++--- | ||
27 | 1 file changed, 2 insertions(+), 3 deletions(-) | ||
28 | |||
29 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
30 | index 08e3e5274..f275c396b 100644 | ||
31 | --- a/CMakeLists.txt | ||
32 | +++ b/CMakeLists.txt | ||
33 | @@ -416,11 +416,10 @@ endif() | ||
34 | |||
35 | # try to ensure some compiler sanity and hardening options where supported | ||
36 | foreach (flag -fno-strict-overflow -fno-delete-null-pointer-checks -fhardened) | ||
37 | - check_c_compiler_flag(${flag} found) | ||
38 | - if (found) | ||
39 | + check_c_compiler_flag(${flag} compiler-supports${flag}) | ||
40 | + if (compiler-supports${flag}) | ||
41 | add_compile_options(${flag}) | ||
42 | endif() | ||
43 | - unset(found) | ||
44 | endforeach() | ||
45 | |||
46 | # generated sources | ||
diff --git a/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-look-for-lua-with-pkg-config-rather-t.patch b/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-look-for-lua-with-pkg-config-rather-t.patch index e4edc884b1..83552dd5c2 100644 --- a/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-look-for-lua-with-pkg-config-rather-t.patch +++ b/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-look-for-lua-with-pkg-config-rather-t.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From c39a074ff3c4d21c100d387661c7d725b5eae7b0 Mon Sep 17 00:00:00 2001 | 1 | From 99d02b8e8ce2c93c10a7924cd7571b76b0f45eb1 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
3 | Date: Wed, 29 Nov 2023 14:06:15 +0100 | 3 | Date: Wed, 29 Nov 2023 14:06:15 +0100 |
4 | Subject: [PATCH] CMakeLists.txt: look for lua with pkg-config rather than | 4 | Subject: [PATCH] CMakeLists.txt: look for lua with pkg-config rather than |
@@ -13,15 +13,15 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
16 | index 4a383ceba..ed847c09a 100644 | 16 | index 9a3aba071..08dabffd3 100644 |
17 | --- a/CMakeLists.txt | 17 | --- a/CMakeLists.txt |
18 | +++ b/CMakeLists.txt | 18 | +++ b/CMakeLists.txt |
19 | @@ -190,7 +190,7 @@ set(REQFUNCS | 19 | @@ -196,7 +196,7 @@ set(REQFUNCS |
20 | ) | 20 | ) |
21 | 21 | ||
22 | find_package(PkgConfig REQUIRED) | 22 | find_package(PkgConfig REQUIRED) |
23 | -find_package(Lua 5.2 REQUIRED) | 23 | -find_package(Lua 5.2 REQUIRED) |
24 | +pkg_check_modules(LUA REQUIRED IMPORTED_TARGET lua>=5.2) | 24 | +pkg_check_modules(LUA REQUIRED IMPORTED_TARGET lua>=5.2) |
25 | find_package(ZLIB REQUIRED) | 25 | find_package(ZLIB REQUIRED) |
26 | find_package(BZip2) | 26 | if (WITH_BZIP2) |
27 | find_package(Iconv) | 27 | find_package(BZip2 REQUIRED) |
diff --git a/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-set-libdir-to-CMAKE_INSTALL_FULL_LIBD.patch b/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-set-libdir-to-CMAKE_INSTALL_FULL_LIBD.patch new file mode 100644 index 0000000000..7db643871f --- /dev/null +++ b/meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-set-libdir-to-CMAKE_INSTALL_FULL_LIBD.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From cb5355da9b47166253dbe5ab3215e433b55068d1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Fri, 26 Jul 2024 17:18:30 +0800 | ||
4 | Subject: [PATCH] CMakeLists.txt: set libdir to ${CMAKE_INSTALL_FULL_LIBDIR} in | ||
5 | macros | ||
6 | |||
7 | There is a patch in oe-core[1] to avoid hardcoded paths in macros. It | ||
8 | tries to use libdir to expand %_libdir in macros.in. However, in | ||
9 | upstream commit[2], libdir for macros in CMakeLists.txt is set to | ||
10 | ${prefix}/=LIB=, which causes %_libdir to expand to ${prefix}/=LIB= | ||
11 | instead of the correct path in the final macros. | ||
12 | |||
13 | On target: | ||
14 | $ rpm --showrc | grep _libdir | ||
15 | [snip] | ||
16 | -13: _libdir ${prefix}/=LIB= | ||
17 | [snip] | ||
18 | |||
19 | This also causes %__pkgconfig_path in fileattrs/pkgconfig.attr to become | ||
20 | an invalid regular expression when building rpm packages. This results a | ||
21 | warning in log.do_package_write_rpm in all packages: | ||
22 | |||
23 | Warning: Ignoring invalid regular expression ^((${prefix}/=LIB=|usr/share)/pkgconfig/.*.pc|usr/bin/pkg-config)$ | ||
24 | |||
25 | Set libdir to ${CMAKE_INSTALL_FULL_LIBDIR} instead of ${prefix}/=LIB= to | ||
26 | make sure it is expanded to the correct path in macros. | ||
27 | |||
28 | [1] https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch | ||
29 | [2] https://github.com/rpm-software-management/rpm/commit/d2abb7a48760418aacd7f17c8b64e39c25ca50c9 | ||
30 | |||
31 | Upstream-Status: Inappropriate [oe specific] | ||
32 | |||
33 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
34 | --- | ||
35 | CMakeLists.txt | 2 +- | ||
36 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
37 | |||
38 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
39 | index 08dabffd3..1b7661139 100644 | ||
40 | --- a/CMakeLists.txt | ||
41 | +++ b/CMakeLists.txt | ||
42 | @@ -96,7 +96,7 @@ function(makemacros) | ||
43 | set(sysconfdir "${CMAKE_INSTALL_FULL_SYSCONFDIR}") | ||
44 | set(sharedstatedir "${CMAKE_INSTALL_FULL_SHAREDSTATEDIR}") | ||
45 | set(localstatedir "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}") | ||
46 | - set(libdir "\${prefix}/=LIB=") | ||
47 | + set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}") | ||
48 | set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}") | ||
49 | set(oldincludedir "${CMAKE_INSTALL_FULL_OLDINCLUDEDIR}") | ||
50 | set(infodir "\${prefix}/${CMAKE_INSTALL_INFODIR}") | ||
diff --git a/meta/recipes-devtools/rpm/files/0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch b/meta/recipes-devtools/rpm/files/0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch index d0ed711086..96a5e14999 100644 --- a/meta/recipes-devtools/rpm/files/0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch +++ b/meta/recipes-devtools/rpm/files/0001-Do-not-add-an-unsatisfiable-dependency-when-building.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 86e585cc0dd06dfa20f584af8b59d52a59accb45 Mon Sep 17 00:00:00 2001 | 1 | From dc40261464de1a1799704967906f5bd113b53793 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Mon, 9 Jan 2017 18:52:11 +0200 | 3 | Date: Mon, 9 Jan 2017 18:52:11 +0200 |
4 | Subject: [PATCH] Do not add an unsatisfiable dependency when building rpms in | 4 | Subject: [PATCH] Do not add an unsatisfiable dependency when building rpms in |
@@ -14,10 +14,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
14 | 1 file changed, 4 deletions(-) | 14 | 1 file changed, 4 deletions(-) |
15 | 15 | ||
16 | diff --git a/build/pack.c b/build/pack.c | 16 | diff --git a/build/pack.c b/build/pack.c |
17 | index f7dac6d9a..f382c7da0 100644 | 17 | index eb9c7b3f1..fb1f1bed8 100644 |
18 | --- a/build/pack.c | 18 | --- a/build/pack.c |
19 | +++ b/build/pack.c | 19 | +++ b/build/pack.c |
20 | @@ -711,10 +711,6 @@ static rpmRC packageBinary(rpmSpec spec, Package pkg, const char *cookie, int ch | 20 | @@ -712,10 +712,6 @@ static rpmRC packageBinary(rpmSpec spec, Package pkg, const char *cookie, int ch |
21 | headerPutBin(pkg->header, RPMTAG_SOURCEPKGID, spec->sourcePkgId,16); | 21 | headerPutBin(pkg->header, RPMTAG_SOURCEPKGID, spec->sourcePkgId,16); |
22 | } | 22 | } |
23 | 23 | ||
diff --git a/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch b/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch index b571a0ae8c..6a44f4f22d 100644 --- a/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch +++ b/meta/recipes-devtools/rpm/files/0001-Do-not-hardcode-lib-rpm-as-the-installation-path-for.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 73d6841d9ef2a8ac7bd63f9645a3efe8038dfdd4 Mon Sep 17 00:00:00 2001 | 1 | From 651310691a8a41ab3a766545c53b69e6e0c4f88d Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Mon, 27 Feb 2017 09:43:30 +0200 | 3 | Date: Mon, 27 Feb 2017 09:43:30 +0200 |
4 | Subject: [PATCH] Do not hardcode "lib/rpm" as the installation path for | 4 | Subject: [PATCH] Do not hardcode "lib/rpm" as the installation path for |
@@ -12,24 +12,24 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
12 | 2 files changed, 2 insertions(+), 2 deletions(-) | 12 | 2 files changed, 2 insertions(+), 2 deletions(-) |
13 | 13 | ||
14 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 14 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
15 | index 7808115c1..4a383ceba 100644 | 15 | index de0b578a6..9a3aba071 100644 |
16 | --- a/CMakeLists.txt | 16 | --- a/CMakeLists.txt |
17 | +++ b/CMakeLists.txt | 17 | +++ b/CMakeLists.txt |
18 | @@ -33,7 +33,7 @@ option(WITH_IMAEVM "Build with IMA support" OFF) | 18 | @@ -41,7 +41,7 @@ option(WITH_LIBELF "Build with libelf support" ON) |
19 | option(WITH_FAPOLICYD "Build with fapolicyd support" ON) | 19 | option(WITH_LIBLZMA "Build with liblzma support" ON) |
20 | option(WITH_READLINE "Build with readline support" ON) | 20 | option(WITH_DOXYGEN "Build API docs with doxygen" OFF) |
21 | 21 | ||
22 | -set(RPM_CONFIGDIR "${CMAKE_INSTALL_PREFIX}/lib/rpm" CACHE PATH "rpm home") | 22 | -set(RPM_CONFIGDIR "${CMAKE_INSTALL_PREFIX}/lib/rpm" CACHE PATH "rpm home") |
23 | +set(RPM_CONFIGDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/rpm" CACHE PATH "rpm home") | 23 | +set(RPM_CONFIGDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/rpm" CACHE PATH "rpm home") |
24 | set(RPM_MACROSDIR "${RPM_CONFIGDIR}/macros.d") | ||
24 | set(RPM_VENDOR "vendor" CACHE STRING "rpm vendor string") | 25 | set(RPM_VENDOR "vendor" CACHE STRING "rpm vendor string") |
25 | 26 | ||
26 | # Emulate libtool versioning. Before a public release: | ||
27 | diff --git a/macros.in b/macros.in | 27 | diff --git a/macros.in b/macros.in |
28 | index b49ffaad4..3acbe78f6 100644 | 28 | index 4d3e8afdc..66e31320f 100644 |
29 | --- a/macros.in | 29 | --- a/macros.in |
30 | +++ b/macros.in | 30 | +++ b/macros.in |
31 | @@ -969,7 +969,7 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\ | 31 | @@ -964,7 +964,7 @@ Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\ |
32 | %_sharedstatedir %{_prefix}/com | 32 | %_sharedstatedir %{_var}/lib |
33 | %_localstatedir %{_prefix}/var | 33 | %_localstatedir %{_prefix}/var |
34 | %_lib lib | 34 | %_lib lib |
35 | -%_libdir %{_exec_prefix}/%{_lib} | 35 | -%_libdir %{_exec_prefix}/%{_lib} |
diff --git a/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch b/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch index 796088df53..bfc9a74b6c 100644 --- a/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch +++ b/meta/recipes-devtools/rpm/files/0001-Do-not-read-config-files-from-HOME.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e210458d125793915abce30420d866a30305c37a Mon Sep 17 00:00:00 2001 | 1 | From 874679725c443e5d73e3a33d1158ab25442c8a5f Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Tue, 10 Jan 2017 14:11:30 +0200 | 3 | Date: Tue, 10 Jan 2017 14:11:30 +0200 |
4 | Subject: [PATCH] Do not read config files from $HOME | 4 | Subject: [PATCH] Do not read config files from $HOME |
@@ -10,26 +10,26 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
10 | 1 file changed, 2 insertions(+), 4 deletions(-) | 10 | 1 file changed, 2 insertions(+), 4 deletions(-) |
11 | 11 | ||
12 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c | 12 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c |
13 | index 9437a0ff1..483585ae4 100644 | 13 | index 5d778b8b7..dc8d42aeb 100644 |
14 | --- a/lib/rpmrc.c | 14 | --- a/lib/rpmrc.c |
15 | +++ b/lib/rpmrc.c | 15 | +++ b/lib/rpmrc.c |
16 | @@ -459,8 +459,7 @@ static void setDefaults(void) | 16 | @@ -485,8 +485,7 @@ static void setDefaults(void) |
17 | if (!defrcfiles) { | 17 | if (!defrcfiles) { |
18 | defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", | 18 | defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", |
19 | confdir, "/" RPM_VENDOR "/rpmrc", ":", | 19 | confdir, "/" RPM_VENDOR "/rpmrc", ":", |
20 | - SYSCONFDIR "/rpmrc", ":", | 20 | - SYSCONFDIR "/rpmrc", ":", |
21 | - "~/.rpmrc", NULL); | 21 | - userrc, NULL); |
22 | + SYSCONFDIR "/rpmrc", NULL); | 22 | + SYSCONFDIR "/rpmrc", NULL); |
23 | } | 23 | } |
24 | 24 | ||
25 | #ifndef MACROFILES | 25 | /* macrofiles may be pre-set from --macros */ |
26 | @@ -472,8 +471,7 @@ static void setDefaults(void) | 26 | @@ -498,8 +497,7 @@ static void setDefaults(void) |
27 | confdir, "/" RPM_VENDOR "/macros", ":", | 27 | confdir, "/" RPM_VENDOR "/macros", ":", |
28 | SYSCONFDIR "/rpm/macros.*", ":", | 28 | SYSCONFDIR "/rpm/macros.*", ":", |
29 | SYSCONFDIR "/rpm/macros", ":", | 29 | SYSCONFDIR "/rpm/macros", ":", |
30 | - SYSCONFDIR "/rpm/%{_target}/macros", ":", | 30 | - SYSCONFDIR "/rpm/%{_target}/macros", ":", |
31 | - "~/.rpmmacros", NULL); | 31 | - usermacros, NULL); |
32 | + SYSCONFDIR "/rpm/%{_target}/macros", NULL); | 32 | + SYSCONFDIR "/rpm/%{_target}/macros", NULL); |
33 | } | 33 | } |
34 | #else | 34 | |
35 | macrofiles = MACROFILES; | 35 | free(usermacros); |
diff --git a/meta/recipes-devtools/rpm/files/0001-Do-not-reset-the-PATH-environment-variable-before-ru.patch b/meta/recipes-devtools/rpm/files/0001-Do-not-reset-the-PATH-environment-variable-before-ru.patch index 328fbf86ac..d3263896ef 100644 --- a/meta/recipes-devtools/rpm/files/0001-Do-not-reset-the-PATH-environment-variable-before-ru.patch +++ b/meta/recipes-devtools/rpm/files/0001-Do-not-reset-the-PATH-environment-variable-before-ru.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a8fe7a7a2e41c9f127ed26407d57076babcb89e8 Mon Sep 17 00:00:00 2001 | 1 | From 4cf76bb57d3480420e734da99a5c839ac3a9976a Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 20 Jan 2017 13:32:06 +0200 | 3 | Date: Fri, 20 Jan 2017 13:32:06 +0200 |
4 | Subject: [PATCH] Do not reset the PATH environment variable before running | 4 | Subject: [PATCH] Do not reset the PATH environment variable before running |
@@ -13,10 +13,10 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | |||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | 13 | 1 file changed, 1 insertion(+), 1 deletion(-) |
14 | 14 | ||
15 | diff --git a/lib/rpmscript.c b/lib/rpmscript.c | 15 | diff --git a/lib/rpmscript.c b/lib/rpmscript.c |
16 | index 57689bb68..7b7e26606 100644 | 16 | index 060fd8124..4dc6466a8 100644 |
17 | --- a/lib/rpmscript.c | 17 | --- a/lib/rpmscript.c |
18 | +++ b/lib/rpmscript.c | 18 | +++ b/lib/rpmscript.c |
19 | @@ -252,7 +252,7 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes, | 19 | @@ -251,7 +251,7 @@ static void doScriptExec(ARGV_const_t argv, ARGV_const_t prefixes, |
20 | if (ipath && ipath[5] != '%') | 20 | if (ipath && ipath[5] != '%') |
21 | path = ipath; | 21 | path = ipath; |
22 | 22 | ||
diff --git a/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch b/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch index e4251a1a73..b71156fe12 100644 --- a/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch +++ b/meta/recipes-devtools/rpm/files/0001-When-cross-installing-execute-package-scriptlets-wit.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 34c0d3263f3e0b366a2320e0823f46673f7ba928 Mon Sep 17 00:00:00 2001 | 1 | From 3603cf181b69ab1e0077dcd8a124e669dcb9dd9c Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Tue, 17 Jan 2017 14:07:17 +0200 | 3 | Date: Tue, 17 Jan 2017 14:07:17 +0200 |
4 | Subject: [PATCH] When cross-installing, execute package scriptlets without | 4 | Subject: [PATCH] When cross-installing, execute package scriptlets without |
@@ -24,15 +24,18 @@ Amended 2018-07-03 by Olof Johansson <olofjn@axis.com>: | |||
24 | 24 | ||
25 | Upstream-Status: Inappropriate [oe-core specific] | 25 | Upstream-Status: Inappropriate [oe-core specific] |
26 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 26 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
27 | |||
28 | Rebased to 4.20.1 | ||
29 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
27 | --- | 30 | --- |
28 | lib/rpmscript.c | 11 ++++++++--- | 31 | lib/rpmscript.c | 9 +++++++-- |
29 | 1 file changed, 8 insertions(+), 3 deletions(-) | 32 | 1 file changed, 7 insertions(+), 2 deletions(-) |
30 | 33 | ||
31 | diff --git a/lib/rpmscript.c b/lib/rpmscript.c | 34 | diff --git a/lib/rpmscript.c b/lib/rpmscript.c |
32 | index 3f6313278..57689bb68 100644 | 35 | index eb14870b3..1785e8f30 100644 |
33 | --- a/lib/rpmscript.c | 36 | --- a/lib/rpmscript.c |
34 | +++ b/lib/rpmscript.c | 37 | +++ b/lib/rpmscript.c |
35 | @@ -448,8 +448,7 @@ exit: | 38 | @@ -456,8 +456,7 @@ exit: |
36 | Fclose(out); /* XXX dup'd STDOUT_FILENO */ | 39 | Fclose(out); /* XXX dup'd STDOUT_FILENO */ |
37 | 40 | ||
38 | if (fn) { | 41 | if (fn) { |
@@ -42,18 +45,17 @@ index 3f6313278..57689bb68 100644 | |||
42 | free(fn); | 45 | free(fn); |
43 | } | 46 | } |
44 | free(mline); | 47 | free(mline); |
45 | @@ -483,7 +482,13 @@ rpmRC rpmScriptRun(rpmScript script, int arg1, int arg2, FD_t scriptFd, | 48 | @@ -491,7 +490,13 @@ rpmRC rpmScriptRun(rpmScript script, int arg1, int arg2, FD_t scriptFd, |
46 | 49 | ||
47 | if (rc != RPMRC_FAIL) { | 50 | if (rc != RPMRC_FAIL) { |
48 | if (script_type & RPMSCRIPTLET_EXEC) { | 51 | if (script_type & RPMSCRIPTLET_EXEC) { |
49 | - rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, script->nextFileFunc); | ||
50 | + if (getenv("RPM_NO_CHROOT_FOR_SCRIPTS") != NULL) { | 52 | + if (getenv("RPM_NO_CHROOT_FOR_SCRIPTS") != NULL) { |
51 | + rpmChrootOut(); | 53 | + rpmChrootOut(); |
52 | + rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, script->nextFileFunc); | 54 | rc = runExtScript(plugins, prefixes, script, lvl, scriptFd, &args, arg1, arg2); |
53 | + rpmChrootIn(); | 55 | + rpmChrootIn(); |
54 | + } else { | 56 | + } else { |
55 | + rc = runExtScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, script->nextFileFunc); | 57 | + rc = runExtScript(plugins, prefixes, script, lvl, scriptFd, &args, arg1, arg2); |
56 | + } | 58 | + } |
57 | } else { | 59 | } else { |
58 | rc = runLuaScript(plugins, prefixes, script->descr, lvl, scriptFd, &args, script->body, arg1, arg2, script->nextFileFunc); | 60 | rc = runLuaScript(plugins, prefixes, script, lvl, scriptFd, &args, arg1, arg2); |
59 | } | 61 | } |
diff --git a/meta/recipes-devtools/rpm/files/0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch b/meta/recipes-devtools/rpm/files/0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch index 2f6397aa8a..0c29e5543a 100644 --- a/meta/recipes-devtools/rpm/files/0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch +++ b/meta/recipes-devtools/rpm/files/0001-build-pack.c-do-not-insert-payloadflags-into-.rpm-me.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ae4fdd8e8d052835973e6ff4b7550f93bde30a98 Mon Sep 17 00:00:00 2001 | 1 | From e688eb54fd54d65181e94b854b3568d99cbf3a24 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
3 | Date: Tue, 31 Aug 2021 10:37:05 +0200 | 3 | Date: Tue, 31 Aug 2021 10:37:05 +0200 |
4 | Subject: [PATCH] build/pack.c: do not insert payloadflags into .rpm metadata | 4 | Subject: [PATCH] build/pack.c: do not insert payloadflags into .rpm metadata |
@@ -14,7 +14,7 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de> | |||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
15 | 15 | ||
16 | diff --git a/build/pack.c b/build/pack.c | 16 | diff --git a/build/pack.c b/build/pack.c |
17 | index f382c7da0..0889dd993 100644 | 17 | index fb1f1bed8..45885a6ac 100644 |
18 | --- a/build/pack.c | 18 | --- a/build/pack.c |
19 | +++ b/build/pack.c | 19 | +++ b/build/pack.c |
20 | @@ -330,7 +330,7 @@ static char *getIOFlags(Package pkg) | 20 | @@ -330,7 +330,7 @@ static char *getIOFlags(Package pkg) |
diff --git a/meta/recipes-devtools/rpm/files/0001-lib-transaction.c-fix-file-conflicts-for-MIPS64-N32.patch b/meta/recipes-devtools/rpm/files/0001-lib-transaction.c-fix-file-conflicts-for-MIPS64-N32.patch index 98e52da3a8..7d443ccc6c 100644 --- a/meta/recipes-devtools/rpm/files/0001-lib-transaction.c-fix-file-conflicts-for-MIPS64-N32.patch +++ b/meta/recipes-devtools/rpm/files/0001-lib-transaction.c-fix-file-conflicts-for-MIPS64-N32.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b04ecb793a3c859985eead5e261785b27a4c4a20 Mon Sep 17 00:00:00 2001 | 1 | From ad530868e37f09e9236c085d25a834304750704b Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Thu, 7 May 2020 17:40:58 +0800 | 3 | Date: Thu, 7 May 2020 17:40:58 +0800 |
4 | Subject: [PATCH] lib/transaction.c: fix file conflicts for MIPS64 N32 | 4 | Subject: [PATCH] lib/transaction.c: fix file conflicts for MIPS64 N32 |
@@ -32,7 +32,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com> | |||
32 | 1 file changed, 12 insertions(+), 1 deletion(-) | 32 | 1 file changed, 12 insertions(+), 1 deletion(-) |
33 | 33 | ||
34 | diff --git a/lib/transaction.c b/lib/transaction.c | 34 | diff --git a/lib/transaction.c b/lib/transaction.c |
35 | index 70d2587ac..b89b30060 100644 | 35 | index 5e4414d2a..b1c55bd44 100644 |
36 | --- a/lib/transaction.c | 36 | --- a/lib/transaction.c |
37 | +++ b/lib/transaction.c | 37 | +++ b/lib/transaction.c |
38 | @@ -400,7 +400,18 @@ static int handleColorConflict(rpmts ts, | 38 | @@ -400,7 +400,18 @@ static int handleColorConflict(rpmts ts, |
diff --git a/meta/recipes-devtools/rpm/files/0001-perl-disable-auto-reqs.patch b/meta/recipes-devtools/rpm/files/0001-perl-disable-auto-reqs.patch deleted file mode 100644 index 55108e7f1c..0000000000 --- a/meta/recipes-devtools/rpm/files/0001-perl-disable-auto-reqs.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From 58bf006646a063837c46b695f7e7ebb69bee7238 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Hatle <mark.hatle@windriver.com> | ||
3 | Date: Tue, 15 Aug 2017 16:41:57 -0500 | ||
4 | Subject: [PATCH] perl: disable auto requires | ||
5 | |||
6 | When generating automatic requirements, it's possible for perl scripts to | ||
7 | declare 'optional' dependencies. These seem to often be incorrect and will | ||
8 | cause installation failures in OE. Instead of fixing the perl scripts, it | ||
9 | was decided it is better to simply disable the automatic dependency | ||
10 | generation. This matches the behavior from the previous RPM5 implementation. | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE specific configuration] | ||
13 | |||
14 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
15 | --- | ||
16 | fileattrs/perl.attr | 2 +- | ||
17 | fileattrs/perllib.attr | 2 +- | ||
18 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
19 | |||
20 | diff --git a/fileattrs/perl.attr b/fileattrs/perl.attr | ||
21 | index 0daef58d5..81ddf5305 100644 | ||
22 | --- a/fileattrs/perl.attr | ||
23 | +++ b/fileattrs/perl.attr | ||
24 | @@ -1,3 +1,3 @@ | ||
25 | -%__perl_requires %{_rpmconfigdir}/perl.req | ||
26 | +#__perl_requires %{_rpmconfigdir}/perl.req | ||
27 | %__perl_magic ^.*[Pp]erl .*$ | ||
28 | %__perl_flags exeonly | ||
29 | diff --git a/fileattrs/perllib.attr b/fileattrs/perllib.attr | ||
30 | index fcad48099..495a28927 100644 | ||
31 | --- a/fileattrs/perllib.attr | ||
32 | +++ b/fileattrs/perllib.attr | ||
33 | @@ -1,5 +1,5 @@ | ||
34 | %__perllib_provides %{_rpmconfigdir}/perl.prov | ||
35 | -%__perllib_requires %{_rpmconfigdir}/perl.req | ||
36 | +#__perllib_requires %{_rpmconfigdir}/perl.req | ||
37 | %__perllib_magic ^Perl[[:digit:]] module source.* | ||
38 | %__perllib_path \\.pm$ | ||
39 | %__perllib_flags magic_and_path | ||
diff --git a/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch b/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch index c5caa7dc5e..082fb343c2 100644 --- a/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch +++ b/meta/recipes-devtools/rpm/files/0002-Add-support-for-prefixing-etc-from-RPM_ETCCONFIGDIR-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d7143dc4e75c8bcc5cc4c852a4b972942b7e4d07 Mon Sep 17 00:00:00 2001 | 1 | From 7cc1c8cfcc620dec284204be0ae4416fd9fed95d Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 20 Jan 2017 13:33:05 +0200 | 3 | Date: Fri, 20 Jan 2017 13:33:05 +0200 |
4 | Subject: [PATCH] Add support for prefixing /etc from RPM_ETCCONFIGDIR | 4 | Subject: [PATCH] Add support for prefixing /etc from RPM_ETCCONFIGDIR |
@@ -10,21 +10,21 @@ from target rootfs instead of its own native sysroot. | |||
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 | --- | 12 | --- |
13 | lib/rpmrc.c | 19 ++++++++++++++----- | 13 | lib/rpmrc.c | 18 +++++++++++++----- |
14 | 1 file changed, 14 insertions(+), 5 deletions(-) | 14 | 1 file changed, 13 insertions(+), 5 deletions(-) |
15 | 15 | ||
16 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c | 16 | diff --git a/lib/rpmrc.c b/lib/rpmrc.c |
17 | index 483585ae4..ea858c290 100644 | 17 | index dc8d42aeb..3f2996850 100644 |
18 | --- a/lib/rpmrc.c | 18 | --- a/lib/rpmrc.c |
19 | +++ b/lib/rpmrc.c | 19 | +++ b/lib/rpmrc.c |
20 | @@ -456,10 +456,14 @@ const char * lookupInDefaultTable(const char * name, | 20 | @@ -481,11 +481,14 @@ static void setDefaults(void) |
21 | static void setDefaults(void) | 21 | userrc = xstrdup(oldrc); |
22 | { | 22 | } |
23 | const char *confdir = rpmConfigDir(); | 23 | } |
24 | + const char *etcconfdir = getenv("RPM_ETCCONFIGDIR"); | 24 | + const char *etcconfdir = getenv("RPM_ETCCONFIGDIR"); |
25 | + if (etcconfdir == NULL) | 25 | + if (etcconfdir == NULL) |
26 | + etcconfdir = ""; | 26 | + etcconfdir = ""; |
27 | + | 27 | |
28 | if (!defrcfiles) { | 28 | if (!defrcfiles) { |
29 | defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", | 29 | defrcfiles = rstrscat(NULL, confdir, "/rpmrc", ":", |
30 | confdir, "/" RPM_VENDOR "/rpmrc", ":", | 30 | confdir, "/" RPM_VENDOR "/rpmrc", ":", |
@@ -32,11 +32,11 @@ index 483585ae4..ea858c290 100644 | |||
32 | + etcconfdir, SYSCONFDIR "/rpmrc", NULL); | 32 | + etcconfdir, SYSCONFDIR "/rpmrc", NULL); |
33 | } | 33 | } |
34 | 34 | ||
35 | #ifndef MACROFILES | 35 | /* macrofiles may be pre-set from --macros */ |
36 | @@ -469,9 +473,9 @@ static void setDefaults(void) | 36 | @@ -495,9 +498,9 @@ static void setDefaults(void) |
37 | confdir, "/platform/%{_target}/macros", ":", | 37 | confdir, "/platform/%{_target}/macros", ":", |
38 | confdir, "/fileattrs/*.attr", ":", | 38 | confdir, "/fileattrs/*.attr", ":", |
39 | confdir, "/" RPM_VENDOR "/macros", ":", | 39 | confdir, "/" RPM_VENDOR "/macros", ":", |
40 | - SYSCONFDIR "/rpm/macros.*", ":", | 40 | - SYSCONFDIR "/rpm/macros.*", ":", |
41 | - SYSCONFDIR "/rpm/macros", ":", | 41 | - SYSCONFDIR "/rpm/macros", ":", |
42 | - SYSCONFDIR "/rpm/%{_target}/macros", NULL); | 42 | - SYSCONFDIR "/rpm/%{_target}/macros", NULL); |
@@ -44,9 +44,9 @@ index 483585ae4..ea858c290 100644 | |||
44 | + etcconfdir, SYSCONFDIR "/rpm/macros", ":", | 44 | + etcconfdir, SYSCONFDIR "/rpm/macros", ":", |
45 | + etcconfdir, SYSCONFDIR "/rpm/%{_target}/macros", NULL); | 45 | + etcconfdir, SYSCONFDIR "/rpm/%{_target}/macros", NULL); |
46 | } | 46 | } |
47 | #else | 47 | |
48 | macrofiles = MACROFILES; | 48 | free(usermacros); |
49 | @@ -1115,7 +1119,11 @@ static void read_auxv(void) | 49 | @@ -1142,7 +1145,11 @@ static void read_auxv(void) |
50 | */ | 50 | */ |
51 | static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) | 51 | static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) |
52 | { | 52 | { |
@@ -59,7 +59,7 @@ index 483585ae4..ea858c290 100644 | |||
59 | static struct utsname un; | 59 | static struct utsname un; |
60 | char * chptr; | 60 | char * chptr; |
61 | canonEntry canon; | 61 | canonEntry canon; |
62 | @@ -1435,6 +1443,7 @@ static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) | 62 | @@ -1462,6 +1469,7 @@ static void defaultMachine(rpmrcCtx ctx, const char ** arch, const char ** os) |
63 | 63 | ||
64 | if (arch) *arch = un.machine; | 64 | if (arch) *arch = un.machine; |
65 | if (os) *os = un.sysname; | 65 | if (os) *os = un.sysname; |
diff --git a/meta/recipes-devtools/rpm/files/0002-rpmio-rpmglob.c-avoid-using-GLOB_BRACE-if-undefined-.patch b/meta/recipes-devtools/rpm/files/0002-rpmio-rpmglob.c-avoid-using-GLOB_BRACE-if-undefined-.patch index 23dce30086..00fe19108e 100644 --- a/meta/recipes-devtools/rpm/files/0002-rpmio-rpmglob.c-avoid-using-GLOB_BRACE-if-undefined-.patch +++ b/meta/recipes-devtools/rpm/files/0002-rpmio-rpmglob.c-avoid-using-GLOB_BRACE-if-undefined-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 29c2a0c18b0c773128bf62c611b4c53fe4471105 Mon Sep 17 00:00:00 2001 | 1 | From d8972ff7fa0a30e199144ba135223bf561874e01 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex@linutronix.de> | 2 | From: Alexander Kanavin <alex@linutronix.de> |
3 | Date: Tue, 16 Jan 2024 09:59:26 +0100 | 3 | Date: Tue, 16 Jan 2024 09:59:26 +0100 |
4 | Subject: [PATCH] rpmio/rpmglob.c: avoid using GLOB_BRACE if undefined by C | 4 | Subject: [PATCH] rpmio/rpmglob.c: avoid using GLOB_BRACE if undefined by C |
@@ -16,7 +16,7 @@ Signed-off-by: Alexander Kanavin <alex@linutronix.de> | |||
16 | 1 file changed, 6 insertions(+) | 16 | 1 file changed, 6 insertions(+) |
17 | 17 | ||
18 | diff --git a/rpmio/rpmglob.c b/rpmio/rpmglob.c | 18 | diff --git a/rpmio/rpmglob.c b/rpmio/rpmglob.c |
19 | index 243568766..43c27074a 100644 | 19 | index eb439cad8..1eef0b851 100644 |
20 | --- a/rpmio/rpmglob.c | 20 | --- a/rpmio/rpmglob.c |
21 | +++ b/rpmio/rpmglob.c | 21 | +++ b/rpmio/rpmglob.c |
22 | @@ -33,6 +33,12 @@ | 22 | @@ -33,6 +33,12 @@ |
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 732202c46f..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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From f01d9c24bb86bc47ad2453483518dbb25953cac7 Mon Sep 17 00:00:00 2001 | 1 | From 452b696ea3e1975ea30cf7a92678aa4b316e6300 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Thu, 10 Jan 2019 18:14:18 +0100 | 3 | Date: Thu, 10 Jan 2019 18:14:18 +0100 |
4 | Subject: [PATCH] rpmscript.c: change logging level around scriptlets to INFO | 4 | Subject: [PATCH] rpmscript.c: change logging level around scriptlets to INFO |
@@ -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 7b7e26606..1dcd23be5 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 | @@ -291,7 +291,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 7b7e26606..1dcd23be5 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 | @@ -323,7 +323,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 | @@ -375,7 +375,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 | @@ -418,7 +418,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) { |