<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9992</bug_id>
          
          <creation_ts>2016-07-21 16:23:29 +0000</creation_ts>
          <short_desc>If we run oe-init-build-env with an argument for builddir, toaster start fails</short_desc>
          <delta_ts>2017-03-15 15:02:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Toaster</product>
          <component>toaster</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          
          <blocked>11109</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="brian avery">brian.avery</assigned_to>
          <cc>belen.barros.pena</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>michael.g.wood</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Libertad">libertad.gonzalez.de.la.cruz</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64275</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-07-21 16:23:29 +0000</bug_when>
    <thetext>To replicate:
mkdir ~/cow;
cd ~/cow;
. ~/poky/oe-init-build-env .;
. toaster start;
# . toaster start will fail:
sqlite3.OperationalError: unable to open database file                                                              │·································
++++++++++++
a proposal:
Currently, we reach &quot;above&quot; the build dir and put toaster directory&apos;s e.g. build_toaster_xx and _toaster_clones_ there.  Unfortunately, we can&apos;t even guarantee that the running user has permissions to access the directory above the builddir. For example, if I do cd ~;. ~/poky/oe-init-build-env .; I don&apos;t have permission for /home.
So, I&apos;d be ok with a standard start being 
build/
build/conf
build/toaster_build_XX
build/_toaster_clones_
That way cd ~;. ~/poky/oe-init-build-env .;. toaster start; would work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64836</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-08-03 15:22:10 +0000</bug_when>
    <thetext>hint this currently set in: toastermain/settings.py 
 
  TOASTER_SQLITE_DEFAULT_DIR = os.path.join(os.environ.get(&apos;TOASTER_DIR&apos;, &apos;&apos;),
                                            &apos;build&apos;)
  
  DATABASES = {
      &apos;default&apos;: {
          # Add &apos;postgresql_psycopg2&apos;, &apos;mysql&apos;, &apos;sqlite3&apos; or &apos;oracle&apos;.
          &apos;ENGINE&apos;: &apos;django.db.backends.sqlite3&apos;,
          # DB name or full path to database file if using sqlite3.
          &apos;NAME&apos;: &quot;%s/toaster.sqlite&quot; % TOASTER_SQLITE_DEFAULT_DIR,
          &apos;USER&apos;: &apos;&apos;,


(We should really ecourage people to write their own config files such as we have for the test db  toastermain/settings_test.py)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67868</commentid>
    <comment_count>2</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-11-02 15:02:13 +0000</bug_when>
    <thetext>*** Bug 10524 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70345</commentid>
    <comment_count>3</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-02-01 19:10:28 +0000</bug_when>
    <thetext>sent to toaster ml:
https://patchwork.openembedded.org/series/5104/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71306</commentid>
    <comment_count>4</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2017-03-15 15:02:20 +0000</bug_when>
    <thetext>f43d97af9466580c3a10d766791836b42c674497</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>