[oe-commits] [openembedded-core] 08/20: archiver.bbclass: adapt do_unpack_and_patch to RSS

git at git.openembedded.org git at git.openembedded.org
Sun Jan 7 17:12:09 UTC 2018


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

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

commit adb5234ac9c96f29336397552176ab5086772069
Author: Mikko Ylinen <mikko.ylinen at linux.intel.com>
AuthorDate: Mon Jun 5 17:42:51 2017 +0300

    archiver.bbclass: adapt do_unpack_and_patch to RSS
    
    do_unpack_and_patch was not correctly run until recently
    ("archiver.bbclass: various fixes for original+diff mode") but
    with the fix applied, the errors we get indicate the function
    is not adapted to work with recipe specific sysroots.
    
    do_unpack_and_patch sets WORKDIR to ARCHIVER_WORKDIR which
    affects all path settings relative to WORKDIR, inluding the paths
    to recipes' sysroots. IOW, when do_unpack and do_patch are run, they
    cannot find the necessary native tools and files located in the
    sysroot (e.g., quiltrc) because the paths point to ARCHIVER_WORKDIR.
    
    Adapt do_unpack_and_patch to RSS by restoring the original
    STAGING_DIR_NATIVE after WORKDIR is changed to ARCHIVER_WORKDIR.
    
    (From OE-Core rev: db7d2cc5a4df3c2077ba874c7ae395c73fd9ed13)
    
    (From OE-Core rev: 7c0e3c5fa39e7ed3eedee8bac206476f70d1f422)
    
    Signed-off-by: Mikko Ylinen <mikko.ylinen at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/archiver.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 78c6245..2dce505 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -315,12 +315,15 @@ python do_unpack_and_patch() {
         return
     ar_outdir = d.getVar('ARCHIVER_OUTDIR')
     ar_workdir = d.getVar('ARCHIVER_WORKDIR')
+    ar_sysroot_native = d.getVar('STAGING_DIR_NATIVE')
     pn = d.getVar('PN')
 
     # The kernel class functions require it to be on work-shared, so we dont change WORKDIR
     if not (bb.data.inherits_class('kernel-yocto', d) or pn.startswith('gcc-source')):
         # Change the WORKDIR to make do_unpack do_patch run in another dir.
         d.setVar('WORKDIR', ar_workdir)
+        # Restore the original path to recipe's native sysroot (it's relative to WORKDIR).
+        d.setVar('STAGING_DIR_NATIVE', ar_sysroot_native)
 
         # The changed 'WORKDIR' also caused 'B' changed, create dir 'B' for the
         # possibly requiring of the following tasks (such as some recipes's

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


More information about the Openembedded-commits mailing list