Correct references to /usr/bin/python which does not exist on FreeBSD
PATCH v2 1/1 Correct references to /usr/bin/python which does not exist on FreeBSD
On FreeBSD, Python does not ship as part of the base system but is available via the ports system, which install the binary in /usr/local/bin.
--- Makefile | 6 +++++- contrib/fast-import/import-zips.py | 2 +- contrib/hg-to-git/hg-to-git.py | 2 +- contrib/p4import/git-p4import.py | 2 +- git_remote_helpers/Makefile | 6 +++++- 5 files changed, 13 insertions(+), 5 deletions(-)
Makefile +5 -1
@@ -444,7 +444,11 @@ ifndef PERL_PATH PERL_PATH = /usr/bin/perl endif ifndef PYTHON_PATH - PYTHON_PATH = /usr/bin/python + ifeq ($(uname_S),FreeBSD) + PYTHON_PATH = /usr/local/bin/python + else + PYTHON_PATH = /usr/bin/python + endif endif export PERL_PATH
contrib/fast-import/import-zips.py +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python ## zip archive frontend for git-fast-import ##
contrib/hg-to-git/hg-to-git.py +1 -1
@@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/env python """ hg-to-git.py - A Mercurial to GIT converter
contrib/p4import/git-p4import.py +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # This tool is copyright (c) 2006, Sean Estabrooks. # It is released under the Gnu Public License, version 2.
git_remote_helpers/Makefile +5 -1
@@ -7,7 +7,11 @@ pysetupfile:=setup.py DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) ifndef PYTHON_PATH - PYTHON_PATH = /usr/bin/python + ifeq ($(uname_S),FreeBSD) + PYTHON_PATH = /usr/local/bin/python + else + PYTHON_PATH = /usr/bin/python + endif endif ifndef prefix prefix = $(HOME)
Signature · 1 line
1.6.4.3
Quoted 3 lines · R. Tyler Ballance
On FreeBSD, Python does not ship as part of the base system but is available via the ports system, which install the binary in
/usr/local/bin.
---
Sign-off?
Quoted 5 lines
Makefile +0
-0
Makefile ifndef PERL_PATH · line 452
Quoted 10 lines
Makefile +5
-1@@ -444,7 +444,11 @@ ifndef PERL_PATH PERL_PATH = /usr/bin/perl endif ifndef PYTHON_PATH - PYTHON_PATH = /usr/bin/python + ifeq ($(uname_S),FreeBSD) + PYTHON_PATH = /usr/local/bin/python + else + PYTHON_PATH = /usr/bin/python + endif endif
I would have expected that the patch would look more like this:
Makefile +1 -0
@@ -831,6 +831,7 @@ ifeq ($(uname_S),FreeBSD) NO_UINTMAX_T = YesPlease NO_STRTOUMAX = YesPlease endif + PYTHON_PATH = /usr/local/bin/python endif ifeq ($(uname_S),OpenBSD) NO_STRCASESTR = YesPlease
What am I missing?
Quoted 7 lines · Junio C Hamano
Quoted 3 lines · R. Tyler Ballance
On FreeBSD, Python does not ship as part of the base system but is available via the ports system, which install the binary in
/usr/local/bin.
---Sign-off?
Sorry, I was under the impression somebody who knew what the hell they were doing would be the one adding a Sign-off By to the commit :)
Quoted 32 lines
Quoted 6 lines
Makefile +0
-0Makefile ifndef PERL_PATH · line 452
Quoted 10 lines
Makefile +5
-1@@ -444,7 +444,11 @@ ifndef PERL_PATH PERL_PATH = /usr/bin/perl endif ifndef PYTHON_PATH - PYTHON_PATH = /usr/bin/python + ifeq ($(uname_S),FreeBSD) + PYTHON_PATH = /usr/local/bin/python + else + PYTHON_PATH = /usr/bin/python + endif endifI would have expected that the patch would look more like this:
Makefile +1
-0@@ -831,6 +831,7 @@ ifeq ($(uname_S),FreeBSD) NO_UINTMAX_T = YesPlease NO_STRTOUMAX = YesPlease endif + PYTHON_PATH = /usr/local/bin/python endif ifeq ($(uname_S),OpenBSD) NO_STRCASESTR = YesPlease
Quoted 1 line
What am I missing?
No, that looks right, I didn't notice the specialized section towards the bottom for FreeBSD or the others for that matter.
Third time's the charm
Cheers,
-R. Tyler Ballance
--------------------------------------
Jabber: [email protected]
GitHub: http://github.com/rtyler
Twitter: http://twitter.com/agentdero
Blog: http://unethicalblogger.com
Quoted 6 lines · R. Tyler Ballance
Quoted 3 lines
I would have expected that the patch would look more like this:
...
What am I missing?No, that looks right, I didn't notice the specialized section towards the bottom for FreeBSD or the others for that matter.
Thanks. I usually use a "make" wrapper to handle platform particulars like setting PYTHON_PATH automatically outside of the build system we ship, and never noticed this.
I'll just commit my version with a forged sign-off from you ;-)
Quoted 6 lines · Junio C Hamano
Quoted 4 lines · R. Tyler Ballance
Quoted 3 lines
I would have expected that the patch would look more like this:
...
What am I missing?
Quoted 8 lines
Quoted 2 lines
No, that looks right, I didn't notice the specialized section towards the bottom for FreeBSD or the others for that matter.
Thanks. I usually use a "make" wrapper to handle platform particulars like setting
PYTHON_PATHautomatically outside of the build system we ship, and never noticed this.I'll just commit my version with a forged sign-off from you ;-)
I find these terms acceptable :)
Cheers,
-R. Tyler Ballance
--------------------------------------
Jabber: [email protected]
GitHub: http://github.com/rtyler
Twitter: http://twitter.com/agentdero
Blog: http://unethicalblogger.com