Bug 7112

Summary: [[: not found (using dash)
Product: [Yocto Project Subprojects] Kernel Reporter: Vincent Génieux <vincent2014>
Component: kernel-configurationAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact: Costin <costin.c.constantin>
Severity: minor    
Priority: Medium+ CC: alexandru.c.georgescu, dvhart, sgw, yp.kernel.watcher, yp.watcher
Version: 1.7   
Target Milestone: 1.8 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: TC needed - try to build an image with something else than bash
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
proposed patch none

Description Vincent Génieux 2015-01-05 21:42:44 UTC
Created attachment 2311 [details]
proposed patch

By configuring yocto with a custom kernel (using directly the kernel.bbclass), bitbake failed on the do_strip command with this error message :

[[: not found

Replace the '[[ ]]' by '[ ]' in the kernel.bb:do_strip function solve the issue.
Comment 1 Darren Hart 2015-01-08 15:50:24 UTC
Vincent, thanks for catching this. Have you sent your patch to the mailing list? That is where the review will take place. This one should go to the oe-core mailing list, and be sure to Cc Bruce Ashfield and myself.
Comment 2 Bruce Ashfield 2015-01-08 15:53:15 UTC
I've confirmed that the patch works here, and doesn't break any of the build machines
that I use (it was unlikely, but we have to be sure).

I can either complete the patch, or it goes to the list from Vincent .. either works for me.

I just have a stack of other patches and issues to work through first, before I send it as
part of my queue.
Comment 3 Vincent Génieux 2015-01-08 16:00:54 UTC
no, sorry, I did not submit (yet) the patch to the mailing list.
do you want me to send it ?

thanks to you guys, yocto seems to be a nice framework.
Comment 4 Darren Hart 2015-01-08 16:23:55 UTC
Hi Vincent. Yes, please do. Be sure to check out the contribution guidelines if this is your first patch and follow the patch submission process.

http://openembedded.org/wiki/Commit_Patch_Message_Guidelines
Comment 5 Vincent Génieux 2015-01-12 13:45:02 UTC
Message sent on yocto ML (hope everything is okay).

Note, this issue is almost the same than this one : 

http://patchwork.openembedded.org/patch/84905/

and the fix is almost the same as well :)
Comment 7 Costin 2015-04-10 17:20:32 UTC
Hello,

Just checked with latest poky hash: 7fb6a6e907e5803597b2e12ba7047c46e57dba26 on Ubuntu 14.10

Steps performed to verify this bug:

1)set default shell in /etc/passwd from bash to dash
2) built a core-image-minimal. 

Everything was fine. Marking bug as verified.

Costin