]> code.ossystems Code Review - openembedded-core.git/commitdiff
patch.bbclass: Fix up the environment for the patch resolution code
authorRichard Purdie <rpurdie@linux.intel.com>
Thu, 2 Jul 2009 13:36:56 +0000 (14:36 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 2 Jul 2009 13:36:56 +0000 (14:36 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
meta/classes/patch.bbclass

index 2cc1c36792ff2662fe7a7b3bcd68d101368ce4e7..609e1a141580ab81caa1575d72d865669d3ada5f 100644 (file)
@@ -384,8 +384,10 @@ def patch_init(d):
                                f.close()
                                os.chmod(rcfile, 0775)
  
+                               bb.utils.build_environment(d)
                                os.environ['TERMWINDOWTITLE'] = "Bitbake: Please fix patch rejects manually"
                                os.environ['TERMRCFILE'] = rcfile
+                               bb.debug(bb.data.getVar('TERMCMDRUN', d, 1))
                                rc = os.system(bb.data.getVar('TERMCMDRUN', d, 1))
                                if os.WIFEXITED(rc) and os.WEXITSTATUS(rc) != 0:
                                        bb.msg.fatal(bb.msg.domain.Build, ("Cannot proceed with manual patch resolution - '%s' not found. " \