Openembedded Core Discussions
 help / color / mirror / Atom feed
* [walnascar][PATCH 0/1] package_rpm.bbclass: Remove empty build directory
@ 2025-06-24  7:07 liezhi.yang
  2025-06-24  7:07 ` [walnascar][PATCH 1/1] " liezhi.yang
  0 siblings, 1 reply; 2+ messages in thread
From: liezhi.yang @ 2025-06-24  7:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: steve

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

The following changes since commit fd79c20430ad5c540522ddbe72ef235379c628bd:

  tune-cortexr52: Remove aarch64 for ARM Cortex-R52 (2025-06-16 12:50:00 -0700)

are available in the Git repository at:

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

Robert Yang (1):
  package_rpm.bbclass: Remove empty build directory

 meta/classes-global/package_rpm.bbclass | 1 +
 1 file changed, 1 insertion(+)

-- 
2.49.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [walnascar][PATCH 1/1] package_rpm.bbclass: Remove empty build directory
  2025-06-24  7:07 [walnascar][PATCH 0/1] package_rpm.bbclass: Remove empty build directory liezhi.yang
@ 2025-06-24  7:07 ` liezhi.yang
  0 siblings, 0 replies; 2+ messages in thread
From: liezhi.yang @ 2025-06-24  7:07 UTC (permalink / raw)
  To: openembedded-core; +Cc: steve

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

Fixed:
$ bitbake acl
$ ls tmp/work/core2-64-poky-linux/acl/2.3.2/build/acl-2.3.2-build/

This empty directory is created by rpmbuild, just remove it like others above.

Note, master branch doesn't have this problem after upgrade to rpm 4.20.1, but
it's not easy to find which patch(es) fixed the problem, and the issues haven't
been fixed completely, there is still an empty SRPMS directory, so just remove
the build directory as others above.

If we don't fix this, there might be warnings when a recipe uses:

install -m 0644 ${B}/* ${DEPLOYDIR}/boot.bin-extracted/

install: omitting directory '${B}/xilinx-bootbin-1.0-build'

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 meta/classes-global/package_rpm.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-global/package_rpm.bbclass b/meta/classes-global/package_rpm.bbclass
index f383ed140e..c6541d141b 100644
--- a/meta/classes-global/package_rpm.bbclass
+++ b/meta/classes-global/package_rpm.bbclass
@@ -728,6 +728,7 @@ python do_package_rpm () {
 
     # rpm 4 creates various empty directories in _topdir, let's clean them up
     cleanupcmd = "rm -rf %s/BUILDROOT %s/SOURCES %s/SPECS %s/SRPMS" % (workdir, workdir, workdir, workdir)
+    cleanupcmd += " %s/%s-build" % (d.getVar('B'), d.getVar('P'))
 
     # Build the rpm package!
     d.setVar('BUILDSPEC', cmd + "\n" + cleanupcmd + "\n")
-- 
2.49.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-24  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-24  7:07 [walnascar][PATCH 0/1] package_rpm.bbclass: Remove empty build directory liezhi.yang
2025-06-24  7:07 ` [walnascar][PATCH 1/1] " liezhi.yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox