From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id ADF14E00C3A; Thu, 17 Mar 2016 14:28:55 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 28082E00C2D for ; Thu, 17 Mar 2016 14:28:48 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 17 Mar 2016 14:28:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,351,1455004800"; d="scan'208";a="939687617" Received: from linux.intel.com ([10.23.219.25]) by fmsmga002.fm.intel.com with ESMTP; 17 Mar 2016 14:28:47 -0700 Received: from linux.intel.com (vmed.fi.intel.com [10.237.72.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTP id 3031C6A4004; Thu, 17 Mar 2016 15:16:30 -0700 (PDT) Date: Thu, 17 Mar 2016 21:08:55 +0200 From: Ed Bartosh To: "Barros Pena, Belen" Message-ID: <20160317190855.GA13374@linux.intel.com> References: MIME-Version: 1.0 In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "toaster@yoctoproject.org" Subject: Re: Review for 8422 ( DL_DIR and SSTATE_DIR ) X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: ed.bartosh@linux.intel.com List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2016 21:28:55 -0000 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hi Sujith and Belen, I've modified this patchset to work with per project directories. Modified patchset is in contrib branch ed/toaster/project-build-dir-7880-cancel-dldir_sstatedir The branch contains all 3 patchsets: per project build directory, build cancel and dldir_sstatedir. I updated default values in both oe and poky toasterconf.json and modified view.py that both directories are at the same level as build directories. This way projects can share them. I noticed one UI issue: if I press 'Create project' button without modifying variables I get an error 'Fields missing: dldir, sstatedir'. Other than that patchset worked for me. Regards, Ed On Thu, Feb 25, 2016 at 11:36:28AM +0000, Barros Pena, Belen wrote: > > > On 18/02/2016 15:36, "toaster-bounces@yoctoproject.org on behalf of sujith > h" > wrote: > > >Hi, > > > > > >I have pushed changes to : > >http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=sujith/set_d > >ldir_sstatedir > > >dldir_sstatedir> > > I've tried this briefly. From the UI side of things, it's pretty much ok, > but I am not sure if it's working as expected. This is what I did: > > * I tried to start Toaster with an existing sqlite file, but I got a > migration error > > django.db.utils.OperationalError: no such table: > orm_customimagerecipe_packages > Failed migrations, aborting system start > Failed start. > > > I think that file was created with the latest toaster-next: maybe the > branch just needs rebasing. > > * I created a project and left the default values for DL_DIR and > SSTATE_DIR (build/downloads and build/sstate-cache) > > * Built zlib > > * I changed the DL_DIR and SSTATE_DIR values from the bitbake variables > page in the project configuration to build/down and build/sstate > respectively > > * rebuilt zlib > > My build directory now has build/downloads, build/down, build/sstate-cache > and build/sstate directories. But the build did not create anything inside > build/down or build/sstate. Then I deleted the build/downloads and > build/sstate-cache and ran another build: nothing was created in the > build/down directory, but some sstate files where generated and stored in > build/sstate. Then I removed the /tmp directory, and in that case yes: > sources were downloaded to /build/down and sstate files stored in > build/sstate. > > Now, this might be the expected behaviour, but I somehow assumed that if I > changed the location of the DL_DIR, the build would disregard sources > downloaded to any other directory and download again everything. But that > could be a completely wrong assumption. > > One thing I've not tested is what happens if you set DL_DIR or SSTATE_DIR > to a location outside of the build directory. > > Also, on a previous occasion I tried this branch, I was able to start it > with a an existing sqlite file. When I tried to create a project, I got > this error: > > http://imgur.com/R6KREsq > > > Cheers > > Belén > > > > > > > > >The top 5 commits comprises for the change. It would be nice to have > >review comments for the same. > > > > > >Thanks, > > > >Sujith H > > > >-- > >സുജിത് ഹരിദാസന് > >Bangalore > >Contributor to KDE project > > > >Contributor to Yocto project > > > >http://fci.wikia.com/wiki/Anti-DRM-Campaign > > http://sujithh.info > > > > > > > > > > > > > > > > > > > > > > > > -- > _______________________________________________ > toaster mailing list > toaster@yoctoproject.org > https://lists.yoctoproject.org/listinfo/toaster -- -- Regards, Ed