From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7194281147082211328 X-Received: by 2002:a63:1011:0:b0:4c7:ef33:bbe1 with SMTP id f17-20020a631011000000b004c7ef33bbe1mr5232172pgl.73.1675066551576; Mon, 30 Jan 2023 00:15:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:903:2cc:b0:194:6afa:c3 with SMTP id s12-20020a17090302cc00b001946afa00c3ls12148941plk.4.-pod-prod-gmail; Mon, 30 Jan 2023 00:15:50 -0800 (PST) X-Google-Smtp-Source: AK7set9GJtK0TGTdLFUpofvDQek8YGTWcBq6RK0bMXNeyplx+eAj/PyQltGTrB17f9XanJzKAZ87 X-Received: by 2002:a05:6a20:a028:b0:bc:a64e:bdad with SMTP id p40-20020a056a20a02800b000bca64ebdadmr8651325pzj.11.1675066550491; Mon, 30 Jan 2023 00:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675066550; cv=none; d=google.com; s=arc-20160816; b=M6Y2KFw65+xdbkM+ySUfuuMJCI/f2YlnDxkJD+JxcKwHDwQ7cJA8RZTMlJ9NEz2y+E M//zD7izmXrBlW8f0hLyrZ5EUbRsAkO/BkZX5xmhV7YiOENbsjvhIn7myqY5sGgoaLnY dx1CiQNzWX0UJit0ZrchAfWwFLDU02XtR0IwjsPcNUUq1+QIKAGtl55Eo6XgPq8byBCX LRQaFgoRq5TkXEaTWS7Ssij0OrKTi72iN07Q/VgnkaGpmX4g3pgssMeiJUeRX0K0Tu1B ssQfPuAgFx8gsIHxdUPNp5DtIAqjXTWAk5ClFcAUHLFZyt0E3m3iWKFfs/0bmoT9B0wN KXqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from; bh=2267GNDOEtnw+EYjEa4243iK761oFa6Ut7RnBt7Kt4c=; b=mVMt0kyN7Ec8lhjR6qcE0mfIIytWON/sJqxhIQJG/7mYhs0m4JGpppy1PGz5TNA5G3 bRDqR9lyYN/R3HzCesvxuNZNpGSN0FMegv9gzJCEqg7h+8PEH8OwBWTkRPK7I/hSILIT BbDKRe77w+iZZqfwK4RNtSN15tamD/MnaLWYGS6VYUJ+KlaF3dtXYmveU7sqn/lkjCoJ C1TSD5mFS/eHHzZb0b+fTMRch1Lodx1sZjgJzIvPnJStgBCP81gsgiAkndwFINZRuxUt QebcM1K7evRzSK1xMk1swroejKIMv0gZpBPc1es5q//KZfvzvgUR/qb6KExXUnh4yzad lTag== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id v11-20020a65568b000000b004e968328928si183532pgs.1.2023.01.30.00.15.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2023 00:15:50 -0800 (PST) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from hp.localnet (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 30U8Fkla015893 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 30 Jan 2023 09:15:47 +0100 From: Uladzimir Bely To: "isar-users@googlegroups.com" , "Moessbauer, Felix" Subject: Re: Rebuild issues in imaging steps with local packages Date: Mon, 30 Jan 2023 11:15:41 +0300 Message-ID: <2447313.XAFRqVoOGU@hp> In-Reply-To: References: <9d1cf95e1c65bb75e691e88a425495fd969e30cd.camel@siemens.com> <25779249.1r3eYUQgxm@hp> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: iKLUjn9BpA6a In mail from Monday, 30 January 2023 10:08:54 +03 user Moessbauer, Felix wrote: > On Mon, 2023-01-30 at 09:43 +0300, Uladzimir Bely wrote: > > > In mail from Monday, 30 January 2023 06:24:37 +03 user Moessbauer, > > Felix > > wrote: > > > > > Dear Devs, > > > > > > I just observed a nasty rebuild issue in the imaging step: > > > > > > When building a custom package that is later used in the > > > IMAGER_INSTALL > > > and IMAGER_BUILD_DEPS, this package does ONLY get updated on > > > version > > > changes. This can be checked by inspecting > > > log.do_install_imager_deps > > > and checking for a line " is already the newest version". > > > > > > I found this while debugging why a fresh build of the "Add BSP for > > > StarFiveTech VisionFive2 Risc-V board" (v1) series on the ML is > > > broken > > > for another user. The reason was simply that I optimized it locally > > > and > > > made changes to the visionfive2-u-boot-firmware, which were not > > > included in the final image. > > > > > > This behavior is different from how packages in the rootfs are > > > handled, > > > but I did not debug yet why this is different. Maybe Adriaan can > > > help. > > > It could also well be, that this issue is automatically fixed when > > > moving the imaging to the schroot. > > > > > > Best regards, > > > Felix > > > > > > > > Hello. > > > > We have a similar issue in our internal bug-tracking system, > > discovered > > recently. In short: > > > > - Image is built 1st time. > > - Some patch is applied to U-Boot > > - Image is rebuilt but doesn't contain the _updated_ U-Boot package > > due to the > > same version number comparing to the 1st build. > > > > It happend only with u-boot packages since it is not installed into > > the output > > rootfs (boot partition has another source), but is handled in > > buildchroot. > > > Yes, that's exactly the same issue. For me it is the "visionfive2-u- > boot-firmware" package from the mentioned series, that contains the u- > boot FIT image for this board (check Patch 7/7 for details). > > > > > > Quick fix with adding '--reinstall' in imager "apt-get install" > > routines > > worked well, so it may be used for debugging. > > > While we don't have the schroot based implementation, can we please > integrate that hotfix into current ISAR? This bug is really nasty and > hard to debug as it will likely only show / reproduce on the target. > > Felix > It would force reinstalling everything listed in IMAGER_INSTALL on every rootfs update, even if packages (fs tools, etc) don't need an update. So, I'm not sure it is worth applying this way. But temporary local modification of do_install_imager_deps(), for debugging purposes - why not... > > > > > Moving imager to schroot (it's under development right now) should > > also help > > to solve the issue. > > > > > > > >