Bug 5707

Summary: Yocto Project BitBake Commander uses dash instead of bash
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Stefan Eichenberger <stefan.eichenberger>
Component: eclipse-pluginAssignee: Jessica <jessica.zhang>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: Medium CC: ada-mihaela.solcan, alexandru.c.georgescu, ioanax.grigoropol, yp.ep.watcher, yp.watcher
Version: 1.4   
Target Milestone: 1.6 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 5473    

Description Stefan Eichenberger 2014-01-08 12:15:04 UTC
Distribution: Debian 7 (x64)
Eclipse Version: Kepler

When I try to create a new Yocto Project (File/New/Project/New Yocto Project). The initialization of the bitbake session outputs the following messages:

sh: 1: source: not found
sh: 1: source: not found
sh: 1: Syntax error: Bad fd number

The Problem is that dash is used instead of bash. I can workaround this issue by changing the /bin/sh link to /bin/bash. But it would be nice if this will work without that hack again.
Comment 1 Jessica 2014-01-10 19:53:50 UTC
So if sh is link to dash instead of bash, how can you run a bitbake build from command line, since you need to source oe-init-build anyway?
Comment 2 Stefan Eichenberger 2014-01-13 07:53:48 UTC
(In reply to comment #1)
> So if sh is link to dash instead of bash, how can you run a bitbake build
> from command line, since you need to source oe-init-build anyway?

Hi Jessica

I don't know what eclipse is actually doing. I start eclipse from bash, so the default command line is bash. It seems that then eclipse does internal switch to sh instead of inheriting the command line interface. Because sh is then a link to dash the yocto eclipse plugin fails. As I understand the plugin, it inherits the command line interface from eclipse, is that correct?

Because bash is my default command line interface, source oe-init-build does work correctly.

Regards,
Stefan
Comment 3 Ada Solcan 2014-01-20 08:32:29 UTC
*** Bug 5737 has been marked as a duplicate of this bug. ***
Comment 5 Alexandru Georgescu 2014-01-30 13:37:14 UTC
will verify this on the next FP
Comment 6 Alexandru Georgescu 2014-02-05 15:41:55 UTC
this is fixed!