From patchwork Thu Jun 27 12:28:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 167970 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2281389ilk; Thu, 27 Jun 2019 05:29:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCNRap2fmhPukaoBWqFMw7uQwdeqO+eQ05+RXWPmxery5GVuKfAEVZiBWM5KDVjsL2kj/U X-Received: by 2002:a17:902:1e9:: with SMTP id b96mr4389182plb.277.1561638591081; Thu, 27 Jun 2019 05:29:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561638591; cv=none; d=google.com; s=arc-20160816; b=01AU5E3ci43HC6SjT2m9WnXQNkBPmrpw1RNjfDgXh8sfdt6WQ482LAC5QniA2hiFqf a6GoWXxJmY+BYhMSO2/9VNPXxI6Z71weIf+irYCsZjToSNPcRa+4FaxDcTLIkm2BZQAn QzA1yCcK52XwOvi/xwYGTESO67EU/idGFRpo+h1jXMr8QDvRp+r3Zbv/4G+El8jRRSQ9 QSvKZWPzUd4QN6qihHtNIWmeJjPdwgg+Onl3+ZBm+Mtdr/tBWluHUNXRymZ2cKXGpBCa YHn7kikBY0LT7DmtnrsieY0tdysh6qmSHdSlb6GRi5DZQJHK7nKisxP4oBMzx7rfMmBE nwvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=4orxW+BrgZwGTvuGp8iXCDH6KkXE/fztrniahcMZCP4=; b=0AaycdC6yB76VKXAKtUT2outpp+bK7pzaar4/DtyUAM8zv+CWMFYBxt7VmoVbnlfWR PIKQUFH+4QlhK72V1MMuWxQiVxkiyaAbyt6R3KocgP5AszxjeOy/cMEbInf9zhEU+CEt rpwfSrvD0IzonziKzO5mxY0NIQff6icxUbsc2uguB7FBGaXNCA+3Hmidq2LS4OfsBeJE k0nXrjEHGiqb/tmTu4risAbg7MumIjt1PZgYTS2XiekFNgu+w2NFgiBn8nQ75j0s9d+q SHraykbzYJyWV8oA4ie80H/rDortHgU28alx+P0NdG1PZsLYAYFTWbL6z4eSIOmOBy/Z /wJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=w3BzPGfw; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id a2si2130386pgj.54.2019.06.27.05.29.50; Thu, 27 Jun 2019 05:29:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=w3BzPGfw; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 6E9437E902; Thu, 27 Jun 2019 12:29:48 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mail.openembedded.org (Postfix) with ESMTP id B62A97E7D1 for ; Thu, 27 Jun 2019 12:28:58 +0000 (UTC) Received: by mail-wm1-f46.google.com with SMTP id f17so5484349wme.2 for ; Thu, 27 Jun 2019 05:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=7wYww8GRT31Fph8YSKmj608/GkhJOJOjqKb6Xh2UcZM=; b=w3BzPGfwcYsrXG8eVYWDfILHwofZTIzITdom7J/GJxetPbhEsAmvoEBLXhV1uIGHGy CpHAhsdvkgfsbUyLGosR02SN1uJ52JuklV84GpmERVNvDOmZQxoM/73DeQYRfHz5PUIk NI4QCNo87zgEYPkVScLyvQ/x2fj6eZLPrhm0syd/ESkFkCKmDg8VPa3ZS0MxLp0tccgG nWBOZOESEj1ZPMBRYu18JYhdU+yBfuPAEeK5zduqW6TKO7F+pnJ1onpKDFpxZqccHRuN bX/rryjsmQT7H8tLBQM+VOeqL07o+w04lxUPpzBp3qeG9MVzI7eWju08Tz3xYWKtwJL/ SpuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=7wYww8GRT31Fph8YSKmj608/GkhJOJOjqKb6Xh2UcZM=; b=IyLU8dEn8uAds+Byn5bctzZz/5gEp10NEjk7E/fE1fP4YLQWf/szASbdE8pimYBTiy Z5TlsPOa0QOG6zqNPEzRPzPuVCNusCubG/4r+gMbBM4bZ0yAsPopKb6qC7uhkTe69k/N dqa1xQY0H5dXe5IoFm32L8eILcrrdrWjPgzYLFopO+Vf8LCLe3gbHPUeFQf4spptFHMb oZHb7qNG+fFoV03J9JlMVpKIv6ZocZtJfnRKF4auMfT5DmBn2apOWuoSGqi2CN8S0r2j yJR7GOpr2fN5q+aNEk6T0v/RoOp9n+kkZb2JOIErgRLd6XA0rEnHCvf+itQNRdRhK5mN JNXg== X-Gm-Message-State: APjAAAW/ICDenzPRXG3pCfSxRs3QdYqZoAzILDBZh3yVx0oe4UearUsJ IjHo6zbAlwENqWVnagGIwc5iFxAREFU= X-Received: by 2002:a1c:f20c:: with SMTP id s12mr3289191wmc.151.1561638539330; Thu, 27 Jun 2019 05:28:59 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id f2sm1371248wrq.48.2019.06.27.05.28.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 05:28:58 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 27 Jun 2019 13:28:54 +0100 Message-Id: <20190627122854.28435-2-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190627122854.28435-1-ross.burton@intel.com> References: <20190627122854.28435-1-ross.burton@intel.com> Subject: [OE-core] [PATCH 2/2] buildhistory: report sysroot changes 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: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Now that the sysroot is written into the build history, write it out. Signed-off-by: Ross Burton --- meta/lib/oe/buildhistory_analysis.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/lib/oe/buildhistory_analysis.py b/meta/lib/oe/buildhistory_analysis.py index 62c7a2e58ea..8af76c6b3a3 100644 --- a/meta/lib/oe/buildhistory_analysis.py +++ b/meta/lib/oe/buildhistory_analysis.py @@ -181,7 +181,7 @@ class ChangeRecord: diff = difflib.unified_diff(alines, blines, self.fieldname, self.fieldname, lineterm='') out += '\n '.join(list(diff)[2:]) out += '\n --' - elif self.fieldname in img_monitor_files or '/image-files/' in self.path: + elif self.fieldname in img_monitor_files or '/image-files/' in self.path or self.fieldname == "sysroot": if self.filechanges or (self.oldvalue and self.newvalue): fieldname = self.fieldname if '/image-files/' in self.path: @@ -571,6 +571,15 @@ def process_changes(repopath, revision1, revision2='HEAD', report_all=False, rep elif filename.startswith('latest.'): chg = ChangeRecord(path, filename, d.a_blob.data_stream.read().decode('utf-8'), d.b_blob.data_stream.read().decode('utf-8'), True) changes.append(chg) + elif filename == 'sysroot': + alines = d.a_blob.data_stream.read().decode('utf-8').splitlines() + blines = d.b_blob.data_stream.read().decode('utf-8').splitlines() + filechanges = compare_file_lists(alines,blines) + if filechanges: + chg = ChangeRecord(path, filename, None, None, True) + chg.filechanges = filechanges + changes.append(chg) + elif path.startswith('images/'): filename = os.path.basename(d.a_blob.path) if filename in img_monitor_files: