public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Randy MacLeod <randy.macleod@windriver.com>
To: kweihmann@outlook.com, openembedded-core@lists.openembedded.org,
	Jiaying.Song.CN@windriver.com
Subject: Re: [OE-core] [scarthgap][master][PATCH] python3: provide /usr/bin/python as a symlink to python3
Date: Tue, 23 Jul 2024 12:44:17 -0400	[thread overview]
Message-ID: <878fe028-ade0-4646-8294-429eebdaeb14@windriver.com> (raw)
In-Reply-To: <15389.1721741918254132393@lists.openembedded.org>

[-- Attachment #1: Type: text/plain, Size: 2877 bytes --]

On 2024-07-23 9:38 a.m., Konrad Weihmann via lists.openembedded.org wrote:
> I also vote against it.

I'm on the fence but I'll be swayed by the "against" voters.

There are pros and cons to a system-wide solution but it seems that
people prefer to have these problems fixed in each affected recipe.
Best solution is to update the script to call and work with python3.
If the upstream refuses to do that, the layer would have to carry a patch.

This is how most such '/usr/bin/python' problems have been solved.
It's a shame that upstream python didn't mandate a specific solution.

Btw, some people could use:

https://github.com/Igalia/meta-webkit/blob/main/recipes-devtools/python/python-is-python3_1.0.bb
https://github.com/Igalia/meta-webkit/commit/b2156c282a6e727100dee25155fbc38d1532b573
https://github.com/Igalia/meta-webkit/commit/46fbfbc58f82abc3dc8794c630172d4554be0830

❯ git log --stat 46fbfbc5
commit 46fbfbc58f82abc3dc8794c630172d4554be0830
Author: Carlos Alberto Lopez Perez <clopez@igalia.com>
Date:   Mon Dec 19 20:29:05 2022

     Add a new image and distro definition for using on the WebKit CI 
for WPE perf bots

  ...

     * It adds also a 'python-is-python3' recipe that creates a symlink
     to provide the unversioned python interpreter as python3.


but both oe-core and meta-oe maintainers said on today's YP tech call that
they would *not* carry that recipe.

../Randy



>
> While I see the convenience in dropping a lot of patches the better 
> approach would be to add something like python-is-python3, for the 
> ones that require it.
> (meta-webkit does provide it already 
> https://github.com/Igalia/meta-webkit/blob/main/recipes-devtools/python/python-is-python3_1.0.bb).
>
> Adding a link by the base package and recommending to the user to 
> remove it again, would create two very unwelcome situations.
>
> a) it will clash at image assembly with an error message that will no 
> easily point to the python base package
> b) create a need to run with a permanent remove operation on top of 
> poky (creating the need for new sstate cache artifacts)
>
> What I could see is to move the symlink into an optional package, 
> which could be used by the few recipes that still use the "wrong" 
> interpreter line via RDEPENDS, that would be the much cleaner solution 
> here
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#202364):https://lists.openembedded.org/g/openembedded-core/message/202364
> Mute This Topic:https://lists.openembedded.org/mt/107264938/3616765
> Group Owner:openembedded-core+owner@lists.openembedded.org
> Unsubscribe:https://lists.openembedded.org/g/openembedded-core/unsub  [randy.macleod@windriver.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>

-- 
# Randy MacLeod
# Wind River Linux

[-- Attachment #2: Type: text/html, Size: 5342 bytes --]

  reply	other threads:[~2024-07-23 16:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-17  2:32 [scarthgap][master][PATCH] python3: provide /usr/bin/python as a symlink to python3 jiaying.song.cn
2024-07-18 22:47 ` [OE-core] " Denys Dmytriyenko
2024-07-19  6:17   ` Alexander Kanavin
2024-07-19  6:18     ` Alexander Kanavin
2024-07-19 16:46       ` Denys Dmytriyenko
2024-07-23 13:38         ` Konrad Weihmann
2024-07-23 16:44           ` Randy MacLeod [this message]
2024-07-23 17:56             ` [OE-core] " Alexander Kanavin
2024-07-23 18:18               ` Konrad Weihmann
2024-07-23 18:25                 ` Alexander Kanavin
2024-07-23 18:41               ` Randy MacLeod
2024-07-24 16:01 ` Richard Purdie
2024-07-24 16:17   ` Alexander Kanavin
2024-07-24 16:36     ` Martin Jansa
2024-07-24 16:44       ` Alexander Kanavin

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=878fe028-ade0-4646-8294-429eebdaeb14@windriver.com \
    --to=randy.macleod@windriver.com \
    --cc=Jiaying.Song.CN@windriver.com \
    --cc=kweihmann@outlook.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox