From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6834022395126218752 X-Received: by 2002:a17:906:8614:: with SMTP id o20mr4232901ejx.308.1598253410839; Mon, 24 Aug 2020 00:16:50 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:906:dbe5:: with SMTP id yd5ls2081610ejb.11.gmail; Mon, 24 Aug 2020 00:16:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8XAOMQwu2yD2vmrgCzHoZHr04wpgb8OGoBM/pATXF6YeJvRs7Y5IlSqTvgM/yB8c/Unty X-Received: by 2002:a17:906:bcf4:: with SMTP id op20mr4466713ejb.277.1598253409982; Mon, 24 Aug 2020 00:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598253409; cv=none; d=google.com; s=arc-20160816; b=YFNqbZlG9aWB23NJ14UVreO7x6GeJC51z+zuAxdxlw3wITdVtt5Oy+Gh5pmh5N8Uud JR2rIgpG2SMwKtOlEYm+W6YEYkkiraqeLn4xIrIOsbiuurrTXIO+yxTgCylBR8zzJQoI 9F7poNL3H5DKfcNh6CPAvYtAr1M8NjPC5nShUABmZHxSuw3h66kWgRs2kyZjh9H1fvAI 5pvXkqYAO5DX+IKuc+ckgzcrfn4eDYqpSZ3Tc3v5sHHGySe7Kb7O2iywX/AoaOtfYbxX 6WlmLsHNP0aQJGB1ZhJ7sic06lDQgwb3cbMb1amXjlbxInDPxTe1JtbwGQJftHUffQhm HW+g== 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:from:references:to:subject; bh=rOUp0BPnS2AWdQBKyQerxL+/oOxOEhhaG0BLzWb6xCo=; b=d0RKZYpbDPCIhmanGreAPDf4en6UlYvkwKqpOHdpsqLrkb8BCKRdn9qWj0DjnuYoKP A60M54pbWuMQArztoDWOIBj44cLOQLZP5LGAsuOiJx3s1r/iJvIEz9x3stOracFHppdq u0QPAXpafvLJKEe3Asm2f6BDxIPwyQs99YUoCGwg/xE/I2Aa2QjGqWThgqL1/rwDE676 iWQEboya0iSyKyXDiPULSNuHcGYMKPVP/XLjOxW58JiiJBS+FixzCVQQVFIJRZiC2J1e ygt2ps15jO/HAOe+Aq2uwsk38WgLWK/D6EwxifllhvmsBjSFEN6We+tI9dX9qB9H8Es/ b+yw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id i11si87717edf.5.2020.08.24.00.16.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2020 00:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id 07O7GnTg027051 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 24 Aug 2020 09:16:49 +0200 Received: from [167.87.131.75] ([167.87.131.75]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 07O7GlQ2030117 for ; Mon, 24 Aug 2020 09:16:48 +0200 Subject: Re: [PATCH v2] dpkg-base: Remove newly deployed debs from buildchroots To: isar-users References: <20200823160636.GA11779@yssyq.m.ilbers.de> From: Jan Kiszka Message-ID: Date: Mon, 24 Aug 2020 09:16:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200823160636.GA11779@yssyq.m.ilbers.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: xqiQl9woewSP On 23.08.20 18:06, Baurzhan Ismagulov wrote: > Hello Jan, > > On Tue, Aug 11, 2020 at 09:05:59AM +0200, Jan Kiszka wrote: >> This ensures clean reinstallation after partial rebuilds. >> >> A typical error pattern so far was that firmware packages pulled by the >> buildchroot-target were not updated there on rebuilds, causing the old >> firmware being deployed into the image. > > With this applied, we encounter random build failures downstream, e.g.: > > 1. ERROR: mc:pixi-cdl100-buster:desktop-shortcuts-1.0-r0 do_install_builddeps: Execution of 'build/tmp/work/debian-buster-armhf/desktop-shortcuts/1.0-r0/temp/run.do_install_builddeps.19582' failed with exit code 1: > mk-build-deps: You must have equivs installed to use this program. > WARNING: exit code 1 from a shell command. > > 2. Exception: bb.process.ExecutionError: Execution of 'build/tmp/work/debian-buster-armhf/desktop-shortcuts/1.0-r0/temp/run.dpkg_runbuild.16998' failed with exit code 2: > dpkg-buildpackage: info: source package desktop-shortcuts > dpkg-buildpackage: info: source version 1.0 > dpkg-buildpackage: info: source distribution UNRELEASED > dpkg-buildpackage: info: source changed by isar-users > dpkg-architecture: warning: specified GNU system type arm-linux-gnueabihf does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable > dpkg-source -I --before-build . > dpkg-buildpackage: info: host architecture armhf > fakeroot debian/rules clean > dh clean > make: dh: Command not found > > Seems we have a race, possibly related to removing packages. What I don't > understand is how it could affect equivs or debhelper -- we don't do anything > with them. Ideas? Which packages are you (re-)building? Debian packages? Or just custom dependencies of that desktop-shortcuts package? In theory, do_deploy_deb should be locked against do_install_builddeps. Anything that the latter needs should be available after the former. Maybe you are missing a build dependency in desktop-shortcuts? Try build that only over a clean buildchroot, that will tell you. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux