From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6462206452988641280 X-Received: by 10.46.82.136 with SMTP id n8mr352432lje.30.1504602840645; Tue, 05 Sep 2017 02:14:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.21.66 with SMTP id 63ls478611wmv.12.gmail; Tue, 05 Sep 2017 02:14:00 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6bt6y65OJV0ub2ToYyrKC7hIKawAjNzVIAKpy0pDa3u5iB9h8bC7JPZLLHpqJwnTCVsdHt X-Received: by 10.223.174.201 with SMTP id y67mr265743wrc.7.1504602840088; Tue, 05 Sep 2017 02:14:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504602840; cv=none; d=google.com; s=arc-20160816; b=iHcrEEU048jWTLMbeV7VIB/8vh+XVSYPv9Tmyhf7JoA8uTqJ4XIeWc4RsTuGOT9kaS aNgG7gqYnYCnn6hVaobDs7tKRw1GBZ250zC3AJNos20UnMDhE54BUpWSSUzGoJIuSnjR J8HbrSXAtSd/l+qiVEvMoC3/WjCoAVaPNIuIAnqygtdG0JX/+FYNcMxW1H4ZBE5OYu32 /SPgtNlbr/HMeTYcTal/ny3nACtPIW2UlP3hEo9zu5bULhqa7qIUREs4rMpAmhSrEp2Z qqP4ejrNcrf/xGb67bnbwN3u59DBbA90nTHC2MpV7HKEKm4nrCpOkVUIijZmJEzbv70V T9LQ== 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:cc:references:to:subject :arc-authentication-results; bh=GCcqavF34K0VnaBSQXOlafTP3dYBDOVaou5z+1D6zbs=; b=xjx6OYF62YWHz8o/edGWyv04TUHDhYSRiKCWR4m2mtI2rbqvdKXNcks6FBgkBSnf08 0d+40yGanpn22Z/I2EeFCn7GBDMO9z4ysFh5H3WaM3QpZt/QmGa2LwrD3Axk26Vgc02B pYxnw5DjINxwsNGi0paFkKGPaXFLy7BKRPVAAiTIC/uRc6+4Yv7BoYUjsHxswvnCMPUi ZO2zTDXdCCQiEFga0OTZ425gWg25RbrWF1MjYqGZR5QHAI0P13LHFE1bni5r+tAxYE+l AhrehXhE0rBUckdw5l2cjuq8fuuw5LmL6X9GsvB9OqaFBih8TBh9wCI7d192HiRKMNsL Hf6g== 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 74si3069wmf.8.2017.09.05.02.13.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 02:13:59 -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 v859Dugk012646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 5 Sep 2017 11:13:58 +0200 Subject: Re: Isar build tree structure To: Claudius Heine References: <7c829771-d78b-7409-ce86-74fae0f15dc4@ilbers.de> <2b9b891a-055a-2e4f-60ba-dc87972769d9@siemens.com> Cc: isar-users@googlegroups.com From: Alexander Smirnov Message-ID: <44061e32-aa48-b432-ead5-5d6627b707b4@ilbers.de> Date: Tue, 5 Sep 2017 12:13:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <2b9b891a-055a-2e4f-60ba-dc87972769d9@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: xhFzC0nsRBSC On 09/05/2017 12:06 PM, Claudius Heine wrote: > Hi, > > On 09/05/2017 10:21 AM, Alexander Smirnov wrote: >> Hi all, >> >> I'd like to discuss build folders tree to somehow chose more suitable >> approach. >> >> 1. How it's done at the moment. >> >> The folder tree contains the following main paths: >> >> - tmp/work/${PP} >> >> It's a $WORKDIR for each recipe, here is stored bibtbake logs and >> commands, and data for packages that doesn't require buildchroot (for >> example, buildchroot and isar-image-base). >> >> - tmp/work/buildchroot/${DISTRO}-${ARCH}/rootfs/home/build/${PN} >> >> This is the $BUILDROOT for packages, that require compilation in >> chroot. It is used as destination folder for unpack task. >> >> Benefits: >> >> - Maximal common OE-like folder structure for all kind of recipes. >> You can find the information about specific package in >> 'tmp/work/${PP}'. And it doesn't matter if this package uses dpkg >> class, or not. >> >> - After buildchroot cleanup, the build information is not loosed. >> >> - For multiple buildchroots in project, there will be single place >> for package meta information. >> >> 2. Remove $BUILDROOT. >> >> This would mean that $WORKDIR location may vary depending on recipe >> type. So the recipes data will be distributed across buildchroots and >> tmp/work dir. >> >> Benefits: >> >> - Each recipe will use single folder for everything. >> >> >> >> So... Ideas and opinions? :-) >> > > Why not both benefits? Using bind mount to put the workdir of recipes > into the buildchroot? Mount is very difficult to manage. For example if something failed during build, it's hard to check in next build what is already mounted and what is not yet. But your idea is good. Could we use symlinks instead? > > Maybe we should take a look at proot [1] and use this instead of chroot, > because its more flexible, does not require privileges, etc. > > [1] https://github.com/proot-me/PRoot/blob/master/doc/proot/manual.txt > Do you know if it fully supports dpkg & Co? -- With best regards, Alexander Smirnov ilbers GmbH Baierbrunner Str. 28c D-81379 Munich +49 (89) 122 67 24-0 http://ilbers.de/ Commercial register Munich, HRB 214197 General manager: Baurzhan Ismagulov