[Toaster] Review for 8422 ( DL_DIR and SSTATE_DIR )
Barros Pena, Belen
belen.barros.pena at intel.com
Thu Feb 25 03:36:28 PST 2016
On 18/02/2016 15:36, "toaster-bounces at yoctoproject.org on behalf of sujith
h" <toaster-bounces at yoctoproject.org on behalf of sujith.h at gmail.com>
wrote:
>Hi,
>
>
>I have pushed changes to :
>http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=sujith/set_d
>ldir_sstatedir
><http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=sujith/set_
>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
><Project>Contributor to KDE project
>
><Project>Contributor to Yocto project
>
>http://fci.wikia.com/wiki/Anti-DRM-Campaign
><Blog> http://sujithh.info
>
>
>
>
>
>
>
>
>
>
>
More information about the toaster
mailing list