public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Rob Clark <robdclark@gmail.com>,
	linux-arm-msm@vger.kernel.org,
	Dmitry Baryshkov <dmitry.baryshkov@linaro.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kbuild@vger.kernel.org, dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 1/2] init/Kconfig: add python3 availability config
Date: Fri, 22 Nov 2024 21:41:57 +0100	[thread overview]
Message-ID: <20241122204157.GA125569@pevik> (raw)
In-Reply-To: <CAK7LNAQDMJUYUF7BaN10bwctW7fuHmSMrrAjMmn4s7P2ys5P+Q@mail.gmail.com>

> On Thu, Nov 21, 2024 at 10:49 AM Rob Clark <robdclark@gmail.com> wrote:

> > On Wed, Nov 20, 2024 at 5:17 PM Petr Vorel <pvorel@suse.cz> wrote:

> > > > On Thu, Nov 21, 2024 at 5:41 AM Petr Vorel <pvorel@suse.cz> wrote:

> > > > > It will be used in the next commit for DRM_MSM.

> > > > > Suggested-by: Rob Clark <robdclark@gmail.com>
> > > > > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> > > > > ---
> > > > > Changes v3->v4:
> > > > > * Move definition to the end of the file


> > > > I prefer to not check the tool.

> > > Ack.

> > > > Why don't you install python3?

> > > Everybody installs it when it's required, the question is how to inform about
> > > the dependency.

> > > There build environments are minimal environments:
> > > * chroot (e.g. cross compilation)
> > > * container

> > > These are used by both developers and distros.

> > I don't think py3 is an _onerous_ dependency, but it has come up as a
> > surprise in minimal distro build environments at least once.. so I'd
> > be a fan of surfacing this dependency in a predictable/understandable
> > way (ie. I'm in favor of this patchset)


> "once" is a keyword here.

> "/bin/sh: python3: not found" provides sufficient information
> about why the compilation failed, and you know what to do
> to fix the problem.
> This is good.

> If you hide CONFIG_DRM_MSM silently
> due to missing python3, you may scratch your head
> "why drm/msm was not compiled?".
It's not on the list, but still visible in help (via search).

> This is worse.

I'm ok with this being refused. Yes, it's a trivial thing to find that python3
is not installed. I wasn't sure myself if this is really better. Having
something like "requires $(PYTHON3)" would be best solution (e.g. not disable
the config, but exit before starting to build), but of course unless this
feature is needed for many modules it does not make sense to have it.
It's because kernel mostly contains everything (unless languages like python
or any other dependency starts to be added). For this reason I like that
mconf-cfg.sh warns when missing ncurses devel files (even suggesting package
names).

Just to explain what was my motivation. CONFIG_DRM_MSM in in arm64 defconfig,
thus it will affect anybody who uses the defconfig (any distro will need to add
it).

It's needed only for Qualcomm arm64 devices only. But only for these devices
which are mainlined enough to really use CONFIG_DRM_MSM (many of them aren't in
that state).

postmarketOS is the distribution which supports Qualcomm. It stores kernel
config for each device and devices often have individual maintainer. E.g. 175x
"once" :).

Kind regards,
Petr

  reply	other threads:[~2024-11-22 20:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-20 20:41 [PATCH v4 1/2] init/Kconfig: add python3 availability config Petr Vorel
2024-11-20 20:41 ` [PATCH v4 2/2] drm/msm: depend on python3 Petr Vorel
2024-11-20 21:34 ` [PATCH v4 1/2] init/Kconfig: add python3 availability config Masahiro Yamada
2024-11-21  1:17   ` Petr Vorel
2024-11-21  1:49     ` Rob Clark
2024-11-21 22:28       ` Masahiro Yamada
2024-11-22 20:41         ` Petr Vorel [this message]
2024-11-26  4:12           ` Masahiro Yamada
2024-11-21 22:16     ` Masahiro Yamada
2024-11-22  9:51       ` Jani Nikula
2024-11-22 13:49         ` Rob Clark
2024-11-22 14:13           ` Jani Nikula

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=20241122204157.GA125569@pevik \
    --to=pvorel@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=robdclark@gmail.com \
    /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