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

On Fri, 2025-04-25 at 19:29 +0200, Alexander Kanavin wrote:
> On Fri, 25 Apr 2025 at 11:31, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > > 3. This will also break all the tools that assume the current
> > > structure, and another reason this change shouldn't be taken lightly.
> > 
> > Perhaps, or perhaps not. Do we have a lot of tools that wouldn't cope
> > with this?
> 
> Likely Visual Studio Code support will have to be fixed? Impact of
> changes like this is difficult to predict until they're done. Then
> everyone comes out complaining their private scripts broke.
> 
> Otherwise, I'm slowly getting convinced that this is the right thing :)

I think you can see how my thoughts ended up here :)

> 
> > That 'logic' is effectively what do_unpack is already doing itself to
> > maintain 'compatibility'. Perhaps we could use the same logic in both
> > places and be consistent!
> > 
> > I'm torn here. I could take your patch, bury my head in the sand and
> > pretend everything is fine. We could try and actually improve this and
> > set things in a better direction for the future, at the expense of
> > breaking things in the short/medium term. I don't know what to do for
> > the best here to be honest. Taking the patch is way easier for me I
> > doubt we'll ever improvements if I don't push back on things at times
> > :/.
> 
> Here's something I want to propose, feel free to shoot it down. Should
> we start by just dropping support for this legacy compatibility of
> sources in workdir, and S = "${WORKDIR}/something"? So S, when set
> that way, becomes a hard recipe_qa error, and sources are always in
> UNPACKDIR. Yes, there would be a ton of recipes to be fixed, but the
> fix would be largely a search-and-replace. Admittedly, I didn't follow
> the arguments around UNPACKDIR closely and it may have been talked
> about, but why not just do it?

I think this is where I got to last time I looked at this. I ended up
introducing UNPACKDIR and cleaning up some of the stuff and leaving
that workaround in place in do_unpack.

To be honest I'm torn. Part of me wants to do it, part of me worries
about the breakage. We probably would need to prototype some patches,
see how bad it really is.

> Then this fix for devtool wouldn't add more complexity, it would just
> similarly replace workdir with unpackdir - not making things better
> but not making them worse either. On the other hand, if we do nothing,
> then devtool currently doesn't work for recipes that set S to
> unpackdir, negatively impacting AUH rates for one thing (this is why I
> got into it in the first place) :-(

I agree we need to do something, it is just a question of what (and
perhaps when).

Cheers,

Richard


      reply	other threads:[~2025-04-30 10:20 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 ` [OE-core] [PATCH 1/4] devtool: account for sources in UNPACKDIR Richard Purdie
2025-04-24 11:44   ` 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 [this message]

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=f8ee9dbf94bf37d436e94b3cbe2aa9362587b455.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.