Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Matthias Klose <doko@ubuntu.com>, gdb-patches@sourceware.org
Subject: Re: [patch] use python-config if available
Date: Fri, 21 Dec 2012 17:31:00 -0000	[thread overview]
Message-ID: <CADPb22S7Hmm=MhyFFZZiH18S_CJr-Xps_V1Ts_m6kPjGOCa9Bw@mail.gmail.com> (raw)
In-Reply-To: <20121221075721.GE5370@adacore.com>

On Thu, Dec 20, 2012 at 11:57 PM, Joel Brobecker <brobecker@adacore.com> wrote:
>> cross building in a multiarch environment, where the host libraries
>> are installed, and a <host>-python-config is shipped as part of the
>> system python.  This <host>-python-config is a backport of
>> http://bugs.python.org/issue16235 (not yet applied upstream).
>
> Ah, OK. Now I understand your problem.
>
>> so what is your recommendation? configure.ac reads:
>>
>> dnl /path/to/python/executable -
>> dnl        Run python-config.py with this version of python to fetch the
>> dnl        compilation parameters.
>> dnl        NOTE: This needn't be the real python executable.
>> dnl        In a cross-compilation scenario (build != host), this could be
>> dnl        a shell script that provides what python-config.py provides for
>> dnl        --ldflags, --includes, --exec-prefix.
>>
>> do I really have to provide a shell script, which shifts the first
>> parameter, and then calls the real python-config?
>
> I think that this was the plan, yes; but Doug Evans would probably
> know more, as he is the main author of this code (I only fiddled
> with it).

The patch is fine with me.
[The plan wasn't to shift and call the "real" python-config ... at the
time there was no real python-config for cross builds.]

One typo: should be ${python_config}

-        AC_ERROR(failure running python-config --exec-prefix)
+        AC_ERROR(failure running ${python-config} --exec-prefix)


  reply	other threads:[~2012-12-21 17:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-20 15:41 Matthias Klose
2012-12-20 15:43 ` Matthias Klose
2012-12-20 15:53   ` Pierre Muller
2012-12-20 15:59   ` Joel Brobecker
2012-12-20 16:13     ` Matthias Klose
2012-12-21  7:57       ` Joel Brobecker
2012-12-21 17:31         ` Doug Evans [this message]
2012-12-21 17:51           ` Joel Brobecker
2012-12-22 19:33             ` Doug Evans

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='CADPb22S7Hmm=MhyFFZZiH18S_CJr-Xps_V1Ts_m6kPjGOCa9Bw@mail.gmail.com' \
    --to=dje@google.com \
    --cc=brobecker@adacore.com \
    --cc=doko@ubuntu.com \
    --cc=gdb-patches@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