Ticket #27493 (closed defect: fixed)
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
Change History
Changed 5 years ago by corwin.amber@…
- Attachment macports_git-core.diff added
comment:1 Changed 5 years ago by jmr@…
- Cc maccheck@… removed
- Owner changed from macports-tickets@… to maccheck@…
- Keywords haspatch added
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.
Note: See
TracTickets for help on using
tickets.


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