New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #27493 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

git-core @1.7.3.2 Setting PYTHON_PATH arg for build, but not for destroot

Reported by: corwin.amber@… Owned by: maccheck@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: haspatch Cc: dports@…
Port: git-core

Description

The Makefile used by git uses the variable PYTHON_PATH to find the Python executable. During configure and make, this variable is correctly set to /opt/local/bin/python2.6, but for make install this variable is not set and defaults to /usr/bin/python. So it's using the system Python rather than the MacPorts Python.

This causes difficulties esp. when you have macosx_deployment_target set in your macports.conf.

distutils.errors.DistutilsPlatformError:
$MACOSX_DEPLOYMENT_TARGET mismatch: now "10.5" but "10.6" during configure

Attachments

macports_git-core.diff (994 bytes) - added by corwin.amber@… 5 years ago.
I have used this patch successfully in this case (gen by svn diff).
Portfile.patch (1.2 KB) - added by maccheck@… 5 years ago.

Change History

Changed 5 years ago by corwin.amber@…

I have used this patch successfully in this case (gen by svn diff).

comment:1 Changed 5 years ago by jmr@…

  • Cc maccheck@… removed
  • Owner changed from macports-tickets@… to maccheck@…
  • Keywords haspatch added

Changed 5 years ago by maccheck@…

comment:2 Changed 5 years ago by maccheck@…

I checked that patch and can confirm that it is working properly. I added Portfile.patch with increased revision no.

comment:3 Changed 5 years ago by dports@…

  • Status changed from new to closed
  • Cc dports@… added
  • Resolution set to fixed

Committed in r73962.

Note: See TracTickets for help on using tickets.