Return-Path: X-Greylist: delayed 560 seconds by postgrey-1.34 at layers.openembedded.org; Fri, 11 Aug 2017 03:10:16 UTC Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by mail.openembedded.org (Postfix) with ESMTP id F1AB077BEB for ; Fri, 11 Aug 2017 03:10:16 +0000 (UTC) Received: from seahawk.toradex.int (75-146-58-181-Washington.hfc.comcastbusiness.net [75.146.58.181]) by mail.kmu-office.ch (Postfix) with ESMTPSA id E52635C1F9A; Fri, 11 Aug 2017 04:57:59 +0200 (CEST) From: Stefan Agner To: openembedded-core@lists.openembedded.org Date: Fri, 25 Aug 2017 02:59:01 -0700 Message-Id: <1503655141-1302-1-git-send-email-stefan@agner.ch> X-Mailer: git-send-email 2.7.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1502420280; bh=y6ZJ9LKexWLzPPGc+WT5Otn6+e+2E/ViDKD6YE/pdyA=; h=From:To:Cc:Subject:Date:Message-Id; b=nELSLTvDiYhgjaD9budsjrvXu6tXVFvxE0m3mlxkNqvMv5HFJcGFV+H69niA4++7Yoasm7+FJoIuG/HRCQ0/Erw/4fjBTnsTFrc2krgmnWuJ0EK/oS74wUjUCvfMNcbJ7T81pSTvWVV/2mr9wo013mMRb1oyFGycJPR2VakcIq0= Cc: Stefan Agner Subject: [PATCH] image.bbclass: delete DATE variable too X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 03:10:17 -0000 From: Stefan Agner When creating a custom image which uses the DATE variable the basehash seems to change every day and lead to errors such as: ERROR: console-tdx-image-2.7.6-r0 do_image_customimg: Error executing a python function in exec_python_func() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_python_func() autogenerated', lineno: 2, function: 0001: *** 0002:set_image_size(d) ... Add DATE to the variables which should not get expanded early and to the vardepsexclude list for the image task. Signed-off-by: Stefan Agner --- I am not that deep in OE usually and I am not sure if I miss something completely here... It seems to solve the issue for us though. Does that change sounds reasonable? Could it be done in the custom image class file? meta/classes/image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 6111f6d..443f822 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -440,6 +440,7 @@ python () { # date/time values. It will get expanded at execution time. # Similarly TMPDIR since otherwise we see QA stamp comparision problems localdata.delVar('DATETIME') + localdata.delVar('DATE') localdata.delVar('TMPDIR') image_cmd = localdata.getVar("IMAGE_CMD", True) @@ -503,7 +504,7 @@ python () { d.setVarFlag('do_image_%s' % t, 'postfuncs', 'create_symlinks') d.setVarFlag('do_image_%s' % t, 'subimages', ' '.join(subimages)) d.appendVarFlag('do_image_%s' % t, 'vardeps', ' '.join(vardeps)) - d.appendVarFlag('do_image_%s' % t, 'vardepsexclude', 'DATETIME') + d.appendVarFlag('do_image_%s' % t, 'vardepsexclude', 'DATETIME DATE') bb.debug(2, "Adding type %s before %s, after %s" % (t, 'do_image_complete', after)) bb.build.addtask('do_image_%s' % t, 'do_image_complete', after, d) -- 2.7.4