Opened 13 years ago

Closed 13 years ago

#32058 closed defect (fixed)

ipe-tools: python variants fail to select the correct python version

Reported by: dbevans (David B. Evans) Owned by: m.thon@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: ipe-tools

Description

As noted by ryandesign following the most recent commit, specifying a dependency on a particular flavor of python module is not sufficient to ensure that the corresponding python interpreter is invoked.

In this case, as is, the python script svgtoipe begins with the line

#!/usr/bin/env python

which may resolve to any installed MacPorts version or the system installed version depending on which is currently selected as the default.

The attached patch files propose to fix the problem by patching svgtoipe to use the specific path to the desired python version based on the variant selected.

In addition, a tentative fix for the currently broken livecheck function is included (based on my understanding of how the port's version number is determined -- please correct if I am wrong).

If you like, I can commit the patch based on your approval and/or modifications.

Attachments (2)

patch-ipe-tools.diff (2.7 KB) - added by dbevans (David B. Evans) 13 years ago.
Proposed patch for Portfile
patch-svgtoipe-python_path.diff (372 bytes) - added by dbevans (David B. Evans) 13 years ago.
Corresponding additional patchfile

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by dbevans (David B. Evans)

Attachment: patch-ipe-tools.diff added

Proposed patch for Portfile

Changed 13 years ago by dbevans (David B. Evans)

Corresponding additional patchfile

comment:1 Changed 13 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Committed in r87500, maintainer timeout.

Note: See TracTickets for help on using tickets.