[PATCH v7 0/7] rpm: 4.20.1 -> 6.0.1

liezhi.yang
2026-03-01T12:26:56Z

From: Robert Yang <liezhi.yang@windriver.com>

* V7:
- Add 0001-scripts-pkgconfigdeps.sh-Use-pkg-config-from-PATH.patch:
To fix "bitbake core-image-sato -cpopulate_sdk" error on Ubuntu 24.04 when
pkg-config is installed on host, now the host contamination has been fixed,
and the patch has been submitted to upstream:
https://github.com/rpm-software-management/rpm/pull/4127

* V6
- Fix -cpopulate_sdk error when DISTRO = "poky"

* V5
- Fix RP's comments: Don't hardcode libc6 into package_rpm.bbclass
- Use SKIP_LDCONFIG_POSTINST_FRAGMENT:${PN} to fix the loop dependencies
between /bin/sh and libc.so.

* V4
- Fix loop dependencies issues for libc6 and busybox
- Fix issues for can't find pkg-config files (.pc) on qemux86-64.

* V3
- Fix Alexender's comments
a) Suppot rpm 6
b) Move rpm-setup-autosign to rpm-build
c) Remove -DLIBELF_FOUND=False

- Fix build for nativesdk-rpm

- Drop patch for createrepo-c since it has been upgraded (rev:
804a238c8a4e86c2bcfb2192d54cb861d5fd32a6)

* V1 & V2
- Initial version

The following changes since commit b8e48562ba273051bcf8cbc62be742ef42a1e622:

alsa-lib: patch CVE-2026-25068 (2026-02-23 18:02:43 +0000)

are available in the Git repository at:

https://github.com/robertlinux/yocto rbt/rpm
https://github.com/robertlinux/yocto/tree/rbt/rpm

for you to fetch changes up to ab5c811380aac927b0fca3cf4f00952af4e6d8f5:

rpm: 4.20.1 -> 6.0.1 (2026-03-01 12:18:43 +0000)

----------------------------------------------------------------

Robert Yang (7):
package_rpm.bbclass: Drop external dependency generator to support rpm
6
package_rpm.bbclass: Define _lib and _libdir for rpmbuild
lib/oe/package.py: Don't add ldconfig_postinst_fragment for glibc or
musl
glib/python3/acl: Add pkgconfig to RDEPENDS
lib/oe/package.py: Don't redirect stderr
target-sdk-provides-dummy: Add pkg-config to DUMMYPROVIDES
rpm: 4.20.1 -> 6.0.1

meta/classes-global/package_rpm.bbclass | 87 ++-----------------
meta/lib/oe/package.py | 5 +-
meta/recipes-core/glib-2.0/glib.inc | 2 +-
meta/recipes-core/glibc/glibc-package.inc | 5 ++
.../meta/nativesdk-sdk-provides-dummy.bb | 1 +
.../meta/target-sdk-provides-dummy.bb | 1 +
meta/recipes-core/musl/musl_git.bb | 5 ++
.../recipes-devtools/python/python3_3.14.3.bb | 2 +
...olor-setting-for-mips64_n32-binaries.patch | 21 +++--
...akeLists.txt-Fix-checking-for-CFLAGS.patch | 46 ----------
...et-libdir-to-CMAKE_INSTALL_FULL_LIBD.patch | 50 -----------
...satisfiable-dependency-when-building.patch | 17 ++--
...lib-rpm-as-the-installation-path-for.patch | 23 ++---
...1-Do-not-read-config-files-from-HOME.patch | 17 ++--
...-PATH-environment-variable-before-ru.patch | 15 ++--
...lling-execute-package-scriptlets-wit.patch | 11 +--
...not-insert-payloadflags-into-.rpm-me.patch | 17 ++--
....c-fix-file-conflicts-for-MIPS64-N32.patch | 17 ++--
...kgverify_level-to-digest-as-RCPM-4.2.patch | 34 ++++++++
...nfigdeps.sh-Use-pkg-config-from-PATH.patch | 42 +++++++++
...ools-elfdeps.cc-Remove-format-module.patch | 37 ++++++++
...prefixing-etc-from-RPM_ETCCONFIGDIR-.patch | 25 +++---
...avoid-using-GLOB_BRACE-if-undefined-.patch | 13 +--
...ge-logging-level-around-scriptlets-t.patch | 13 +--
.../rpm/{rpm_4.20.1.bb => rpm_6.0.1.bb} | 15 ++--
meta/recipes-support/attr/acl_2.3.2.bb | 2 +
26 files changed, 252 insertions(+), 271 deletions(-)
delete mode 100644 meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-Fix-checking-for-CFLAGS.patch
delete mode 100644 meta/recipes-devtools/rpm/files/0001-CMakeLists.txt-set-libdir-to-CMAKE_INSTALL_FULL_LIBD.patch
create mode 100644 meta/recipes-devtools/rpm/files/0001-macros.in-Set-_pkgverify_level-to-digest-as-RCPM-4.2.patch
create mode 100644 meta/recipes-devtools/rpm/files/0001-scripts-pkgconfigdeps.sh-Use-pkg-config-from-PATH.patch
create mode 100644 meta/recipes-devtools/rpm/files/0001-tools-elfdeps.cc-Remove-format-module.patch
rename meta/recipes-devtools/rpm/{rpm_4.20.1.bb => rpm_6.0.1.bb} (94%)

--
2.49.1