From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6491554293275951104 X-Received: by 10.46.7.65 with SMTP id i1mr2773760ljd.3.1512984231247; Mon, 11 Dec 2017 01:23:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.17.16 with SMTP id f16ls905554lje.8.gmail; Mon, 11 Dec 2017 01:23:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMbcA4s+jD0K1tae9yvR2nZo2KAPMb7FHgO+HMCdSH7LDK1VQzErW8RA/MXCS/mlNV+8FgrP X-Received: by 10.25.18.160 with SMTP id 32mr2383359lfs.6.1512984230575; Mon, 11 Dec 2017 01:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512984230; cv=none; d=google.com; s=arc-20160816; b=N9nc+AyDupVZH2e2AgLCOM38rof86uekQp4xirhBbjWAYYsk+BL6zGW10RWj3OMyi5 sMlstizlsIMtFMXoqfB5jzb9EJzX1bAn4G/Ae+jsGPNJLOqnfR8tPD5ScIUaKeIZxpzQ mSn1o2F3MpSmWNaK/K4WYuJG/SVdOrBx76ooGvlw0LVq9forrvhp6jfFn3T9obCnItdL 5pEHD62qngFuvL4pambkHIW2ErO/X4BVuaHqD5luWzvd3pj7ORg0M/VrcmrtvtsJ6Kjv xxNrK3GcjW2AgttjPfvJ41fXqEUqfw3T+3iVdlR+z/RZU1lDfqzk3tc39TdtQpO0OhHX cRlQ== 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 :arc-authentication-results; bh=vbl9/ImFRXgeSTQuznya6rY+A/6tKFT7f4LlpozolgY=; b=NeR7FZ3wqdxcqM9fN1csF8nwOJluS9CtPRMnenAz2IIU/bcLp1HCJFSs30x0LETjai o1Z4PGiRMn/nfedpj/MIqkrzWHsymQTL8I+5/noZCIoyq7GKHCRlxFK+Tn0iMDwAZcPI 6aIzJ8xPC4tX9oZZ1U4YubO1dZRlyLj6QvQ/0ysxHiD+MopQzao/rhSjM+7rYb9d5WVI fCq+Tw7Gn4x4YQzOxiQf0RxqaiuBxZVxrzywhiSl6xK7udOhJ2grYlnsQeZmWyfTs7yp Ga3bpA9jSWB0ekm6n03tF4ooseU62BrDB/0Ec7YFWa/QZca713PB7An5XVNDCQ5D7mJa 2YJA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id q27si1381994lfd.0.2017.12.11.01.23.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 01:23:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] (client.yota.ru [188.162.64.106] (may be forged)) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id vBB9NkZk023207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 11 Dec 2017 10:23:48 +0100 Subject: Re: [PATCH 3/4 v2] buildchroot: Add prepare and cleanup tasks To: isar-users@googlegroups.com References: <20171208075806.dxvaf7harsupg7co@MD1KR9XC.ww002.siemens.net> From: Alexander Smirnov Message-ID: Date: Mon, 11 Dec 2017 12:23:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171208075806.dxvaf7harsupg7co@MD1KR9XC.ww002.siemens.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: CDykUR6pRPey Hi Christian, On 12/08/2017 10:58 AM, Christian Storm wrote: > >> 2. 'do_cleanup': This task is executed after all the packages are deployed. >> Some notes: >> - This task also should not have stamp. >> - This task depends from the recipes listed in IMAGE_INSTALL. > > This breaks build dependencies when building two packages from source > (same example I've given in other posts as well): > > Consider A-dev required by B, both to be built from source. B cannot > install the A-dev.deb since B depending on A-dev's deploy_deb() and > installing it the ugly way via dpkg -i (as no other option is currently > available in Isar) puts B as late in the task order so that it's git > repo is not mounted anymore. Failure. > > If A-dev installs it's produced .deb as last step in its dpkg_runbuild(), > which is also ugly, then there's a potential race in dpkg. Failure. Seems I don't fully understand your usecase, could you please comment if it's correct: 1. You have two Isar recipes A and B that build packages from source code. 2. After building of package A, apart from binary A, A-dev also provided. 3. Package B depends on A-dev. Also, have you added dependency from A in B recipe? -- With best regards, Alexander Smirnov ilbers GmbH Baierbrunner Str. 28c D-81379 Munich +49 (89) 122 67 24-0 http://ilbers.de/ Commercial register Munich, HRB 214197 General manager: Baurzhan Ismagulov