From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6473366578589073408 X-Received: by 10.28.114.6 with SMTP id n6mr154661wmc.15.1511268278032; Tue, 21 Nov 2017 04:44:38 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.199.201 with SMTP id y9ls261865wrg.10.gmail; Tue, 21 Nov 2017 04:44:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMZSD3ukNtYU2GKJqDzYnnm39KdjsSVd9CZLdqJjS1nKKm29w/oBqolcrFKx/3LV8PWhnNht X-Received: by 10.28.93.213 with SMTP id r204mr23987wmb.22.1511268277686; Tue, 21 Nov 2017 04:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511268277; cv=none; d=google.com; s=arc-20160816; b=p6fJ2mDH/u/rX6nG8kEFSVRtddeob/DQGTVCwnxiT7V1lgsJ9c/WSPVgTaaiWKLivA kYel/oF4VhyabKNMJaXM0HMOZ5bpI+eW0odO3hyGfeKFH30iPf3XaINoBxLFZfRiNEx7 9Rn5xWQNXg/zCbCA/Ru3tqLp3KAj46ojgdFHoWxs9waK6jkvnzsPNkG8rzBH5y0ZSXYG iYxmTsltf1AQMHMqnRzXiIcYqlVBKmAUmKX/by//unp6vvQWJCi5nqOkhA7qzBdgo4fj qQgfqwDeeDjWBhMimo1ghFVqX2ud2gfP2WQUUOmAswbcJq4Pp90ER9X6ta7+TqRIk6Ya Q3GQ== 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=g3niZKw73PXIT6SY1kodZBhLn4Z4FfCCySqAR76aPrY=; b=IP/sxiZJUoDBGSr9aCrw9vnD7A3S3KS+gzQA8YK40PGWJ6B8dCM046isemIpydygVl leBjEHIrBePoS2fqKLFXjDDuG7HjiYs0Kn4VcFwc1TdIt5kAZk+ZXhBHlpcsiZjeRUp0 27VgtrPTswoq7duW8O9MEZbGD7QrIJPnoZxT9+B0cuIYZXgdo7ZF1C3iSPydVHRosskX RYDagj/NXH1iDITgaPUsBrDrUYyDXY9rMVUNTJcgHqoDsaZAfB5tc3ZDS6A1crHuXXyl A0w7UtMAtoHd00aurAnmfb3k591nwa3KbSG0kY2LEmvtlRLryqkSAY0oiEtjWacGmhrO spWA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Return-Path: Received: from goliath.siemens.de (goliath.siemens.de. [192.35.17.28]) by gmr-mx.google.com with ESMTPS id 95si258871wrb.0.2017.11.21.04.44.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Nov 2017 04:44:37 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) client-ip=192.35.17.28; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of christian.storm@siemens.com designates 192.35.17.28 as permitted sender) smtp.mailfrom=christian.storm@siemens.com Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id vALCibYR004197 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 21 Nov 2017 13:44:37 +0100 Received: from localhost ([139.25.69.251]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTPS id vALCibsf025546 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 21 Nov 2017 13:44:37 +0100 Date: Tue, 21 Nov 2017 13:43:17 +0100 From: Christian Storm To: isar-users@googlegroups.com Subject: Re: [PATCH 0/4 v5] Isar apt deployment Message-ID: <20171121124317.dr5sq4ll6rysxsc6@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: <20171009140006.219154c8@md1em3qc> User-Agent: Mutt/20170113 (1.7.2) X-TUID: +IIQ5yYK2dNB > [...] > I would suggest the following changes: > - create one task in dpkg-base.bbclass that does the following > - config and init reprepro if no other recipe did that before > - add package > - use bitkages task[lockfiles] to deal with races between recipes, > put distro into lockfile-name so we have one lock per distro > - drop do_populate > - call the new task instead of, or in do_deploy_deb This would be quite useful to source builds with dependencies: Consider three source built packages A, B, and C. A and B are -dev packages to be built prior to C. Both may have dependencies satisfiable from the Debian mirrors. Then, when building C, A and B have to be installed as build-time dependencies into the buildchroot prior to building C. For this, the DEPENDS= may be used in the recipe of C to install A and B just like with any other dependencies coming from the Debian mirrors as they're in the reprepro repository that must be made accessible in the buildchroot. For this to work, there's an apt get update needed to refresh the "view" of the reprepro in the buildchroot after package addition. This update should be restricted to the reprepro and not update from the Debian mirrors. Currently, installing A and B into the buildchroot may be done via via dpkg -i from DEPLOY_DEB_DIR/{A,B} but this doesn't handle dependencies. Having A and B in the reprepro repository, and this reprepro repository being available to the buildchroot, an apt-get install {A,B} derived from DEPENDS= would work. Kind regards, Christian -- Dr. Christian Storm Siemens AG, Corporate Technology, CT RDA ITP SES-DE Otto-Hahn-Ring 6, 81739 M�nchen, Germany