From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6460145511672315904 X-Received: by 10.28.47.206 with SMTP id v197mr145142wmv.10.1504543627778; Mon, 04 Sep 2017 09:47:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.46.1.28 with SMTP id 28ls51199ljb.40.gmail; Mon, 04 Sep 2017 09:47:07 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6MWJtXJb0oGvf5Iv3mgSVUFtfDT3YSpBGaUNlqrJQ3V8W53S63pF+nT+uUiHsbkwmPfUqU X-Received: by 10.25.23.233 with SMTP id 102mr127659lfx.25.1504543627511; Mon, 04 Sep 2017 09:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504543627; cv=none; d=google.com; s=arc-20160816; b=nylDzlF/Tg6Gr8tIbyzkrUNOkWUgRFgLJVrTnNqlgx3aQPhW5nvHGh2M9e1lqVJO48 Xvm5mIEASZDZaxJZkEH4aTGgVFDIUOWUc3CrVbrF0zCrtAgd6o7Ny493tvrT9jOA9ygC w+GWhIxMtFH5b/2kQ+eliiHGXWJNaKHTJLceymN38/NXUbtKrzz1oD0TC1DxfZIOtotK KkjlHmXlcDZAIklilubOivOJMgte+m1muIgiIYVFVHw7sPSLHQ6iSjnzCwTGEWkm1A9f knK3M20KnaNiDUGWJGVH91VfrSTGH+HGpAZl7TmNhGQ/FKI4Tim+YoSBTTSqjQJ/fUmF 6vdw== 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=5yQVlQqiZwf8K+i3GmC+N3QSKRlbfhLCzMFcsPixIz0=; b=a+RsFwXa4RM54jwZK/vIBZjyuH7fVH9UfV7L1rskNdyF5qhaNXekwUv0kf32/gYG22 lKu3wVwnnFfdE6N2i3oyFSzK8g9Zs/s+NuK8QyUEHaRtohYJjIRzy/Wl2ZgkWnKh8ic5 EHMI89E4/qGmTe49DZAJJxinxBKtHgIsQ3CMDHqITqg8bWX4V2er27pFibWILwkdmQyE GLEOufTkOr60qRjkRfU1+zJlfAGnIJFvIqmSyb2xqCLvoqU0F6zI7kae674wGqcHmQE8 Qg24+XmKmWyoWrZgH5ZeXisuXgD3BsRFoESLpzPWUvnk7rg6gmledT57Cj+U/TJQ2Zq8 B30Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of jan.kiszka@siemens.com) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id q186si47795wmb.7.2017.09.04.09.47.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Sep 2017 09:47:07 -0700 (PDT) Received-SPF: neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of jan.kiszka@siemens.com) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.35.17.2 is neither permitted nor denied by best guess record for domain of jan.kiszka@siemens.com) smtp.mailfrom=jan.kiszka@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 v84Gl7Sj022630 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 4 Sep 2017 18:47:07 +0200 Received: from md1f2u6c.ww002.siemens.net ([139.25.68.37]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id v84Gl6be018125; Mon, 4 Sep 2017 18:47:07 +0200 Subject: Re: [PATCH 1/6] meta/dpkg: Make 'do_unpack' more generic, prepare for pulling out To: Alexander Smirnov , isar-users@googlegroups.com References: <6f7b53c5-3238-1d8d-88a7-7afc3859a9ec@ilbers.de> From: Jan Kiszka Message-ID: Date: Mon, 4 Sep 2017 18:47:06 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <6f7b53c5-3238-1d8d-88a7-7afc3859a9ec@ilbers.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: O0IPlxiIy7RB On 2017-09-04 17:11, Alexander Smirnov wrote: > On 08/30/2017 10:03 PM, Henning Schild wrote: >> Issue: >> The unpacker in dpkg is not generic since it does not unpack to >> WORKDIR, so it can not be pulled into a more generic class to make it >> available for other users. >> > > As I already wrote to mail-list, WORKDIR and BUILDROOT are different > folders, and there was the reason to do so. > > In Yocto, WORKDIR is the place which keeps the following artifacts: > >  - Source code tree >  - Patches, configs >  - Binaries >  - Yocto meta information (logs and build commands) > > WORKDIR is usually something like: ./tmp/work/gcc-arch/package-name > > Due to Yocto performs cross-compilation, it is able to keep source core > out of cross filesystem. But this doesn't work for Isar, which uses > 'native' compilation in chroot. That's why BUILDROOT variable was > introduced. > > So in Isar, WORKDIR stays the same and keeps logs, build commands, > patches and other stuff (for example configs and scripts for > buildchroot). The BUILDROOT is the path to dedicated buildchroot where > to unpack sources and build them. That should probably go into your design doc, even more as it deviates from OE practice. > > If I build multiconfig for N targets with this patch, I will have N > distributed locations with bitbake meta information for the same package. > > If I cleanall buildchroot, I will lose all the bitbake meta information > for current distro-arch. > > So at the moment I don't see any benefit of this change. > > Also it's not clear, what do you mean by 'not generic', this unpack > implementation designed for building deb packages, and at the moment no > other users are expected. > I suppose many misunderstandings come from the fuzziness that multiconfig introduces. That requires documentation, even more as it is easy to break and then fairly hard to diagnose. How does OE deal with multiconfig requirements on recipes? Or don't they have the complication? Jan -- Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux