Bug 5707 - Yocto Project BitBake Commander uses dash instead of bash
Summary: Yocto Project BitBake Commander uses dash instead of bash
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Medium minor
Target Milestone: 1.6 M2
Assignee: Jessica
QA Contact:
URL:
Whiteboard:
: 5737 (view as bug list)
Depends on:
Blocks: 5473
  Show dependency tree
 
Reported: 2014-01-08 12:15 UTC by Stefan Eichenberger
Modified: 2014-02-05 15:41 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!