Bug 1887

Summary: pm-utils needs a fully working version of grep to run
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Marc Ferland <marc.ferland>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher
Version: 1.1   
Target Milestone: 1.2 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Patch that adds grep to RDEPENDS.
none
sh -x of pm-suspend none

Description Marc Ferland 2012-01-09 08:17:31 UTC
While trying to run pm-suspend I noticed that the script was failing on my platform because of a missing option in busybox's grep.

For example, running pm-suspend-hybrid yields to:

root@crownbay:~# pm-suspend-hybrid 
grep: invalid option -- 'x'
BusyBox v1.18.5 (2011-12-23 17:19:16 EST) multi-call binary.

Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]...
Comment 1 Marc Ferland 2012-01-09 08:19:05 UTC
Created attachment 310 [details]
Patch that adds grep to RDEPENDS.
Comment 2 Saul Wold 2012-01-10 09:37:24 UTC
Marc, please submit this to the openembedded-core@lists.openembedded.org alias with a signed-off-by line and include  "Fixes [YOCTO #1887] in the commit message, we will include this fix.
Comment 3 Saul Wold 2012-01-24 09:20:40 UTC
Can you please provide a copy of your pm-suspend-hybrid, and a sh -x output of running that script, I am trying to find where grep is called with the -x option, I do not directly see it.
Comment 4 Marc Ferland 2012-01-24 12:29:34 UTC
Created attachment 322 [details]
sh -x of pm-suspend
Comment 5 Marc Ferland 2012-01-24 12:29:51 UTC
(In reply to comment #3)
> Can you please provide a copy of your pm-suspend-hybrid, and a sh -x output of
> running that script, I am trying to find where grep is called with the -x
> option, I do not directly see it.

The call to grep -x can be found in /usr/lib/pm-utils/functions:219