kernel-yocto: Fix an inappropriate process with include path
PATCH 1/1 kernel-yocto: Fix an inappropriate process with include path
From: Yanfei Xu <[email protected]>
We just want to remove the first '-I' in $d, hence removing the 'g' of sed avoid changing the real path which is include '-I'
--- meta/classes/kernel-yocto.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/kernel-yocto.bbclass +1 -1
@@ -225,7 +225,7 @@ do_kernel_metadata() { for feature in ${KERNEL_FEATURES}; do feature_found=f for d in $includes; do - path_to_check=$(echo $d | sed 's/-I//g') + path_to_check=$(echo $d | sed 's/-I//') if [ "$feature_found" = "f" ] && [ -e "$path_to_check/$feature" ]; then feature_found=t fi
Signature · 1 line
2.18.2
Quoted 6 lines · Yanfei
From: Yanfei Xu <[email protected]>
We just want to remove the first '-I' in $d, hence removing the 'g' of sed avoid changing the real path which is include '-I'
The g was intentional. Is it actually causing a bug ? if not, I see no reason to change it.
Anyone with paths with embedded '-I' have more issues than this sed expression.
Bruce
Quoted 22 lines
Signed-off-by Yanfei Xu <[email protected]>--- meta/classes/kernel-yocto.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/kernel-yocto.bbclass +1
-2@@ -225,7 +225,7 @@ do_kernel_metadata() { for feature in ${KERNEL_FEATURES}; do feature_found=f for d in $includes; do - path_to_check=$(echo $d | sed 's/-I//g') + path_to_check=$(echo $d | sed 's/-I//') if [ "$feature_found" = "f" ] && [ -e "$path_to_check/$feature" ]; then feature_found=t fi --2.18.2
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Bruce Ashfield via lists.openembedded.org
Quoted 3 lines · Yanfei
From: Yanfei Xu <[email protected]>
Quoted 8 lines
Quoted 3 lines
We just want to remove the first '-I' in $d, hence removing the 'g' of sed avoid changing the real path which is include '-I'
The g was intentional. Is it actually causing a bug ? if not, I see no reason to change it.
Anyone with paths with embedded '-I' have more issues than this sed expression.
Actually, on further thought. I'll just pull this into my queued patches.
It is my habit to almost always use /g on my sed expressions, but there's no reason to leave this lurking (but my comment still stands about configurations that have -I in their actual paths :)
Bruce
Quoted 33 lines
Bruce
Quoted 19 lines
Signed-off-by Yanfei Xu <[email protected]>--- meta/classes/kernel-yocto.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/kernel-yocto.bbclass +1
-2@@ -225,7 +225,7 @@ do_kernel_metadata() { for feature in ${KERNEL_FEATURES}; do feature_found=f for d in $includes; do - path_to_check=$(echo $d | sed 's/-I//g') + path_to_check=$(echo $d | sed 's/-I//') if [ "$feature_found" = "f" ] && [ -e "$path_to_check/$feature" ]; then feature_found=t fi --Quoted 3 lines
2.18.2
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II
Quoted 15 lines · Bruce Ashfield
Quoted 12 lines · Bruce Ashfield via lists.openembedded.org
Quoted 6 lines · Yanfei
From: Yanfei Xu <[email protected]>
We just want to remove the first '-I' in $d, hence removing the 'g' of sed avoid changing the real path which is include '-I'
The g was intentional. Is it actually causing a bug ? if not, I see no reason to change it.
Quoted 8 lines
Quoted 1 line
Anyone with paths with embedded '-I' have more issues than this sed expression.
Actually, on further thought. I'll just pull this into my queued patches.
It is my habit to almost always use /g on my sed expressions, but there's no reason to leave this lurking (but my comment still stands about configurations that have -I in their actual paths :)
Yes, Bruce. I did meet a bug cause by this reason.... When I looked into it and found this point.
The path is like "builds/08311812-ICS_Custom/intel-x86-64-standard-small/build"
Thanks,
Yanfei
Quoted 38 lines
Bruce
Quoted 33 lines
Bruce
Quoted 19 lines
Signed-off-by Yanfei Xu <[email protected]>--- meta/classes/kernel-yocto.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/classes/kernel-yocto.bbclass +1
-2@@ -225,7 +225,7 @@ do_kernel_metadata() { for feature in ${KERNEL_FEATURES}; do feature_found=f for d in $includes; do - path_to_check=$(echo $d | sed 's/-I//g') + path_to_check=$(echo $d | sed 's/-I//') if [ "$feature_found" = "f" ] && [ -e "$path_to_check/$feature" ]; then feature_found=t fi --Quoted 3 lines
2.18.2
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II