[tor-bugs] #17631 [Chutney]: chutney fails on systems with python2, but no python
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Jan 30 19:39:43 UTC 2016
#17631: chutney fails on systems with python2, but no python
---------------------+--------------------------------
Reporter: teor | Owner: nickm
Type: defect | Status: needs_revision
Priority: Medium | Milestone:
Component: Chutney | Version:
Severity: Normal | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Sponsor: |
---------------------+--------------------------------
Comment (by cypherpunks):
I have looked into how Autoconf checks for programs in order to avoid the
possible issues with `command`.
Autoconf can check for programs through the
[http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/programs.m4?id=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535#n96
AC_CHECK_PROG] function (which is implemented in
[http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/programs.m4?id=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535#n36
_AC_CHECK_PROG]) which uses
[http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/m4sugar/m4sh.m4?id=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535#n1285
_AS_PATH_WALK] for walking through `PATH` and
[http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/m4sugar/m4sh.m4?id=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535#n1053
AS_EXECUTABLE_P] (which is implemented in
[http://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/m4sugar/m4sh.m4?id=5ad3567c3cbd90b4faa6539c35bc4a8c6500f535#n1342
_AS_TEST_PREPARE]) for checking if the file is an executable regular file.
As these functions do not use `command` i believe this may be the solution
for checking for Python versions in a portable fashion. If you agree i
will change the Python detection to use this solution.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/17631#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list