<?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>6964</bug_id>
          
          <creation_ts>2014-11-13 14:21:32 +0000</creation_ts>
          <short_desc>command &quot;source toaster start&quot; does not work with zsh</short_desc>
          <delta_ts>2015-08-31 14:51:46 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>fabrice.coulon</reporter>
          <assigned_to name="Ed Bartosh">eduard.bartosh</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>eduard.bartosh</cc>
    
    <cc>kergoth</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>46969</commentid>
    <comment_count>0</comment_count>
    <who name="">fabrice.coulon</who>
    <bug_when>2014-11-13 14:21:32 +0000</bug_when>
    <thetext>I followed the instructions from:

https://wiki.yoctoproject.org/wiki/Setting_up_a_local_instance_of_Toaster

But when I reach the following line:

% source toaster start
dirname: missing operand
Try `dirname --help&apos; for more information.
/home/fabrice/vpython/poky/bitbake/bin/toaster:211: = not found

% echo $SHELL
/bin/zsh

Also when I open bitbake/bin/toaster, the first line starts with &quot;#!/bin/bash&quot; indicating that this is a bash script only.

Why is is needed to source this script in the current shell?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46970</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-11-13 14:37:44 +0000</bug_when>
    <thetext>
&quot;source toaster start&quot; is needed to start the bitbake server and the toasterui logging service - this is what enables toaster to record your builds

I would suggest you start &quot;bash&quot; as shell before sourceing &quot;oe-init-build-env&quot; until we fix the zsh compatibility problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47046</commentid>
    <comment_count>2</comment_count>
    <who name="">fabrice.coulon</who>
    <bug_when>2014-11-17 08:59:55 +0000</bug_when>
    <thetext>I understand that &quot;source toaster start&quot; is needed my question was instead why is &quot;source&quot; needed?

It would be just fine to run &quot;./toaster start&quot; even when using zsh as user shell, since like in many Linux boxes, bash is also installed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47049</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-11-17 10:50:50 +0000</bug_when>
    <thetext>Sourcing the file is needed because it sets environment variables that configure the build system without the need to spawn a new shell.

If you run &quot;env&quot; before and after sourcing the file, you can see the difference, especially the BBSERVER variable that points to the bitbake server.

Additionally the command launches the bitbake server and the toasterui (the build recording component), leaving the current shell prepared to take any bitbake commands in client mode - i.e. the bitbake command that is run after sourcing the file works in a different mode than a regular bitbake command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47226</commentid>
    <comment_count>4</comment_count>
    <who name="">fabrice.coulon</who>
    <bug_when>2014-11-27 08:13:09 +0000</bug_when>
    <thetext>It would be nice if the toaster command would output these shell variables in the requested format, like for example the ssh-agent command do, for example:

usage: toaster [options] start|stop|...
Options:
  -c          Generate C-shell commands on stdout.
  -s          Generate Bourne shell commands on stdout.
  -p          Generate Posix shell commands on stdout.


For example:

% toaster -s start
BBSERVER=ip:port; export BBSERVER;
...

So that one can do in any Posix compliant shell:

% eval `toaster -p start`

I don&apos;t know really this is just a suggestion.

*************
*
* Q: I have to present toaster to my organization, are there any slides available that I can use as a reference?
*
*************</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47231</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2014-11-27 09:49:29 +0000</bug_when>
    <thetext>
&gt; 
&gt; *************
&gt; *
&gt; * Q: I have to present toaster to my organization, are there any slides
&gt; available that I can use as a reference?
&gt; *
&gt; *************

Hi Fabrice,

The slides for the Toaster presentation at our last dev day might be useful

https://www.yoctoproject.org/sites/default/files/toaster_presentation_elce_2014_interactive_dlr1.pdf

If you need anything else, let me know

Cheers

Belén</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50729</commentid>
    <comment_count>6</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-04 10:06:20 +0000</bug_when>
    <thetext>Should be fixed by this https://lists.yoctoproject.org/pipermail/toaster/2015-May/002064.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50956</commentid>
    <comment_count>7</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2015-05-13 10:04:18 +0000</bug_when>
    <thetext>Merged to master: http://cgit.openembedded.org/bitbake/commit/?id=e7b27843e2f37619dbe555a8883ac67f418f32dc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53573</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2015-08-31 14:51:46 +0000</bug_when>
    <thetext>verified on: 22afc047dd1b8f83e56c4a9862710776c509e3c5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>