* [dunfell][PATCH] Revert "sdk: fix relocate symlink failed"
@ 2021-09-01 19:33 gr embeter
2021-09-01 19:38 ` gr embeter
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: gr embeter @ 2021-09-01 19:33 UTC (permalink / raw)
To: openembedded-core; +Cc: steve, grygorii tertychnyi
This reverts commit a155c4d4ca841ef492213a5f0b9121703c62e2b4.
Otherwise, SDK installing fails with:
Extracting SDK...........................................................done
Setting it up...sed: -e expression #1, char 0: no previous regular expression
sed: -e expression #1, char 0: no previous regular expression
... tonns of lines ...
sed: -e expression #1, char 0: no previous regular expression
done
SDK has been successfully set up and is ready to be used.
Original commit message mentions commit bc4ee54535 ("sdk: Decouple
default install path from built in path"), that is not part of
dunfell. Hence, revert this fix.
Signed-off-by: grygorii tertychnyi <grembeter@outlook.com>
---
meta/files/toolchain-shar-relocate.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
index ba873373e29e..54337412966c 100644
--- a/meta/files/toolchain-shar-relocate.sh
+++ b/meta/files/toolchain-shar-relocate.sh
@@ -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:$SDK_BUILD_PATH:$target_sdk_dir:") $l
+ $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
if [ $? -ne 0 ]; then
echo "Failed to setup symlinks. Relocate script failed. Abort!"
exit 1
--
2.30.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [dunfell][PATCH] Revert "sdk: fix relocate symlink failed"
2021-09-01 19:33 [dunfell][PATCH] Revert "sdk: fix relocate symlink failed" gr embeter
@ 2021-09-01 19:38 ` gr embeter
2021-09-01 19:43 ` Steve Sakoman
2021-09-01 22:33 ` Steve Sakoman
2 siblings, 0 replies; 5+ messages in thread
From: gr embeter @ 2021-09-01 19:38 UTC (permalink / raw)
To: steve; +Cc: grygorii tertychnyi, OE-core
Hi Steve,
I observe the same sed messages in hardknott, would you please
consider applying it there as well?
On Wed, Sep 1, 2021 at 9:33 PM grygorii tertychnyi <grembeter@gmail.com> wrote:
>
> This reverts commit a155c4d4ca841ef492213a5f0b9121703c62e2b4.
>
> Otherwise, SDK installing fails with:
>
> Extracting SDK...........................................................done
> Setting it up...sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> ... tonns of lines ...
> sed: -e expression #1, char 0: no previous regular expression
> done
> SDK has been successfully set up and is ready to be used.
>
> Original commit message mentions commit bc4ee54535 ("sdk: Decouple
> default install path from built in path"), that is not part of
> dunfell. Hence, revert this fix.
>
> Signed-off-by: grygorii tertychnyi <grembeter@outlook.com>
> ---
> meta/files/toolchain-shar-relocate.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
> index ba873373e29e..54337412966c 100644
> --- a/meta/files/toolchain-shar-relocate.sh
> +++ b/meta/files/toolchain-shar-relocate.sh
> @@ -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:$SDK_BUILD_PATH:$target_sdk_dir:") $l
> + $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
> if [ $? -ne 0 ]; then
> echo "Failed to setup symlinks. Relocate script failed. Abort!"
> exit 1
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dunfell][PATCH] Revert "sdk: fix relocate symlink failed"
2021-09-01 19:33 [dunfell][PATCH] Revert "sdk: fix relocate symlink failed" gr embeter
2021-09-01 19:38 ` gr embeter
@ 2021-09-01 19:43 ` Steve Sakoman
2021-09-01 22:33 ` Steve Sakoman
2 siblings, 0 replies; 5+ messages in thread
From: Steve Sakoman @ 2021-09-01 19:43 UTC (permalink / raw)
To: grygorii tertychnyi
Cc: Patches and discussions about the oe-core layer, grygorii tertychnyi
On Wed, Sep 1, 2021 at 9:33 AM grygorii tertychnyi <grembeter@gmail.com> wrote:
>
> This reverts commit a155c4d4ca841ef492213a5f0b9121703c62e2b4.
>
> Otherwise, SDK installing fails with:
>
> Extracting SDK...........................................................done
> Setting it up...sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> ... tonns of lines ...
> sed: -e expression #1, char 0: no previous regular expression
> done
> SDK has been successfully set up and is ready to be used.
>
> Original commit message mentions commit bc4ee54535 ("sdk: Decouple
> default install path from built in path"), that is not part of
> dunfell. Hence, revert this fix.
Have you by any chance tried with the above mentioned patch to see if
the pair of patches works in dunfell?
This patch was intended to fix:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14444
It does seem to fix the issue in master, which has both patches.
Steve
>
> Signed-off-by: grygorii tertychnyi <grembeter@outlook.com>
> ---
> meta/files/toolchain-shar-relocate.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
> index ba873373e29e..54337412966c 100644
> --- a/meta/files/toolchain-shar-relocate.sh
> +++ b/meta/files/toolchain-shar-relocate.sh
> @@ -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:$SDK_BUILD_PATH:$target_sdk_dir:") $l
> + $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
> if [ $? -ne 0 ]; then
> echo "Failed to setup symlinks. Relocate script failed. Abort!"
> exit 1
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dunfell][PATCH] Revert "sdk: fix relocate symlink failed"
2021-09-01 19:33 [dunfell][PATCH] Revert "sdk: fix relocate symlink failed" gr embeter
2021-09-01 19:38 ` gr embeter
2021-09-01 19:43 ` Steve Sakoman
@ 2021-09-01 22:33 ` Steve Sakoman
2021-09-02 6:56 ` gr embeter
2 siblings, 1 reply; 5+ messages in thread
From: Steve Sakoman @ 2021-09-01 22:33 UTC (permalink / raw)
To: grygorii tertychnyi, Richard Purdie
Cc: Patches and discussions about the oe-core layer, grygorii tertychnyi
On Wed, Sep 1, 2021 at 9:33 AM grygorii tertychnyi <grembeter@gmail.com> wrote:
>
> This reverts commit a155c4d4ca841ef492213a5f0b9121703c62e2b4.
>
> Otherwise, SDK installing fails with:
>
> Extracting SDK...........................................................done
> Setting it up...sed: -e expression #1, char 0: no previous regular expression
> sed: -e expression #1, char 0: no previous regular expression
> ... tonns of lines ...
> sed: -e expression #1, char 0: no previous regular expression
> done
> SDK has been successfully set up and is ready to be used.
I can confirm the above noise from sed in dunfell, though the SDK does
seem to be set up successfully as the above message indicates. I have
verified that I can use the resulting sdk to build a test app.
Also I can confirm that
https://bugzilla.yoctoproject.org/show_bug.cgi?id=14444 is fixed with
"sdk: fix relocate symlink failed" (in both master and dunfell)
> Original commit message mentions commit bc4ee54535 ("sdk: Decouple
> default install path from built in path"), that is not part of
> dunfell. Hence, revert this fix.
Adding "sdk: Decouple default install path from built in path" to
dunfell eliminates the sed noise you were encountering.
So I think we want both "sdk: fix relocate symlink failed" and "sdk:
Decouple default install path from built in path" in dufell.
Thoughts Richard? I know you were worrying about this.
Steve
> Signed-off-by: grygorii tertychnyi <grembeter@outlook.com>
> ---
> meta/files/toolchain-shar-relocate.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
> index ba873373e29e..54337412966c 100644
> --- a/meta/files/toolchain-shar-relocate.sh
> +++ b/meta/files/toolchain-shar-relocate.sh
> @@ -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:$SDK_BUILD_PATH:$target_sdk_dir:") $l
> + $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
> if [ $? -ne 0 ]; then
> echo "Failed to setup symlinks. Relocate script failed. Abort!"
> exit 1
> --
> 2.30.2
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [dunfell][PATCH] Revert "sdk: fix relocate symlink failed"
2021-09-01 22:33 ` Steve Sakoman
@ 2021-09-02 6:56 ` gr embeter
0 siblings, 0 replies; 5+ messages in thread
From: gr embeter @ 2021-09-02 6:56 UTC (permalink / raw)
To: Steve Sakoman
Cc: Richard Purdie, Patches and discussions about the oe-core layer,
grygorii tertychnyi
On Thu, Sep 2, 2021 at 12:33 AM Steve Sakoman <steve@sakoman.com> wrote:
>
> On Wed, Sep 1, 2021 at 9:33 AM grygorii tertychnyi <grembeter@gmail.com> wrote:
> >
> > This reverts commit a155c4d4ca841ef492213a5f0b9121703c62e2b4.
> >
> > Otherwise, SDK installing fails with:
> >
> > Extracting SDK...........................................................done
> > Setting it up...sed: -e expression #1, char 0: no previous regular expression
> > sed: -e expression #1, char 0: no previous regular expression
> > ... tonns of lines ...
> > sed: -e expression #1, char 0: no previous regular expression
> > done
> > SDK has been successfully set up and is ready to be used.
>
> I can confirm the above noise from sed in dunfell, though the SDK does
> seem to be set up successfully as the above message indicates. I have
> verified that I can use the resulting sdk to build a test app.
Actually, in my case all symlinks are wrong. I installed the SDK in a
non-default
path with "-y -d <path>" but all symlinks point to default path:
» l ./sysroots/x86_64-leicasdk-linux/bin/zcat
lrwxrwxrwx 1 gr grygorii 61 2021-09-02 08:37
./sysroots/x86_64-leicasdk-linux/bin/zcat ->
/opt/geosurv/3.1/sysroots/x86_64-leicasdk-linux/bin/zcat.gzip
instead of
» l ./sysroots/x86_64-leicasdk-linux/bin/zcat
lrwxrwxrwx 1 gr grygorii 67 2021-09-02 08:26
./sysroots/x86_64-leicasdk-linux/bin/zcat ->
/geo/wok/1/sdk-try/sdk/sysroots/x86_64-leicasdk-linux/bin/zcat.gzip
So, it breaks our workflow now.
> Also I can confirm that
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=14444 is fixed with
> "sdk: fix relocate symlink failed" (in both master and dunfell)
Are you sure it is "sdk: fix relocate symlink failed"
https://git.openembedded.org/openembedded-core/commit/?id=a155c4d4ca841ef492213a5f0b9121703c62e2b4?
It does not look related to this bug.
> > Original commit message mentions commit bc4ee54535 ("sdk: Decouple
> > default install path from built in path"), that is not part of
> > dunfell. Hence, revert this fix.
>
> Adding "sdk: Decouple default install path from built in path" to
> dunfell eliminates the sed noise you were encountering.
>
> So I think we want both "sdk: fix relocate symlink failed" and "sdk:
> Decouple default install path from built in path" in dufell.
I confirm that adding "sdk: Decouple default install path from built in path"
to dunfell fixes "sed" issues.
So, most probably instead of reverting "sdk: fix relocate symlink failed"
we need to add "sdk: Decouple default install path from built in path"
to dunfell.
And handknott : )
> Thoughts Richard? I know you were worrying about this.
>
> Steve
>
>
> > Signed-off-by: grygorii tertychnyi <grembeter@outlook.com>
> > ---
> > meta/files/toolchain-shar-relocate.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
> > index ba873373e29e..54337412966c 100644
> > --- a/meta/files/toolchain-shar-relocate.sh
> > +++ b/meta/files/toolchain-shar-relocate.sh
> > @@ -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:$SDK_BUILD_PATH:$target_sdk_dir:") $l
> > + $SUDO_EXEC ln -sfn $(readlink $l|$SUDO_EXEC sed -e "s:$DEFAULT_INSTALL_DIR:$target_sdk_dir:") $l
> > if [ $? -ne 0 ]; then
> > echo "Failed to setup symlinks. Relocate script failed. Abort!"
> > exit 1
> > --
> > 2.30.2
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-09-02 6:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 19:33 [dunfell][PATCH] Revert "sdk: fix relocate symlink failed" gr embeter
2021-09-01 19:38 ` gr embeter
2021-09-01 19:43 ` Steve Sakoman
2021-09-01 22:33 ` Steve Sakoman
2021-09-02 6:56 ` gr embeter
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.