From patchwork Thu Jun 27 12:28:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 167969 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2280641ilk; Thu, 27 Jun 2019 05:29:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxccBLB7gyLjNqGFMak7tzLvC0Ssckn5+sVV4XEZH7HVjUg5lkN0bAPYmvQgFmJTmMSHN7e X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr4577719plb.56.1561638549359; Thu, 27 Jun 2019 05:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561638549; cv=none; d=google.com; s=arc-20160816; b=cnInI2wIl0k3U2aP3RqLO4QHWFq/peU+Y+c5wwfK7RksTbAeGla6ZPECNz1YUAH14a OBL/oDIxX2Xk/AYSow2C7mYcFcep6fuEN5YN+3yRWCQBtdFWXFfvshbQEEpM5eMGdZIS vAjNrF22YQSWAslYSSXAEDOXX2kEknVFjn1TA5yrLekc10gPZedaTPhRyC807gJjhK23 EREj5l4UU7cF3jmeQ8Ko3LhWyLCPjfxiMI0W0RgyoWFhSaU3rOZmU5wDkUXDGb8ciIxE L5eH9tiy4wRoo9UI3nDeJ6nrbJKO28wTneqUhUZFI0TGmHIquSh9SKEVTJ2bN8rQFc8I vRuQ== 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:message-id:date:to:from:dkim-signature :delivered-to; bh=InYARL1KwDJPA8FybSpj8fDJ8/qDs9lZx908WsSU5oM=; b=gn5ZYLSh/YB2KIzs1pc6oAtgO7bstO3GWN1Ej9NmuJe8un6obn39g9P+iVgfln3iQ/ 3EHPqXMrCYbveiDh5cU2t7bMaW6VDA1T1Bbm1t6Skc7x8+ZMHvUWX7HOt6acXIZZArEU QQYUX9W60f3Bpjqx6nj4C8USX+iwHeQlozeIDXHw954Wycdfjmyfv+7WGj7PUpC3B0Rv HM/6+KJwKRxIQIFH6YyyejzTRKRQ0pVfndwKy99loGgWLiqM5c+72O19KRCjT2oAYzWj Vuf9qn+0p0xQBNEfsvc56qBM1jcFp7AtMYj8lIEQpgumJrUTdwYbtFv8q2VKBdcoAQQo v7iA== 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=lMdbvtjM; 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 d18si2631727pfn.202.2019.06.27.05.29.08; Thu, 27 Jun 2019 05:29:09 -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=lMdbvtjM; 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 4F06D7E901; Thu, 27 Jun 2019 12:29:00 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 2A6287E7D1 for ; Thu, 27 Jun 2019 12:28:57 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id a15so5545861wmj.5 for ; Thu, 27 Jun 2019 05:28:59 -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; bh=s/Rhgsp4M0bD57MKHQoBfJ700FdE6BXkaanEakDxsVw=; b=lMdbvtjMUXZkKZwPd6KUv6AIfFuAqrAH7JC87+HdJRUqYoK/eBSoGth0HOTdQKgdLm 5QdorAi7wjW+x8pFlEaFo9hMwrcnJU0BpKCTCvb8+JbDwGky0YkJ/mh0cg8qOHH/TcAc v8vOHtdL74cJOARBJc9UzphNFOimjRkKsRClNoa8IFoBo0ADyJLQ4+BnEq9+W8lui5Op +mG3mp11s680MQl3ZLHrr8iiGo2BVryu+qJrkb5R2OliXDBm1DVJQg423LZIqXHV/ogr TJIYN+a7cfd6rdePXyjiRZdsPSM6sckIrxROUl7oPdzm+6OOs63U2hI4aPNkKhfRJhLU 3eUQ== 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; bh=s/Rhgsp4M0bD57MKHQoBfJ700FdE6BXkaanEakDxsVw=; b=Mr9Y+y9Jwml+tXT8bdgD+qq+iOGOcxnNrkapx9Koop9NHA19WL+OiiUDtfkeJw8wzI 2MbIF9dW2q2VWTjGZQ0OEBsVtmS2OujUUUZgdNZw/8LWJLPEbpdvEBs/sHVpyRIeM2Q1 VQNpGi500d9lULVwMU3d7156nWXT2QNxcXZjmP5qVdak4ZVRe6uXHSAVsSqNgfRO8Xc7 X1aoM85GmxhC6okhvGmYuuiyuUKuEa3xsmvyddYtLy0E+iF/v+GgyKqY5uSzoCEqfTnV 9EQtPKFIH8CuO5q78i4npG3N/IXk39WDcHrujHYaaWCS+A7F7gKl9cjWvuwgbqPFZPjv o5HA== X-Gm-Message-State: APjAAAWrZWO1khtyNNUYZLcRTeSBpMGaZELxdkLGLBNoj08IM9cnvvsz NBl5qEtMvL2lTFbesCDN3UouogpRbc8= X-Received: by 2002:a1c:96c7:: with SMTP id y190mr2821271wmd.87.1561638538369; Thu, 27 Jun 2019 05:28:58 -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.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 05:28:57 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 27 Jun 2019 13:28:53 +0100 Message-Id: <20190627122854.28435-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/2] buildhistory: write the contents of the sysroot 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 Changes to the sysroot as just as interesting during development, so write the file listing for the sysroot to buildhistory too. Signed-off-by: Ross Burton --- meta/classes/buildhistory.bbclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core Signed-off-by: Ross Burton <ross.burton@intel.com>
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 2e501df24b4..baa7c8e2799 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -60,15 +60,23 @@ SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs" # When extending build history, derive your class from buildhistory.bbclass # and extend this list here with the additional files created by the derived # class. -BUILDHISTORY_PRESERVE = "latest latest_srcrev" +BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" PATCH_GIT_USER_NAME ?= "OpenEmbedded" +buildhistory_emit_sysroot() { + mkdir --parents ${BUILDHISTORY_DIR_PACKAGE} + buildhistory_list_files ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot +} + # # Write out metadata about this package for comparison when writing future packages # python buildhistory_emit_pkghistory() { + if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']: + bb.build.exec_func("buildhistory_emit_sysroot", d) + if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']: return 0 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: