Bypass test-for-tk.tcl?

[email protected] (Christopher Chavez) Mon, 30 Jul 2018 07:14:15 -0500
Newsgroups perl.tcltk
Message-ID <[email protected]>
--Apple-Mail=_D298FBE5-26E7-4F08-8035-FC9F5122B9AA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

For the MacPorts portfiles I made for both Tcl::Tk and Tcl::pTk, I =
currently use a patch to remove the `$tclsh test-for-tk.tcl` usage from =
Makefile.PL, since it doesn't work from MacPorts (either there is no X =
server available to the user that MacPorts runs as, or perl somehow =
isn=E2=80=99t getting any output from tclsh): cf. =
https://github.com/macports/macports-ports/pull/2036/files#diff-e284154b6d=
6ebcccb1e2d72b7d3d318f =
<https://github.com/macports/macports-ports/pull/2036/files#diff-e284154b6=
d6ebcccb1e2d72b7d3d318f> =
https://github.com/macports/macports-ports/pull/2231/files#diff-95d5f69547=
8328ce2638066699edf49b =
<https://github.com/macports/macports-ports/pull/2231/files#diff-95d5f6954=
78328ce2638066699edf49b> https://trac.macports.org/ticket/56825 =
<https://trac.macports.org/ticket/56825>

Would it be appropriate to add a flag for Makefile.PL to skip running =
test-for-tk, for uses such as MacPorts where (hopefully) any =
dependencies are already installed correctly. Then, all that=E2=80=99s =
needed by the portfiles are the flag, rather than a patch (which has to =
stay current with test-for-tk is being run).

Or, some better alternative I haven=E2=80=99t thought of?=

--Apple-Mail=_D298FBE5-26E7-4F08-8035-FC9F5122B9AA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">For =
the MacPorts portfiles I made for both Tcl::Tk and Tcl::pTk, I currently =
use a patch to remove the `$tclsh test-for-tk.tcl` usage from =
Makefile.PL, since it doesn't work from MacPorts (either there is no X =
server available to the user that MacPorts runs as, or perl somehow =
isn=E2=80=99t getting any output from tclsh): cf.&nbsp;<a =
href=3D"https://github.com/macports/macports-ports/pull/2036/files#diff-e2=
84154b6d6ebcccb1e2d72b7d3d318f" =
class=3D"">https://github.com/macports/macports-ports/pull/2036/files#diff=
-e284154b6d6ebcccb1e2d72b7d3d318f</a>&nbsp;<a =
href=3D"https://github.com/macports/macports-ports/pull/2231/files#diff-95=
d5f695478328ce2638066699edf49b" =
class=3D"">https://github.com/macports/macports-ports/pull/2231/files#diff=
-95d5f695478328ce2638066699edf49b</a>&nbsp;<a =
href=3D"https://trac.macports.org/ticket/56825" =
class=3D"">https://trac.macports.org/ticket/56825</a><div class=3D""><br =
class=3D""></div><div class=3D"">Would it be appropriate to add a flag =
for Makefile.PL to skip running test-for-tk, for uses such as MacPorts =
where (hopefully) any dependencies are already installed correctly. =
Then, all that=E2=80=99s needed by the portfiles are the flag, rather =
than a patch (which has to stay current with test-for-tk is being =
run).</div><div class=3D""><br class=3D""></div><div class=3D"">Or, some =
better alternative I haven=E2=80=99t thought of?</div></body></html>=

--Apple-Mail=_D298FBE5-26E7-4F08-8035-FC9F5122B9AA--