From: Stefano Lattarini <stefano.lattarini@gmail.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [RFH] NetBSD 6?
Date: Thu, 03 Jan 2013 20:28:43 +0100 [thread overview]
Message-ID: <50E5DBEB.9080009@gmail.com> (raw)
In-Reply-To: <rmiobh6rujt.fsf@fnord.ir.bbn.com>
On 01/03/2013 07:27 PM, Greg Troxel wrote:
>
> Junio C Hamano <gitster@pobox.com> writes:
>
>> I forgot to mention that we also ship configure (and keep track of
>> configure.ac) so that optionally people can let autoconf machinery
>> to create config.mak.autogen to be included at the same place as
>> handcrafted config.mak in their build process. I do not offhand
>> know if we do "for p in python python2.6 python2.7; do ..." kind of
>> thing, though.
>
> pkgsrc uses the configure method, but it seems not to output a
> PYTHON_PATH. It looks like automake's python.m4 is not used by git's
> configure.ac.
>
That is not surprising, since Git build system doesn't use Automake :-)
In addition, it's worth nothing that Automake's python support (both
in its m4 and make components) is intended as an help to install python
*modules* from Autotools-based packages; using it for mere stand-alone
scripts would be overkill.
In the case of Git, an adapted version of something like this might
be enough:
AC_CHECK_PROGS([PYTHON], [python python2.7 python2.6 python2.5])
if test -z "$PYTHON"; then
AC_MSG_WARNING([python not found])
fi
$PYTHON -c 'check-not-py3k' || AC_MSG_WARNING([Python 3 is not supported])
$PYTHON -c 'check-its-version' || AC_MSG_WARNING([python is too old])
(Automake itself uses, in its own build system, a similar idiom to
look for a Perl interpreter at configure runtime).
Not my itch so far, but I will happily review a patch if anyone is
willing to write it.
> But pkgsrc passes PYTHON_PATH in the environment to make,
> so it works out currently.
>
>> It refers to the type of the second parameter to iconv(); OLD_ICONV
>> makes it take "const char *", as opposed to "char *", the latter of
>> which matches
>>
>> http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html
>
> Thanks - I now see our extra const and am looking into it.
Regards,
Stefano
next prev parent reply other threads:[~2013-01-03 19:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-02 23:11 [RFH] NetBSD 6? Junio C Hamano
2013-01-03 0:25 ` Greg Troxel
2013-01-03 0:30 ` Greg Troxel
2013-01-03 2:15 ` Junio C Hamano
2013-01-03 13:58 ` Greg Troxel
2013-01-03 16:17 ` Junio C Hamano
2013-01-03 18:27 ` Greg Troxel
2013-01-03 19:28 ` Stefano Lattarini [this message]
2013-01-08 18:53 ` Greg Troxel
2013-01-08 19:03 ` Junio C Hamano
2013-01-08 19:08 ` Greg Troxel
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=50E5DBEB.9080009@gmail.com \
--to=stefano.lattarini@gmail.com \
--cc=gdt@ir.bbn.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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;
as well as URLs for NNTP newsgroup(s).