From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6518759238035046400 X-Received: by 10.25.41.140 with SMTP id p134mr3787524lfp.17.1517829750727; Mon, 05 Feb 2018 03:22:30 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.50.16 with SMTP id y16ls693651ljy.6.gmail; Mon, 05 Feb 2018 03:22:30 -0800 (PST) X-Google-Smtp-Source: AH8x227TwUiI3gSn5tvc1P7JLT/jK3Z37slKxOCA1JkDkDwZywAPRb/DtjHeBMg6T1bsKx70rteD X-Received: by 10.46.48.10 with SMTP id w10mr666323ljw.29.1517829750150; Mon, 05 Feb 2018 03:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517829750; cv=none; d=google.com; s=arc-20160816; b=ktpEOeAyBtk6X+qRveHPofGB3TEwzy9jp+QldwoZSKfH608UFMnt6CU3frCl0W+9sq 3uS2jmx1OBY+z4FfwfRJoN9ak2Iz3JIsHvwLvlVIH4bt+AxUyEebRfv9FlYqZ40jrw8k pHJ5epFj1dBMV+vmWWm9iA4Plde6z/HP63+a4ehAGyJX3l0rE+QW5OCWchw255ipfWD6 etNjawOahlqmHoKDclikES8/ZjB9VHbK1PHpQe15Yzl5RrdFmHmVhPNtmiE3nbE8C6s8 hMzDSF9aMuFq2vrKBk9j0fTC5hdwuCOPda0xbb4K7gOwgX8hREQLSObLWUbxuJybwo+7 wmwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=fP2741VujL+7UzpweJNTUa3pZcjpVvwECOxEt/B+sXo=; b=EkLtTNYpKaYHzEnrhFYjqJdIKiKTEreITCW9/YMy7x4KCf9j9D4CeJ5s6yvF4DqdTu QD8UrldxPk6xdh5+7jkUez6CxJBFPp/cHVxvQjOrx9gmDJz9tXZmB4XRXpyZvt521/xi DqYaXmeqxSx2UvSf1DquKv5bld6dKCIeJ8WqoOELo7rAikZfYsxh57CUooxZuBhB1aUd l+stGuTa8uYiK4tOnArZ9j/KpvO7rLf5FHWFyJQuAmtkGY+UqOuNtQZIwL26kPkh1Irk grMCowxRCAO8E+lYlj1gPo97MuutRFC3vZ7E80VZVJ8NZxLOiF0f3WsXjRCIXYr1ltmQ U+Jw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=XrR+V01/; spf=pass (google.com: domain of benbrenson89@googlemail.com designates 2a00:1450:400c:c0c::22d as permitted sender) smtp.mailfrom=benbrenson89@googlemail.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com. [2a00:1450:400c:c0c::22d]) by gmr-mx.google.com with ESMTPS id l26si706692lja.0.2018.02.05.03.22.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 03:22:30 -0800 (PST) Received-SPF: pass (google.com: domain of benbrenson89@googlemail.com designates 2a00:1450:400c:c0c::22d as permitted sender) client-ip=2a00:1450:400c:c0c::22d; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=XrR+V01/; spf=pass (google.com: domain of benbrenson89@googlemail.com designates 2a00:1450:400c:c0c::22d as permitted sender) smtp.mailfrom=benbrenson89@googlemail.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: by mail-wr0-x22d.google.com with SMTP id z6so8509377wrb.1 for ; Mon, 05 Feb 2018 03:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=fP2741VujL+7UzpweJNTUa3pZcjpVvwECOxEt/B+sXo=; b=XrR+V01/lsog4+yIFnJahWL0me+2YveYJ6bPNNW4NrdBtAusUdJoO4oI+pwT6lYfN0 mcw8ozYnlESfmtOT1IpxvydALUPu/9uMpQ+fjyG193D8l1s5nL7RqrDTRNgqGU/qfwZi 5RIPBsMaj2r30DX0ZLA8sztbHDSACaxAnpNS3Lq1JsXuDs210gVSbk64E+6T5HFNdYby b7tyHwxXRJysOV7ZcNzQQgsDmQXVofusD4FTqFIk3RguPKQdDunC+Cy12UMurUu7rgV0 cKpedPxiK9h308HsLL4kaMOiP0sWv+lhoW1Laf2k5NEwpctl8zyCNnhpt5mZnA2pYexR Ho4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=fP2741VujL+7UzpweJNTUa3pZcjpVvwECOxEt/B+sXo=; b=J2bJpfKo8h1xFmPJDX3VZBpFKzfpFRkVypK3lspluxHwR6lPofXJtdW5cG+4Ey5CNw zo9D7kelt56HrxszytjUdTwSRL+Nlp53nbYa+/lmyjfKYmLWXppkoMJ/BitRTe556dFG WG9JBUP+xlUcZf6j99s2Q2YyeX6J2LMnJ6WmQ3Ph4e27gAseoUgthh40zKXGd+6NQVvT KFean6SrHKcCClYhQmpH+QnaOkALH0NJV64D/Bp0PE3A5YXxBAeSc3UhvWz3fLtylSKP LyVyv0k9Ki/lLfliGqfm9hWoaQC6sRsWb5QjytttkyqZY91sC6a9repnaRQbsY48pSZV BDrQ== X-Gm-Message-State: AKwxytdCWv7E4U2aE6mPm0X/6HAXs+1Pv6gBSsvsPkGSj1CAgxpHkDlP nZGOp9pvVGUMu3PUmnxLqVo= X-Received: by 10.223.176.232 with SMTP id j37mr28916917wra.252.1517829749504; Mon, 05 Feb 2018 03:22:29 -0800 (PST) Return-Path: Received: from [192.168.43.209] (ip-109-41-194-61.web.vodafone.de. [109.41.194.61]) by smtp.gmail.com with ESMTPSA id 198sm13053234wmo.36.2018.02.05.03.22.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 03:22:28 -0800 (PST) Subject: Re: [PATCH 0/5] support creation of a full repo for offline/reproducible builds To: Alexander Smirnov , Jan Kiszka , Cedric_Hombourger@mentor.com, isar-users@googlegroups.com Cc: Claudius Heine References: <20180204175454.220-1-Cedric_Hombourger@mentor.com> <79ae1eda-9b5b-a000-8740-b6753a894cd4@ilbers.de> From: Benedikt Niedermayr Message-ID: Date: Mon, 5 Feb 2018 12:22:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <79ae1eda-9b5b-a000-8740-b6753a894cd4@ilbers.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-TUID: HqxgbW93os0q Am 05.02.2018 um 11:26 schrieb Alexander Smirnov: > In other words, there should be the only one component/recipe who > fetches the upstream packages. > > There is still open question, how to fetch all the packages: in a > single step or during the build. > > I want to have an option similar to Yocto's one: -c fetchall to have > possibility to fetch all the necessary artifacts and do not depend > from network anymore. Meanwhile I'm with you, in terms of your proposal. Fetching all packages at the beginning, would be easier to achive. Otherwise I have no Idea how to solve potential remote repository updates between buildchroot and rootfs steps. The other problem would be to resolve dependencies at the beginning of the build process. I think "aptly" can do that hard work for us. But this would require to replace reprepro with aptly. I will implement a PoC with aptly which should cover the following: 1. Extract DEBIAN_DEPENDS from all recipes, as well as IMAGE_PREINSTALL and BUILDCHROOT_PREINSTALL. 2. Create an aptly mirror by setting the "-filter" option. Aptly will resolve all dependencies when setting the filter option. This is the most important step. If aptly fails to resolve dependencies correctly, I will abort my PoC. 3. Create a local Repo for Isar packages. 4. Start the build and let do_rootfs() refer to local mirror. Benni