From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7194369433132859392 X-Received: by 2002:a6b:d907:0:b0:71b:796c:851c with SMTP id r7-20020a6bd907000000b0071b796c851cmr600073ioc.50.1675083697029; Mon, 30 Jan 2023 05:01:37 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:9b8b:0:b0:6de:dad2:59ac with SMTP id r11-20020a5d9b8b000000b006dedad259acls2533271iom.4.-pod-prod-gmail; Mon, 30 Jan 2023 05:01:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJqMaRuI3gd10FeVfqLlwxKvdUANb60QnISoK/f0PQ8IC//X92o2InkSODFQqIe4rwARt5 X-Received: by 2002:a5d:96c3:0:b0:6e0:256d:547a with SMTP id r3-20020a5d96c3000000b006e0256d547amr35798785iol.14.1675083695827; Mon, 30 Jan 2023 05:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675083695; cv=none; d=google.com; s=arc-20160816; b=fCqcSD/0lheWb1CcVHmB5+CNecSPjR47o7elGHK0szCT4GH3JRmGu/iZTh8O9yJsSA pBqaQUdJbFTPD5TiiqB67Rdr95r2i/3T+9F56Cc0f8WLHTN2NuDzOBZxmFcxl+hmLBXJ Sft4sebzL7Pxl44Rniz2UHIXd8HwL6ZBEFMKq8hbeKQ7lTliQCt4wU20kYC78Fc03iPC 8Bpwm4ZYFhwO2mOmOujqZLHip5yaLRTeDXTegfOoTasW/AL8KgkKUQoSgI2+l6MoVVXC xcx6UzTX2u500wVDWI/ypIOgZNBPc+WlC0N2DmuamVC1otNg1qqdxu+Y+v0tMBkl24kG Jgcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=x/8+ZXiDkO61erj3RdU9siFFLfaMIBCKRWl4iJqNqLU=; b=VKHXsi+FZt1wQO+fx4CgpixtNLonYm2s/eQIQ/EyBWCvMjh1ggWvETLoaZ6lFz6CMJ bUNOcjpNW+D+iowguEVnyDfMRECj8ecto5KcbJkd6RDGMlj7UwIXnCjR1Bpi2/+Z61zU pi/Ox6iayu4FiSW83mFfkqjkRBMthEiTpgsl2esBfhGkB/cnAvil6E4AxkWQCdyN9tdX b0ric99y209VhLTw8rybfIRjakEtE2GxhmG5S4uR7LCruHne6HCAH5AHrKkURY+5qha0 Vc4EvVGtIp8nmQaae3l59Wojxh0ZE4rBb6R2YEoRrAMBzgVWuWMAx/osBQTKW/3Oaimc N8iA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MAMhJIz7; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f35 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com. [2607:f8b0:4864:20::f35]) by gmr-mx.google.com with ESMTPS id i22-20020a056638381600b003a84517979dsi1275495jav.3.2023.01.30.05.01.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Jan 2023 05:01:35 -0800 (PST) Received-SPF: pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f35 as permitted sender) client-ip=2607:f8b0:4864:20::f35; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MAMhJIz7; spf=pass (google.com: domain of roberto.foglietta@gmail.com designates 2607:f8b0:4864:20::f35 as permitted sender) smtp.mailfrom=roberto.foglietta@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: by mail-qv1-xf35.google.com with SMTP id j9so8860657qvt.0 for ; Mon, 30 Jan 2023 05:01:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=x/8+ZXiDkO61erj3RdU9siFFLfaMIBCKRWl4iJqNqLU=; b=MAMhJIz7bpCcwwEIqu7ylI7/9yhIGAKMjJr6sR3HD+1rr3A5lERnIS1UhWAcBRuiWs /meiKzlZiZNqX8U8gx0qEKNk2YOL4xdiJXtAecjUqpwFcc3dSk0MExeOdA16TiT+3B3d W0ieLBEPtU93AsWjM7HXn4qnv/zNcNsoIT/4MXVrZpXeGKmGibfDVWmhfY2mNfX+ATHx EPsxWN60JY4FtwDWBbCpHAIDbkOIzzLfLVcdx2ckbP5Qd+Q/hCOS7J0ahuWDAtYaNlRM J3AMbgCNxAUa89x3nRiGVcY0zFMgkX+I9OxiWJW6N+VT7ftmkreU3ObRH5zrWImjTrPw 8XoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x/8+ZXiDkO61erj3RdU9siFFLfaMIBCKRWl4iJqNqLU=; b=Szmwn5/iM9Q53g7ffYjqrEaje9TygjHoTYOwUhyt9BTjNK+0Nat1MMlSx4gEg06rRS tE77qtjJyn1sUqM+Md4o/ZqGj2B2MJOVUqe2Dkxu8eHQUpInvgo6ljbO8jqWAKZOK5e7 kV16aNnbFOP+xS0t+UmbW0jpqtX+jFRh6EG8pYsEBe7Wgm20XhRqi03N80mBOiPW02M8 Vre91CBXRfXCVfcxEZQtvwvNpwNwEfmUfxcGI6TV2HgXe4UyeiXxcnH/EbII7+Xk/u25 dXI6VTZX+Nm9NfJmgO22Kc/qRZpIrEuTS04KEQ47wjzsWg3x36WosxqC4e/0vVPzRsvI P5gQ== X-Gm-Message-State: AO0yUKVZZWKENOL5flF6TPzkWxGvU7Dj41vnWn825LOgPn6iW88mjxbn s3kAbSfyD/oNii0tHzIk323WQ3q4uhsA3fF7Dg== X-Received: by 2002:a0c:f903:0:b0:53d:9aac:dd60 with SMTP id v3-20020a0cf903000000b0053d9aacdd60mr45630qvn.79.1675083695178; Mon, 30 Jan 2023 05:01:35 -0800 (PST) MIME-Version: 1.0 References: <20230130090741.5317-1-ubely@ilbers.de> <20230130115353.067f0d5c@md1za8fc.ad001.siemens.net> <2601af9e373c6756e6adad7c6128a3acccbbc793.camel@siemens.com> In-Reply-To: <2601af9e373c6756e6adad7c6128a3acccbbc793.camel@siemens.com> From: "Roberto A. Foglietta" Date: Mon, 30 Jan 2023 14:00:58 +0100 Message-ID: Subject: Re: [PATCH] Reinstall imager deps if package in IMAGER_INSTALL has changed. To: "Moessbauer, Felix" Cc: "ubely@ilbers.de" , "Schild, Henning" , "isar-users@googlegroups.com" Content-Type: text/plain; charset="UTF-8" X-TUID: Ri29o/yEQemw On Mon, 30 Jan 2023 at 13:28, Moessbauer, Felix wrote: > > On Mon, 2023-01-30 at 11:53 +0100, Henning Schild wrote: > > Am Mon, 30 Jan 2023 10:07:41 +0100 > > schrieb Uladzimir Bely : > > > > > When debugging packages in `isar-apt` that are in IMAGER_INSTALL > > > list, they happen not to be updated in the resulting image. > > > > > > For example, in case of u-boot IMAGE_BOOT_FILES is used to generate > > > files for `/boot` partition. Buildchroot is currently used for > > > extracting required files from `u-boot`, `optee-os`, etc. These > > > packages are installed in buildchroot via IMAGER_INSTALL list. > > > > > > Since modifications of the packages don't change their versions, > > > updated packages don't go to buildchroot, so previously used > > > versions > > > are wrongly used. The following can be seen in log: > > > > > > " is already the newest version" > > > > > > This patch forces reinstalling all the packages from IMAGER_INSTALL > > > list if some of them has changed. > > > > > > That makes some sense anyhow. But we should really watch out for such > > issues and demand version bumping when contents change. Maybe not for > > every recipe. Or we should include all recipes for IMAGER_INSTALL > > into > > the sstate input so the cache gets invalidated and the chroot gets > > rebuild from scratch. > > I agree for packages that we deploy. But especially the imaging > packages are often local-only and specific to the machine and > configuration. By that, we should not require versioning. > I agree but because possible dependencies between our packages and those are into the standard distribution,we would need to install all IMAGER needs and then reinstall our deployments which does not change very much but is slower in most of the cases. IMHO. More in general, I think that we need to save - also in the sstate cache - with our packages a md5sum signature just to have a way to check if the package has been changed at binary level. This will work better in conjunction with your patch for reproducibility and moreover, adopting mount bind for the sbuild, it might give use a local reproducibility to make the md5sum signature even more useful. s/md5sum/shaNsum/g Best regards, R-