Opened 6 years ago

Closed 6 years ago

#11632 closed defect (fixed)

Search for "python2.7" in configure

Reported by: _x3j11 Owned by:
Priority: Medium Milestone: Tor: 0.2.5.x-final
Component: Core Tor/Tor Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


OpenBSD packages python2 as "python2.7", so the attached patch searches for that in configure AC_CHECK_PROGS.

Child Tickets

Attachments (2)

Change History (7)

comment:1 Changed 6 years ago by nickm

Does openbsd have no binary called "python", or does it have python3 installed as "python"?

comment:2 Changed 6 years ago by _x3j11

At the moment, from just examining the package:

tar tzvf python-3.3.2.tgz
-r-xr-xr-x root/bin       7768 2013-07-22 17:48 bin/python3.3
lrwxr-xr-x root/wheel        0 2013-07-22 17:49 bin/python3.3-config -> python3.3m-config
hr-xr-xr-x root/bin          0 2013-07-22 17:48 bin/python3.3m link to bin/python3.3
-r-xr-xr-x root/bin       1978 2013-07-22 17:49 bin/python3.3m-config

This suggests python3 is called "python3.3". Let me install the package later today and I'll give you a more definitive answer.

(Also, would you rather I do both in one commit?)

comment:3 Changed 6 years ago by nickm

Whatever you'd prefer wrt number of commits.

comment:4 Changed 6 years ago by _x3j11

I can confirm there is no bare python executable:

x:tor-20140428 {136} pkg_info | grep python
python-2.7.5        interpreted object-oriented programming language
python-3.3.2        interpreted object-oriented programming language
x:tor-20140428 {137} which python
python: Command not found.
x:tor-20140428 {138} which python2.7
x:tor-20140428 {139} which python3.3

I've updated the patch to look for python2.7 and python3.3.

comment:5 Changed 6 years ago by nickm

Resolution: fixed
Status: newclosed

Applied as 057a2f8285ab5acc53a56eaefe166fe61065d3e8; added a changes file in c0a73c8bf327e18b09b71cd77edcfac7fb9d3c69; thanks!

Note: See TracTickets for help on using tickets.