On Tue, 2021-09-07 at 06:10 +0000, Groeting, Claus wrote:
> Hi all!
> 
> I have a problem with this commit, applied in poky:dunfell on file toolchain-
> shar-relocate.sh.
> sha1: d6f40be29bf56a835f5825692a22365f04aeb6c3
> 
> Author: hongxu <[email protected]>  2021-08-10 15:33:56
> Committer: Richard Purdie <[email protected]>  2021-08-26
> 09:32:18
> Parent: dad6dd12fd6e2512f3bd5591327ee35ee22b913e (toolchain-shar-relocate.sh:
> Fix handling files with colons)
> Branches: dunfell, remotes/origin/dunfell
> Follows: dunfell-23.0.10, yocto-3.1.10
> Precedes: 
> 
>     sdk: fix relocate symlink failed
>     
>    
>     (From OE-Core rev: a155c4d4ca841ef492213a5f0b9121703c62e2b4)
>     
>     Signed-off-by: Hongxu Jia <[email protected]>
>     Signed-off-by: Alexandre Belloni <[email protected]>
>     Signed-off-by: Richard Purdie <[email protected]>
>     (cherry picked from commit 942c06a7348070b92f722fa5c439c8c4404485b7)
>     Signed-off-by: Steve Sakoman <[email protected]>
>     Signed-off-by: Richard Purdie <[email protected]>
> 
> -------------------- meta/files/toolchain-shar-relocate.sh 
> --------------------
> index 5433741296..ba873373e2 100644
> @@ -72,7 +72,7 @@ fi
>  
>  # change all symlinks pointing to @SDKPATH@
>  for l in $($SUDO_EXEC find $native_sysroot -type l); do
> - $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e
> "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
> + $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e
> "s:$SDK_BUILD_PATH:$target_sdk_dir:") $l
>   if [ $? -ne 0 ]; then
>   echo "Failed to setup symlinks. Relocate script failed. Abort!"
>   exit 1
> 
> it looks to me that SDK_BUILD_PATH is not defined in the sed instruction. When
> installing the generated SDK shell script, we see a lot of:
> sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> 
> Without that commit, everything looks ok. On master-branch SDK_BUILD_PATH is
> preset with "@SDKPATH@" but not on dunfell-branch this is missing in the
> file toolchain-shar-relocate.sh.

Hi,

I think there is a patch queued in the testing branch for dunfell:

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=stable/dunfell-nut


http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=stable/dunfell-nut&id=ed0f6236ceb6a127903241f783a526bcdefc66ce

that should address this.

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54672): https://lists.yoctoproject.org/g/yocto/message/54672
Mute This Topic: https://lists.yoctoproject.org/mt/85446004/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to