Bug 1887 - pm-utils needs a fully working version of grep to run
Summary: pm-utils needs a fully working version of grep to run
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.2 M2
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-01-09 08:17 UTC by Marc Ferland
Modified: 2012-01-26 13:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
Patch that adds grep to RDEPENDS. (1.16 KB, patch)
2012-01-09 08:19 UTC, Marc Ferland
no flags Details | Diff
sh -x of pm-suspend (4.31 KB, text/plain)
2012-01-24 12:29 UTC, Marc Ferland
no flags Details

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