summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2025-06-24 00:07:21 -0700
committerSteve Sakoman <steve@sakoman.com>2025-07-04 07:50:16 -0700
commitc1c31b2aeef0ca160b53784e764e23e3c66eb17e (patch)
tree96fd415a046842402f3cd78b4e9edc394681f2e2
parent741e4d2ed91e3f642a5ea4ef8b01095f4a36a04e (diff)
downloadpoky-c1c31b2aeef0ca160b53784e764e23e3c66eb17e.tar.gz
package_rpm.bbclass: Remove empty build directory
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' (From OE-Core rev: c4f95abacdb7376f8f299679f3f0b2dd1dc28c27) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes-global/package_rpm.bbclass1
1 files changed, 1 insertions, 0 deletions
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 () {
728 728
729 # rpm 4 creates various empty directories in _topdir, let's clean them up 729 # rpm 4 creates various empty directories in _topdir, let's clean them up
730 cleanupcmd = "rm -rf %s/BUILDROOT %s/SOURCES %s/SPECS %s/SRPMS" % (workdir, workdir, workdir, workdir) 730 cleanupcmd = "rm -rf %s/BUILDROOT %s/SOURCES %s/SPECS %s/SRPMS" % (workdir, workdir, workdir, workdir)
731 cleanupcmd += " %s/%s-build" % (d.getVar('B'), d.getVar('P'))
731 732
732 # Build the rpm package! 733 # Build the rpm package!
733 d.setVar('BUILDSPEC', cmd + "\n" + cleanupcmd + "\n") 734 d.setVar('BUILDSPEC', cmd + "\n" + cleanupcmd + "\n")