From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6491554293275951104 X-Received: by 10.223.150.115 with SMTP id c48mr3309484wra.3.1512719991718; Thu, 07 Dec 2017 23:59:51 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.185.105 with SMTP id b38ls224605wrg.1.gmail; Thu, 07 Dec 2017 23:59:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMZAE2HMT0FLSeWbKpQEQdJz0cK6jIgwxeWprwX/5yPe17lD8akCV4CLv2pP3jQjDIx07eiJ X-Received: by 10.28.190.16 with SMTP id o16mr457672wmf.22.1512719991381; Thu, 07 Dec 2017 23:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512719991; cv=none; d=google.com; s=arc-20160816; b=06HO302J32T9fuKViXgA/CmOIKNDey4YXLMdOE/mw7TWCCEBrCiCWEWwPbk0kmqfT9 2w3BhfOp7EHkpSO86p+Cc5aifbRp5nLGzXkjgNUVlyW+c8wnynYD19HVoqlJnhw3aXsf e+KmDdTeejMqD3xgYG7sSMUS+IuL0rxb5c+TBt2QR2xBMvUNfh3IUuTk79FiGWGnwalF b0B66pXfH3EB5Kwk2m3cuXManuC+4rwb4QzTCeEtViwMdyVDGEvbbOekGRJ+XmefrLVk zN3BfOtht/znLdVp9CS9wgnJdPgsyKLma0lQDNdEWFtXkMzJ/ZHN6RrbdITFd/hQACQj 3mIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:to:from:date:arc-authentication-results; bh=iFZPqDOFrS90Vp1K0XoeuDoGEq2spY+QnxyzXVTZvMY=; b=BekAvU76RrwT+zUonHI406fXyDDCKrXbinuyDvufkzhIJ8EtCKsRp6JeDkZHeerHGD +doLapWAP8STbUNTCu2+wgNUgAHWwV3CUDjL8MeaqR8HV3m1ya6xFIsiyV9lQT6q5+O+ LA2ThMdhwkAOy+ADvsvoZ7g7d3aa1kAmYsfkE9whVvo6ymDQHtD2cAlk6dspVg6v9Wuh uUmwdsfm0On8GwLlXYtvuKQtZJMKEybN71IvgmFQtBq83SGBy7H1lTMLyXQ6IKugN6S0 PRICjv/iCj+LBh7tFfbTCGjFPui4YMJtmP1vzFHELakTfDgK8YHxhhbbmzfANipgRI8E cQVg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id t37si926655wrc.3.2017.12.07.23.59.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 23:59:51 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id vB87xp5f025870 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 8 Dec 2017 08:59:51 +0100 Received: from localhost ([139.25.69.251]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTPS id vB87xoRG027140 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 8 Dec 2017 08:59:50 +0100 Date: Fri, 8 Dec 2017 08:58:06 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: [PATCH 3/4 v2] buildchroot: Add prepare and cleanup tasks Message-ID: <20171208075806.dxvaf7harsupg7co@MD1KR9XC.ww002.siemens.net> Mail-Followup-To: isar-users@googlegroups.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20171123102532.26274-4-asmirnov@ilbers.de> User-Agent: Mutt/20170113 (1.7.2) X-TUID: M5YoRwiHKYch > 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. Christian -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany