From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6478205302134013952 X-Received: by 10.223.134.175 with SMTP id 44mr1473365wrx.11.1508324710551; Wed, 18 Oct 2017 04:05:10 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.223.173.164 with SMTP id w33ls1140209wrc.5.gmail; Wed, 18 Oct 2017 04:05:10 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBpjAHrdHi0qH7x8HxeyF0JtHKawd14Qfkma1XWDyI1fDILUcNJbFtEpYB6OTMl4XdBnwms X-Received: by 10.223.184.197 with SMTP id c5mr1482065wrg.23.1508324710258; Wed, 18 Oct 2017 04:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508324710; cv=none; d=google.com; s=arc-20160816; b=zgRDciRn3ad2VMkbPG7puyd1/lGciTscr8cpuQcy6nFXf+uOHQKzUYnIAiQUsx4aoG K7XUfZlV4Y5lRfvyrci7ZTjQczRGJByHsaGgVSFvU2whWSoKzCia1LHXa6VbVRgTN4iM EJbXtQU6mUhn1nb5yJ1QGWRUsPB0Vtf/Nv7wUyJC30eXaHaup0FDaIpYDZfrHaVi8Oni EMnLasx3ho5cNpjjkmyZMCFm+7ItYtj7Uf8F9jG+skPmw8jMZrWsb0lef3FDLHOXmbro 3MrRF9Lbdf70DAYnx/LmWxnKXHoYuONHb66SvzcWN63cUndNecvriu8ku6zCXQGYIFAP R4Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:cc:subject:from:to:arc-authentication-results; bh=U9c24ZwYdDEzIYgdPdDuv71Kf36wJJQDMEya3wQnnlI=; b=zh0bTN6xEG9DDw53IR+z+EvIvSb0lV6fPlcXKrRDZSaTsYxYj8EfXpKgR+ASj2thJ4 +0077iD4CPH1fXqHcG/Hb8Mnc3DicJzbZqVsqfV9JFDX3zJDaxBA91vOwPcL4dqPgPQx cwky66CpA8FFg3aB8JTcqHRz/N1QyGKo11VFX9Ay/6CcxUZatRz32QQg1mPdyRgZi3tD TMLbvpX5c3a+80EL0rxwc5lxAvXRZTmyOQFlEHZoMTjVWO1KvBQybyju1gIwFC+Uqi1A qiAFnMKdx+7uPBpeGrXYn8mJsOtkHRlzoeuP2EJTI/iMLwffq/nPhljtPTXL4JCRLiZH tISQ== 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 m62si174204wmi.1.2017.10.18.04.05.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Oct 2017 04:05:10 -0700 (PDT) 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] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id v9IB56ar026237 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 18 Oct 2017 13:05:08 +0200 To: Henning Schild From: Alexander Smirnov Subject: Isar apt further steps Cc: isar-users@googlegroups.com Message-ID: <34795e4c-b50c-7799-d59d-9205a0413354@ilbers.de> Date: Wed, 18 Oct 2017 14:05:01 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: U+/COSAorkFM Hi Henning, I'd like to start separate discussion about further apt steps because previous series was applied before your last comment: > - create one task in dpkg-base.bbclass that does the following > - config and init reprepro if no other recipe did that before Hmm, in general repository generation should be performed only once, moreover in most cases it should be done for dedicated Isar image, otherwise no need to cache binaries to apt if it's not used. So that's why I've put repo creation to image class. > - add package If task[lockfile] works for multiconfig, then I definitely like this approach. > - 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 That's already in todo, the blocking issue was locking mechanism for multiconfig. > - call the new task instead of, or in do_deploy_deb So, to summarize my vision: 1. image.bbclass: do_cache_config(). Use [lockfiles] = ${DISTRO} to handle multiconfig and 'bitbake image-A image-B' parallel builds. 2. dpkg-base.bbclass: do_populate_apt(). Use [lockfiles] = ${DISTRO} to avoid races between recipes and for multiconfig. 3. Drop image.bbclass: do_populate() 4. Remove ${DEPLOY_DIR_DEB} from Isar. What do you think? Alex