All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: alex.kanavin@gmail.com, openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [PATCH 1/4] devtool: account for sources in UNPACKDIR
Date: Thu, 24 Apr 2025 12:32:25 +0100	[thread overview]
Message-ID: <cf05b37db043dd939ec540a24ae0343376e5a830.camel@linuxfoundation.org> (raw)
In-Reply-To: <20250424111014.905507-1-alex.kanavin@gmail.com>

On Thu, 2025-04-24 at 13:10 +0200, Alexander Kanavin via lists.openembedded.org wrote:
> From: Alexander Kanavin <alex@linutronix.de>
> 
> There's a couple of assumptions in devtool that sources
> are always in a directory under WORKDIR; this is no longer
> the case since introduction of UNPACKDIR: some recipes
> are starting to use
> 
> S = "${UNPACKDIR}/git"
> 
> or similar, and so the logic to determine source locations
> needs to be tweaked accordingly.
> 
> The issue is that oe-core has no concept of 'top level source
> path' (S points to where the build is started from, inside that
> top level location), and yet devtool needs to know that in order
> to move the complete source tree correctly to a workspace (and possibly
> other uses).
> 
> And so devtool performs convoluted path calculations from WORKDIR and S;
> now this has been extended to include UNPACKDIR and became more convoluted
> but hopefully it won't get any worse.
> 
> Signed-off-by: Alexander Kanavin <alex@linutronix.de>
> ---
>  meta/classes/devtool-source.bbclass |  8 ++++++--
>  scripts/lib/devtool/ide_sdk.py      |  2 +-
>  scripts/lib/devtool/standard.py     | 25 +++++++++++++++++++------
>  scripts/lib/devtool/upgrade.py      |  2 +-
>  4 files changed, 27 insertions(+), 10 deletions(-)

UNPACKDIR was meant to help with this. If devtool is changing the
location, can't it just change UNPACKDIR and leave everything else
alone? S will still be under UNPACKDIR/git even after devtool moves it?

Cheers,

Richard


  parent reply	other threads:[~2025-04-24 11:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-24 11:10 [PATCH 1/4] devtool: account for sources in UNPACKDIR Alexander Kanavin
2025-04-24 11:10 ` [PATCH 2/4] tcf-agent: update SRC_URI to https://gitlab.eclipse.org Alexander Kanavin
2025-04-24 11:10 ` [PATCH 3/4] libarchive: correct upstream version check Alexander Kanavin
2025-04-24 11:10 ` [PATCH 4/4] libunwind: use github-releases class to determine latest versions Alexander Kanavin
2025-04-24 11:32 ` Richard Purdie [this message]
2025-04-24 11:44   ` [OE-core] [PATCH 1/4] devtool: account for sources in UNPACKDIR Alexander Kanavin
2025-04-24 12:13     ` Richard Purdie
     [not found]     ` <18394019E7982924.8448@lists.openembedded.org>
2025-04-24 12:14       ` Richard Purdie
2025-04-24 12:41         ` Alexander Kanavin
2025-04-24 13:50           ` Richard Purdie
2025-04-24 17:36             ` Adrian Freihofer
2025-04-24 19:49               ` Alexander Kanavin
2025-04-24 19:36             ` Alexander Kanavin
2025-04-24 20:34               ` Richard Purdie
2025-04-25  8:33                 ` Alexander Kanavin
2025-04-25  9:31                   ` Richard Purdie
2025-04-25 17:29                     ` Alexander Kanavin
2025-04-30 10:20                       ` Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf05b37db043dd939ec540a24ae0343376e5a830.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.