From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6521574336665485312 X-Received: by 10.28.160.18 with SMTP id j18mr242149wme.15.1518544677556; Tue, 13 Feb 2018 09:57:57 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.29.85 with SMTP id d82ls1740575wmd.12.gmail; Tue, 13 Feb 2018 09:57:56 -0800 (PST) X-Google-Smtp-Source: AH8x227vMryjDXMc7QU3je3q4kYRdfe60S6vAszA2TZBqsRodWwFkotPLHEXGNFB6LQ2GrklU6ci X-Received: by 10.28.239.20 with SMTP id n20mr247913wmh.23.1518544676930; Tue, 13 Feb 2018 09:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518544676; cv=none; d=google.com; s=arc-20160816; b=Xt4gV/e2IzHw2fzLbG7oCdBjlxuLFZWz6B3+OdgjYlHN3bAFmrx2qGtqZHzt+a+x0N YvnOAhIVhGR/X0QlGFi/l1lwNztfAsSbk27g5wrcajbqrXgvNqHAt0vieDJgJGk8D2NG XJZQkPOVsC/UkeYGgRrwU5mYnwc5JSFaBR3kV8loXQlhM+iQ07LxAx6Spzc+H/iJMnZo j4ZDWVZRVcKMWSbnNP+pYZ4CYWcoMsRjMIc7Y5d8uTi8yYiDTx3tcE7zCbaZddKj+Y2X NfrVqjSMJD/bPMZeaFpymovDeGYgu/+/dqLt9Geu/4KzIXKU7Zdw5x4edBfE2MboDQIU GdBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:to:from:subject :arc-authentication-results; bh=BsxZgCHm+F8TxiboNxJ0lCx4cJVdffdbmlBOPin9/wM=; b=BnDLjDKT87h1ylFhOfSJd/hRVxvNp9sF+7f0Dn7+iGS88jR1PlOZ6WS4ZoMAb2cAmg jRzJln6LChy7ej1UgDEkbdLhsVoDiSxJ44AyPzXN3IdZWFVDtM+BesKTPb405Ryjz5SP NOS68S3ZtqZrCMjbgOrOJljGuUPsIO2HGA7OlKK2fgOOUp7i2kLYixTI4fs+j2nsGk5d FmRHzu2DBrVo1jCjFfpj9lUsBbj/q6hUVNMPXY8BC9O8GtO41VpZ4Ir5L4KA/Mg7wbXL HLd08u023ho7wTChGRagZyGmqGLm1HOROmXRUx/4ZtbGIkFYW4SWDZjv44xh5VNPe+EO i0AQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id b10si448538wmc.0.2018.02.13.09.57.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 09:57:56 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w1DHvuaK021802 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Feb 2018 18:57:56 +0100 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w1DHvufg029243; Tue, 13 Feb 2018 18:57:56 +0100 Subject: Re: [PATCH 4/6] Enable proper rebuilds on dependency changes From: Jan Kiszka To: Alexander Smirnov , isar-users References: <7d0504da7640612abded5ffe1e1b3c6d10168b49.1518422347.git.jan.kiszka@siemens.com> <73bd323b-0dc2-a84a-ae5a-59177cfe6921@ilbers.de> <4b84a0e3-df9e-8343-ff09-7b74474a0e95@siemens.com> Message-ID: Date: Tue, 13 Feb 2018 18:57:56 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <4b84a0e3-df9e-8343-ff09-7b74474a0e95@siemens.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 5ymAxpngmPiW On 2018-02-13 17:21, Jan Kiszka wrote: > On 2018-02-13 14:03, Alexander Smirnov wrote: >> On 02/12/2018 10:59 AM, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> Install a basichash as signature handler and set the stamp policy to >>> full - and suddenly we get proper rebuilds of the image and all affected >>> packages when some recipe down the dependency chain changed! >>> >>> We are using the legacy bitbake mechanism here as we do not have >>> setscene machinery like OE. Still good enough for us. >>> >> >> BTW: have you tried this? Two years ago I tried it in Yocto and it >> didn't work properly, not all the dependents were rebuilt. If it works, >> it's a very good feature! > > Yes, I'm using it since this weekend for both Isar as well as > jailhouse-images development, and it helped a lot already. The only > limitation I found, but I do not remember right now if that isn't > inherent to bitbake, is that it does not detect changes in files that > the recipes carries in its SRC_URI (file://...). Then you need "-c > clean" for the affected target - which now works as well. > Found another issue, which worked surprisingly well so far despite being fairly broken: do_setup_mounts is not re-run on rebuilds. Should be fixable, specifically by avoiding to stamp it. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux