[oe-commits] [openembedded-core] 13/35: package_rpm: set _builddir to B not S

git at git.openembedded.org git at git.openembedded.org
Thu May 3 09:05:18 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch rocko
in repository openembedded-core.

commit 9c72ddb605f1f4fc98fa427e37b5ba8c8758c6cd
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Mar 27 10:56:06 2018 +0100

    package_rpm: set _builddir to B not S
    
    Recipes which use a shared workdir (e.g. gcc-runtine and libgcc) can
    race over temporary files causing interesting build failures.
    
    Using B instead of S avoids this problem.
    
    [YOCTO #12605]
    
    (From OE-Core rev: d6c13a5ff441f7076eb327c0d0b747bd7603db0f)
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta/classes/package_rpm.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index a428d30..ad5c5e9 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -665,7 +665,7 @@ python do_package_rpm () {
     cmd = rpmbuild
     cmd = cmd + " --noclean --nodeps --short-circuit --target " + pkgarch + " --buildroot " + pkgd
     cmd = cmd + " --define '_topdir " + workdir + "' --define '_rpmdir " + pkgwritedir + "'"
-    cmd = cmd + " --define '_builddir " + d.getVar('S') + "'"
+    cmd = cmd + " --define '_builddir " + d.getVar('B') + "'"
     cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'"
     cmd = cmd + " --define '_use_internal_dependency_generator 0'"
     cmd = cmd + " --define '_binaries_in_noarch_packages_terminate_build 0'"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list