threads / bug / 32325

[BUG] Hardcoded python and install on solaris

Subject: [BUG] Hardcoded python and install on solaris

## tl;dr

2 messages between Dec 12, 2012 and Dec 12, 2012.

replies: 1people: 2as markdown or json

P Fudd· Dec 12, 2012, 22:34 UTC · lore
Hi;

When compiling git-1.8.0.2 on a moderately old OpenIndiana machine, I had to install a few things (m4, autoconf, coreutils, xz, python).

Even though I started the configuration fresh (make distclean; configure), the makefile still wanted to use /usr/bin/python (instead of /usr/local/bin/python) and /usr/usb/install (instead of /usr/local/bin/install).

Thanks for a great SCM!
Junio C Hamano· Dec 12, 2012, 23:08 UTC · re: P Fudd · lore

Re: [BUG] Hardcoded python and install on solaris

"P Fudd" <pfudd@mailinator.com> writes:
Show 7 quoted lines
> When compiling git-1.8.0.2 on a moderately old OpenIndiana machine, I had
> to install a few things (m4, autoconf, coreutils, xz, python).
>
> Even though I started the configuration fresh (make distclean; configure),
> the makefile still wanted to use /usr/bin/python (instead of
> /usr/local/bin/python) and /usr/usb/install (instead of
> /usr/local/bin/install).

You need to specify PYTHON_PATH on the build command line, something like:

    $ make PYTHON_PATH=/usr/local/bin/python
    $ make PYTHON_PATH=/usr/local/bin/python install

We don't really rely on configure, and it sometimes is the case where ./configure output does not know some knobs you can tweak in the Makefile, but this one is not.

I think you can use --with-python=/usr/local/bin/python when running the ./configure script. ./configure --help may tell you more about what you can tweak.

← back to recent threads