| Message ID | cover.1773324129.git.liezhi.yang@windriver.com |
|---|---|
| State | Not Applicable, archived |
| Headers | show |
On Thu Mar 12, 2026 at 3:09 PM CET, liezhi.yang wrote: > From: Robert Yang <liezhi.yang@windriver.com> > > * V8: > - Fix build with systemd (Check patch 7 for detailes) > - Make rpmbuild can find the pkgconfig (.pc) files in /usr/share/pkgconfig > (Check patch 7 for detailes) > - Backport a PULL from git/libarchive to fix oe-selftest failures. > > * 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 > > // Robert > Hi Robert, Thanks for the new version. I suspect I still need to get some gettext patch with it. Either yours or the one from the glibc upgrade series. Is that right? https://lore.kernel.org/openembedded-core/cover.1772895871.git.liezhi.yang@windriver.com/ https://lore.kernel.org/openembedded-core/20260310174403.2309825-2-Hemanth.KumarMD@windriver.com/ Thanks, Mathieu
Hi Mathieu, On 3/12/26 23:52, Mathieu Dubois-Briand via lists.openembedded.org wrote: > On Thu Mar 12, 2026 at 3:09 PM CET, liezhi.yang wrote: >> From: Robert Yang <liezhi.yang@windriver.com> >> >> * V8: >> - Fix build with systemd (Check patch 7 for detailes) >> - Make rpmbuild can find the pkgconfig (.pc) files in /usr/share/pkgconfig >> (Check patch 7 for detailes) >> - Backport a PULL from git/libarchive to fix oe-selftest failures. >> >> * 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 >> >> // Robert >> > > Hi Robert, > > Thanks for the new version. > > I suspect I still need to get some gettext patch with it. Either yours > or the one from the glibc upgrade series. Is that right? I think you meat the following oe-selftest error: ERROR: glib-2.0-1_2.86.4-r0 do_package_qa: QA Issue: glib-2.0-ptest rdepends on locale-base-c, but it isn't a build dependency? [build-deps] I can reproduce it with pure master branch: (rev: 438afb3ded629408172c4bd7d556c5d2abacd631) PACKAGE_CLASSES = "package_rpm" OE_FRAGMENTS += 'core/yocto-autobuilder/autobuilder' MACHINE = 'qemux86-64' IMAGE_INSTALL:append = " glibc-utils localedef" GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8 en_US.ISO-8859-1 de_DE.UTF-8 fr_FR.ISO-8859-1 zh_HK.BIG5-HKSCS tr_TR.UTF-8" IMAGE_LINGUAS:append = " en-us fr-fr" $ bitbake glibc-2.0 So I don't think it's caused by rpm 6 or gettext upgrading, and we don't need other patches. I will check how to fix the glib-2.0 issues, but it's not related to rpm 6. // Robert > > https://lore.kernel.org/openembedded-core/cover.1772895871.git.liezhi.yang@windriver.com/ > https://lore.kernel.org/openembedded-core/20260310174403.2309825-2-Hemanth.KumarMD@windriver.com/ > > Thanks, > Mathieu > > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#232983): https://lists.openembedded.org/g/openembedded-core/message/232983 > Mute This Topic: https://lists.openembedded.org/mt/118279443/7304958 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [liezhi.yang@eng.windriver.com] > -=-=-=-=-=-=-=-=-=-=-=- >
On Fri Mar 13, 2026 at 5:54 AM CET, Robert Yang wrote: > Hi Mathieu, > > On 3/12/26 23:52, Mathieu Dubois-Briand via lists.openembedded.org wrote: >> On Thu Mar 12, 2026 at 3:09 PM CET, liezhi.yang wrote: >>> From: Robert Yang <liezhi.yang@windriver.com> >>> >>> * V8: >>> - Fix build with systemd (Check patch 7 for detailes) >>> - Make rpmbuild can find the pkgconfig (.pc) files in /usr/share/pkgconfig >>> (Check patch 7 for detailes) >>> - Backport a PULL from git/libarchive to fix oe-selftest failures. >>> >>> * 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 >>> >>> // Robert >>> >> >> Hi Robert, >> >> Thanks for the new version. >> >> I suspect I still need to get some gettext patch with it. Either yours >> or the one from the glibc upgrade series. Is that right? > > I think you meat the following oe-selftest error: > > ERROR: glib-2.0-1_2.86.4-r0 do_package_qa: QA Issue: glib-2.0-ptest rdepends on > locale-base-c, but it isn't a build dependency? [build-deps] > > > I can reproduce it with pure master branch: (rev: > 438afb3ded629408172c4bd7d556c5d2abacd631) > PACKAGE_CLASSES = "package_rpm" > OE_FRAGMENTS += 'core/yocto-autobuilder/autobuilder' > MACHINE = 'qemux86-64' > > IMAGE_INSTALL:append = " glibc-utils localedef" > GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8 en_US.ISO-8859-1 de_DE.UTF-8 > fr_FR.ISO-8859-1 zh_HK.BIG5-HKSCS tr_TR.UTF-8" > IMAGE_LINGUAS:append = " en-us fr-fr" > > $ bitbake glibc-2.0 > > So I don't think it's caused by rpm 6 or gettext upgrading, and we don't need > other patches. > > I will check how to fix the glib-2.0 issues, but it's not related to rpm 6. > > // Robert > No sorry, I didn't mean anything specific. I did not had the time to launch a build with this series so far, I just wanted to be sure about the requirements. Build will start in a few minutes. Thanks, Mathieu
On Fri Mar 13, 2026 at 5:54 AM CET, Robert Yang wrote: > Hi Mathieu, > > On 3/12/26 23:52, Mathieu Dubois-Briand via lists.openembedded.org wrote: >> On Thu Mar 12, 2026 at 3:09 PM CET, liezhi.yang wrote: >>> From: Robert Yang <liezhi.yang@windriver.com> >>> >>> * V8: >>> - Fix build with systemd (Check patch 7 for detailes) >>> - Make rpmbuild can find the pkgconfig (.pc) files in /usr/share/pkgconfig >>> (Check patch 7 for detailes) >>> - Backport a PULL from git/libarchive to fix oe-selftest failures. >>> >>> * 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 >>> >>> // Robert >>> >> >> Hi Robert, >> >> Thanks for the new version. >> >> I suspect I still need to get some gettext patch with it. Either yours >> or the one from the glibc upgrade series. Is that right? > > I think you meat the following oe-selftest error: > > ERROR: glib-2.0-1_2.86.4-r0 do_package_qa: QA Issue: glib-2.0-ptest rdepends on > locale-base-c, but it isn't a build dependency? [build-deps] > > > I can reproduce it with pure master branch: (rev: > 438afb3ded629408172c4bd7d556c5d2abacd631) > PACKAGE_CLASSES = "package_rpm" > OE_FRAGMENTS += 'core/yocto-autobuilder/autobuilder' > MACHINE = 'qemux86-64' > > IMAGE_INSTALL:append = " glibc-utils localedef" > GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8 en_US.ISO-8859-1 de_DE.UTF-8 > fr_FR.ISO-8859-1 zh_HK.BIG5-HKSCS tr_TR.UTF-8" > IMAGE_LINGUAS:append = " en-us fr-fr" > > $ bitbake glibc-2.0 > > So I don't think it's caused by rpm 6 or gettext upgrading, and we don't need > other patches. > > I will check how to fix the glib-2.0 issues, but it's not related to rpm 6. > > // Robert > Hi Robert, So yes, I have this issue, and I'm not having it without your series: https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3399 https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3290 https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3517 And some reproducibility error: https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/3579 I will try to build just your series on top of master and compare with master. Maybe some strange combination with the glibc upgrade. Thanks, Mathieu
On Fri Mar 13, 2026 at 7:58 PM CET, Mathieu Dubois-Briand via lists.openembedded.org wrote: > On Fri Mar 13, 2026 at 5:54 AM CET, Robert Yang wrote: >> Hi Mathieu, >> >> On 3/12/26 23:52, Mathieu Dubois-Briand via lists.openembedded.org wrote: >>> On Thu Mar 12, 2026 at 3:09 PM CET, liezhi.yang wrote: >>>> From: Robert Yang <liezhi.yang@windriver.com> >>>> >>>> * V8: >>>> - Fix build with systemd (Check patch 7 for detailes) >>>> - Make rpmbuild can find the pkgconfig (.pc) files in /usr/share/pkgconfig >>>> (Check patch 7 for detailes) >>>> - Backport a PULL from git/libarchive to fix oe-selftest failures. >>>> >>>> * 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 >>>> >>>> // Robert >>>> >>> >>> Hi Robert, >>> >>> Thanks for the new version. >>> >>> I suspect I still need to get some gettext patch with it. Either yours >>> or the one from the glibc upgrade series. Is that right? >> >> I think you meat the following oe-selftest error: >> >> ERROR: glib-2.0-1_2.86.4-r0 do_package_qa: QA Issue: glib-2.0-ptest rdepends on >> locale-base-c, but it isn't a build dependency? [build-deps] >> >> >> I can reproduce it with pure master branch: (rev: >> 438afb3ded629408172c4bd7d556c5d2abacd631) >> PACKAGE_CLASSES = "package_rpm" >> OE_FRAGMENTS += 'core/yocto-autobuilder/autobuilder' >> MACHINE = 'qemux86-64' >> >> IMAGE_INSTALL:append = " glibc-utils localedef" >> GLIBC_GENERATE_LOCALES = "en_US.UTF-8 fr_FR.UTF-8 en_US.ISO-8859-1 de_DE.UTF-8 >> fr_FR.ISO-8859-1 zh_HK.BIG5-HKSCS tr_TR.UTF-8" >> IMAGE_LINGUAS:append = " en-us fr-fr" >> >> $ bitbake glibc-2.0 >> >> So I don't think it's caused by rpm 6 or gettext upgrading, and we don't need >> other patches. >> >> I will check how to fix the glib-2.0 issues, but it's not related to rpm 6. >> >> // Robert >> > > Hi Robert, > > So yes, I have this issue, and I'm not having it without your series: > https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3399 > https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3290 > https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3517 > > And some reproducibility error: > https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/3579 > > I will try to build just your series on top of master and compare with > master. Maybe some strange combination with the glibc upgrade. > Ok, so here is an a-full build with RPM patches applied directly on top of master: we have the same issues as yesterday: https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3410 selftests: https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3526 https://autobuilder.yoctoproject.org/valkyrie/#/builders/35/builds/3420 https://autobuilder.yoctoproject.org/valkyrie/#/builders/48/builds/3298 reproducible: https://autobuilder.yoctoproject.org/valkyrie/#/builders/37/builds/3592 By comparison, here is an a-full build on master: https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/3414 I there any test I can do to help you? Thanks, Mathieu
From: Robert Yang <liezhi.yang@windriver.com> * V8: - Fix build with systemd (Check patch 7 for detailes) - Make rpmbuild can find the pkgconfig (.pc) files in /usr/share/pkgconfig (Check patch 7 for detailes) - Backport a PULL from git/libarchive to fix oe-selftest failures. * 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 // Robert The following changes since commit 7e75ec7a66c8c5f06c264784b0b6daaca37a9381: bitbake.conf: Set PACKAGECONFIG vardepvalue (2026-03-12 12:02:30 +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 9ee544efe319d8a002a88c0401da0a2e5ae007a9: libarchive: Make it work with rpm 6 (2026-03-12 07:00:10 -0700) ---------------------------------------------------------------- Peter Marko (1): libarchive: upgrade 3.8.5 -> 3.8.6 Robert Yang (8): 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 libarchive: Make it work with rpm 6 meta/classes-global/package_rpm.bbclass | 90 +- 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 +- ...end_filter-Keep-iterating-even-if-na.patch | 48 + ...egister_bidder-Allow-ARCHIVE_STATE_H.patch | 45 + ...er-into-a-proper-format-supporting-b.patch | 1723 +++++++++++++++++ ...ibarchive_3.8.5.bb => libarchive_3.8.6.bb} | 5 +- meta/recipes-support/attr/acl_2.3.2.bb | 2 + 30 files changed, 2074 insertions(+), 273 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%) create mode 100644 meta/recipes-extended/libarchive/libarchive/0001-archive_read_append_filter-Keep-iterating-even-if-na.patch create mode 100644 meta/recipes-extended/libarchive/libarchive/0002-__archive_read_register_bidder-Allow-ARCHIVE_STATE_H.patch create mode 100644 meta/recipes-extended/libarchive/libarchive/0003-Convert-RPM-reader-into-a-proper-format-supporting-b.patch rename meta/recipes-extended/libarchive/{libarchive_3.8.5.bb => libarchive_3.8.6.bb} (90%)