public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug build/29308] [gdb/build] python 3.10 problems
Date: Fri, 01 Jul 2022 09:27:03 +0000	[thread overview]
Message-ID: <bug-29308-4717-nZ3wRwH5TO@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-29308-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=29308

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Simon Marchi from comment #1)
> Why do we ship our own python-config.py? 

Here ( https://sourceware.org/pipermail/gdb-patches/2010-May/074836.html ) is
mentioned:
...
python-config is a python script so it won't work when build != host.
...

> We could maybe rely on the
> python-config scripts shipped with Python installations. 

I'll give that a try.

> I guess that
> python-config scripts were maybe not always there in the past?
> 

AFAICT, the python-config shell script was introduced starting 3.4.

>From looking at the cpython.git sources, the python-config python script
appeared in 2.7, but looking at the original commit of
gdb/python/python-config.py is mentions a copy from 2.6.5, so perhaps I'm
missing something.

> We would append `-config` to the python executable.  Since you passed
> --with-python=python3, it means python3 is in your PATH, so python3-config
> should also exist in your PATH.
> 

FWIW, I need to install python3-devel to get python3-config, in addition to the
python3 package, but that's not a problem of course.  I need to install lots of
-devel packages to be able to build gdb.

> My guess is that since python-config scripts are now shell scripts, they can
> be executed on the build machine even cross-compiling.  So maybe it would
> simplify the case described here:
> 
> https://sourceware.org/gdb/wiki/CrossCompilingWithPythonSupport
> 
> Not sure.

AFAICT, that was exactly the purpose of moving to a shell script.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2022-07-01  9:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30 17:01 [Bug build/29308] New: " vries at gcc dot gnu.org
2022-06-30 17:48 ` [Bug build/29308] " simark at simark dot ca
2022-07-01  9:27 ` vries at gcc dot gnu.org [this message]
2022-07-01  9:28 ` vries at gcc dot gnu.org
2022-07-01  9:35 ` vries at gcc dot gnu.org
2022-07-01  9:53 ` vries at gcc dot gnu.org
2022-07-01 15:14 ` kevinb at redhat dot com
2022-07-01 15:18 ` simark at simark dot ca
2022-07-02  9:17 ` vries at gcc dot gnu.org
2022-07-02  9:43 ` [Bug build/29308] [gdb/build] python 3.12 problems vries at gcc dot gnu.org
2022-09-01  9:09 ` vries at gcc dot gnu.org

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=bug-29308-4717-nZ3wRwH5TO@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).