From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6834022395126218752 X-Received: by 2002:a2e:b557:: with SMTP id a23mr3539659ljn.5.1603893150168; Wed, 28 Oct 2020 06:52:30 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:84c1:: with SMTP id g184ls646233lfd.3.gmail; Wed, 28 Oct 2020 06:52:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoIxFTt/hKuizFvOcTAFYbR9NRVmwKlCi3R3FnlM1R/mCPMOiSroE+5J12Gni9uO9scpsO X-Received: by 2002:a19:4cd:: with SMTP id 196mr2584564lfe.484.1603893148810; Wed, 28 Oct 2020 06:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603893148; cv=none; d=google.com; s=arc-20160816; b=z0hMX3tc27jWdcQtpTCiuWj0xRakyxp8i14r5w5xcQE/t1JJr89U3azXk8yfX8vFCZ WO0/BLyWxPZdLKx3W8r0LIstk2YSmOgvlXhnLRT3m06G1dds7WY1dMAlrYbjnFU2mE8b +a52vm5IZIr3lrRlPgBtpfdomvwGmwn3kNNExpMPuiAUd5WNWtjiH20Y2mkFndb0q3dO Y0uxCpJesne8JPfLuCzA1WtMLN0NvmkbE1gC8WljfPLRuuHD2Bh5M1M9ldxmVSUTkrDL rnHAXCXkQL73y9tpzZkSEHIMPcLbt2MlFYzSi63KOMa8BkqFAgRhWXqAvW407c3TKHOd V0Ug== 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=9iAkKWMrkB0ml4dGlp/k0Qn+s3RZ3AneJ0YEyot1V8M=; b=utjOh2kXoiV0GNHcMYubJ7O+kZz40AvcpUfT26egVUBtlMDwp/arDs5pDZN4aBqono b5jtYy+7jWV1vliQKpPjwaEBa3JECf6idCZPgbvCHkkkcQ0B9rRxtCeLYsncQy3o2m0i DSXtbcyZXWANK9mrjT0tHXzqovvVN19AhBpyG3HEiIGwaZ7G8iURwoZ1QkbjzDkAy/0d i9zf1AcWeZR2uF2pznDZQCg1tqVIvYlufcy8ch8EmhyshReZyNX/ajZBHxGOqVnglbi/ pWKkiQfGqm2EUnoyGaZCXkZfmE/3A6YF6eGVpwEf0XHJteX/SvgC4OScYC5HQWgCWmVH xkAA== 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 d18si132136lfb.9.2020.10.28.06.52.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Oct 2020 06:52:28 -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 09SDqRVw027484 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 28 Oct 2020 14:52:27 +0100 Received: from [167.87.42.1] ([167.87.42.1]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 09SDqRmx028756; Wed, 28 Oct 2020 14:52:27 +0100 Subject: Re: [PATCH v2] dpkg-base: Remove newly deployed debs from buildchroots To: "Kanagarajan, Vijaikumar" , isar-users , Baurzhan Ismagulov References: <20200823160636.GA11779@yssyq.m.ilbers.de> <390b8f4d4ad647fcb6dac505845d485b@svr-orw-mbx-01.mgc.mentorg.com> From: Jan Kiszka Message-ID: <03c83ddc-c901-1816-11d3-3552b9867495@siemens.com> Date: Wed, 28 Oct 2020 14:52:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <390b8f4d4ad647fcb6dac505845d485b@svr-orw-mbx-01.mgc.mentorg.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: VXgKgCNUxiNJ On 28.10.20 14:39, Kanagarajan, Vijaikumar wrote: > Hello Jan, > > -----Original Message----- > From: isar-users@googlegroups.com [mailto:isar-users@googlegroups.com] On Behalf Of Jan Kiszka > Sent: 22 September 2020 00:48 > To: isar-users ; Baurzhan Ismagulov > Subject: Re: [PATCH v2] dpkg-base: Remove newly deployed debs from buildchroots > > On 24.08.20 09:16, [ext] Jan Kiszka wrote: >> 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? > > I have a similar condition now. We build openssl with a patch downstream. Looks like with this patch now, in our setup openssl is removed from buildchrootdir, which inturn removes > devscripts(contains mk-build-deps). This causes other recipe builds to fail. Please see the log below. > I've proposed https://groups.google.com/d/msgid/isar-users/76603767-1d25-c347-f7b1-84d4c106e771%40siemens.com to address that scenario. We are using that in one internal layer already. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux