* [PATCH 0/1] e2fsprogs/populate-extfs.sh: fix a problem on dash
@ 2014-01-20 12:24 Robert Yang
2014-01-20 12:24 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2014-01-20 12:24 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 9f7465db614c664c49904033aa70170278972932:
siggen.py: fix the SignatureGenerator() (2014-01-20 19:43:03 +0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib rbt/dash
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/dash
Robert Yang (1):
e2fsprogs/populate-extfs.sh: fix a problem on dash
meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] e2fsprogs/populate-extfs.sh: fix a problem on dash
2014-01-20 12:24 [PATCH 0/1] e2fsprogs/populate-extfs.sh: fix a problem on dash Robert Yang
@ 2014-01-20 12:24 ` Robert Yang
2014-01-24 13:43 ` Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: Robert Yang @ 2014-01-20 12:24 UTC (permalink / raw)
To: openembedded-core
The dash can't handle the or [[ in parameter expansion, for example:
A=/usr/bin/[[
B=[[
C="${A%$B}"
The C should be "/usr/bin" in common, but it will be /usr/bin/[[ on
dash, use dirname to fix it.
NOTE:
There are 3 lines about parameter expansion, only fix the
DIR="${DIR%$TGT}" since the other 2 works will and are very useful in
this case.
[YOCTO #5712]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh b/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
index 7de720b..9b55a4b 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
@@ -23,7 +23,7 @@ DEBUGFS="debugfs"
find $SRCDIR | while read FILE; do
TGT="${FILE##*/}"
DIR="${FILE#$SRCDIR}"
- DIR="${DIR%$TGT}"
+ DIR="$(dirname $DIR)"
# Skip the root dir
[ ! -z "$DIR" ] || continue
--
1.8.3.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] e2fsprogs/populate-extfs.sh: fix a problem on dash
2014-01-20 12:24 ` [PATCH 1/1] " Robert Yang
@ 2014-01-24 13:43 ` Richard Purdie
2014-01-24 15:17 ` Olof Johansson
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2014-01-24 13:43 UTC (permalink / raw)
To: Robert Yang; +Cc: openembedded-core
On Mon, 2014-01-20 at 20:24 +0800, Robert Yang wrote:
> The dash can't handle the or [[ in parameter expansion, for example:
>
> A=/usr/bin/[[
> B=[[
> C="${A%$B}"
>
> The C should be "/usr/bin" in common, but it will be /usr/bin/[[ on
> dash, use dirname to fix it.
>
> NOTE:
> There are 3 lines about parameter expansion, only fix the
> DIR="${DIR%$TGT}" since the other 2 works will and are very useful in
> this case.
>
> [YOCTO #5712]
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I'm afraid I had to revert this as it caused other build failures:
http://autobuilder.yoctoproject.org/main/builders/build-appliance/builds/18/steps/BuildImages_1/logs/stdio
Can you look into why that happened and resent the patch please?
Cheers,
Richard
> diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh b/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
> index 7de720b..9b55a4b 100644
> --- a/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
> +++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs/populate-extfs.sh
> @@ -23,7 +23,7 @@ DEBUGFS="debugfs"
> find $SRCDIR | while read FILE; do
> TGT="${FILE##*/}"
> DIR="${FILE#$SRCDIR}"
> - DIR="${DIR%$TGT}"
> + DIR="$(dirname $DIR)"
>
> # Skip the root dir
> [ ! -z "$DIR" ] || continue
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] e2fsprogs/populate-extfs.sh: fix a problem on dash
2014-01-24 13:43 ` Richard Purdie
@ 2014-01-24 15:17 ` Olof Johansson
0 siblings, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2014-01-24 15:17 UTC (permalink / raw)
To: Robert Yang; +Cc: openembedded-core@lists.openembedded.org
On 14-01-24 14:43 +0100, Richard Purdie wrote:
> On Mon, 2014-01-20 at 20:24 +0800, Robert Yang wrote:
> > The dash can't handle the or [[ in parameter expansion, for example:
Good to know. Interesting! Noting that escaping the [ would work,
but not applicable in this case.
> >
> > A=/usr/bin/[[
> > B=[[
> > C="${A%$B}"
Would ${A%/*}/ work?
- DIR="${DIR%$TGT}"
+ DIR="${DIR%/*}/"
It also has the advantage that it doesn't cause a fork (afaict,
the loop is being executed for every file in a rootfs directory
structure, that could cause a lot of forks).
(Disclaimer: I haven't tested this)
--
olofjn
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-24 15:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-20 12:24 [PATCH 0/1] e2fsprogs/populate-extfs.sh: fix a problem on dash Robert Yang
2014-01-20 12:24 ` [PATCH 1/1] " Robert Yang
2014-01-24 13:43 ` Richard Purdie
2014-01-24 15:17 ` Olof Johansson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.