[MacPorts] #56825: p5-tcl-tk: Your Tcl installation fails to find Tk package

MacPorts noreply at macports.org
Wed Jul 18 03:51:24 UTC 2018

#56825: p5-tcl-tk: Your Tcl installation fails to find Tk package
  Reporter:  ryandesign  |      Owner:  chrstphrchvz
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:
      Port:  p5-tcl-tk   |

Comment (by chrstphrchvz):

 I was actually expecting this error, because a similar one occurred when I
 was making the p5-tcl-ptk port. Somehow I was able to install p5-tcl-tk
 yesterday without error; now after uninstalling and cleaning, I get this

 I don't know what exactly is causing the error. There's a test in
 Makefile.PL that checks for Tcl/Tk and certain Tk extensions by tclsh with
 a script test-for-tk.tcl, but for some reason, Perl never gets any output
 from tclsh when run from MacPorts, whereas I can run Makefile.PL manually
 and it will work.

 The workaround I ended up using for p5-tcl-ptk was removing the test with
 a patch to Makefile.PL, and instead trusting MacPorts to properly install
 Tcl/Tk and tklib (cf. https://github.com/macports/macports-
 ports/pull/2036). I will probably apply the same workaround here if I
 can't figure out why there's no output from tclsh to Perl when MacPorts
 runs Makefile.PL.

Ticket URL: <https://trac.macports.org/ticket/56825#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list