On Mon, 2023-02-20 at 13:30 -0800, Saul Wold wrote:
> This is needed when the SDK or eSDK is installed in a /build top level
> directory as it conflicts with the build directory within the existing
> /usr/src/debug/build (which is really a link). Rename it and then do the
> copy, 
> 

> this is not an issue with master currently due to some other
> changes that occurred in master.

Is this an issue in master or not? I can't parse that! :)

Cheers,

Richard

> 
> Fixes: [YOCTO #15026]
> 
> Signed-off-by: Saul Wold <[email protected]>
> ---
>  meta/classes/package.bbclass | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
> index 8b11fdd155..2950218145 100644
> --- a/meta/classes/package.bbclass
> +++ b/meta/classes/package.bbclass
> @@ -636,6 +636,13 @@ def copydebugsources(debugsrcdir, sources, d):
>          # Same check as above for externalsrc
>          if workdir not in sdir:
>              if os.path.exists(dvar + debugsrcdir + sdir):
> +                # Special case for /build since we need to move into
> +                # /usr/src/debug/build so rename sdir to build.build
> +                if sdir.find("/build") == 0:
> +                    cmd = "mv %s%s%s %s%s%s" % (dvar, debugsrcdir, "/build", 
> dvar, debugsrcdir, "/build.build")
> +                    subprocess.check_output(cmd, shell=True, 
> stderr=subprocess.STDOUT)
> +                    sdir = sdir.replace("/build", "/build.build", 1)
> +
>                  cmd = "mv %s%s%s/* %s%s" % (dvar, debugsrcdir, sdir, 
> dvar,debugsrcdir)
>                  subprocess.check_output(cmd, shell=True, 
> stderr=subprocess.STDOUT)
> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#177477): 
https://lists.openembedded.org/g/openembedded-core/message/177477
Mute This Topic: https://lists.openembedded.org/mt/97096266/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to