[oe-commits] [openembedded-core] 07/10: classes/populate_sdk_ext: reset TCLIBCAPPEND to get consistent TMPDIR

git at git.openembedded.org git at git.openembedded.org
Thu Apr 13 22:50:55 UTC 2017


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

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

commit 6fb34debb0ddd19db623c82c6a328609afa474b5
Author: Mikko Ylinen <mikko.ylinen at linux.intel.com>
AuthorDate: Thu Apr 13 13:09:07 2017 +0300

    classes/populate_sdk_ext: reset TCLIBCAPPEND to get consistent TMPDIR
    
    populate_sdk_ext sets TMPDIR to a known static value with '/tmp' directory
    name and that name is hard coded in a few places (e.g., in
    meta-environment-extsdk.bb that writes the eSDK environment variables).
    
    Distros that do not reset TCLIBCAPPEND (poky does) end up getting
    TMPDIR = /tmp-${TCLIBCAPPEND} via defaultsetup.conf and that breaks
    the functionality in eSDK that expects everything is in /tmp.
    
    To get TMPDIR consistent, we also need to reset TCLIBCAPPEND in
    populate_sdk_ext.bbclass.
    
    Fixes: [YOCTO #11298]
    
    Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/populate_sdk_ext.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/populate_sdk_ext.bbclass b/meta/classes/populate_sdk_ext.bbclass
index db822bf..21fd122 100644
--- a/meta/classes/populate_sdk_ext.bbclass
+++ b/meta/classes/populate_sdk_ext.bbclass
@@ -114,6 +114,7 @@ def create_filtered_tasklist(d, sdkbasepath, tasklistfile, conf_initpath):
             f.write('SSTATE_MIRRORS_forcevariable = ""\n')
             # Ensure TMPDIR is the default so that clean_esdk_builddir() can delete it
             f.write('TMPDIR_forcevariable = "${TOPDIR}/tmp"\n')
+            f.write('TCLIBCAPPEND_forcevariable = ""\n')
             # Drop uninative if the build isn't using it (or else NATIVELSBSTRING will
             # be different and we won't be able to find our native sstate)
             if not bb.data.inherits_class('uninative', d):
@@ -289,6 +290,7 @@ python copy_buildsystem () {
             f.write('\n')
 
             f.write('TMPDIR = "${TOPDIR}/tmp"\n')
+            f.write('TCLIBCAPPEND = ""\n')
             f.write('DL_DIR = "${TOPDIR}/downloads"\n')
 
             f.write('INHERIT += "%s"\n' % 'uninative')

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


More information about the Openembedded-commits mailing list