Alessandro DE LAURENZIS writes:
> Hello Stuart,
>
> On 26/03/2019 11:59, Stuart Henderson wrote:
>
> [...]
> > I suspect you probably have a symlink for tclsh -> tclsh8.5. The following
> > is needed to let it build otherwise:
> >
> > --- Makefile.orig Tue Mar 26 10:57:14 2019
> > +++ Makefile Tue Mar 26 10:56:23 2019
> > @@ -32,6 +32,9 @@ CONFIGURE_ARGS = -DTCL_HEADER=${MODTCL_INCDIR}/tcl.h \
> >
> > NO_TEST = Yes
> >
> > +pre-configure:
> > + cd ${WRKSRC}/etc && ${MODTCL_WISH_ADJ} TclEncode.tcl SwigCleanup.tcl
> > +
> > post-install:
> > ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opensta
> > ${INSTALL_DATA} ${WRKSRC}/doc/OpenSTA.pdf ${PREFIX}/share/doc/opensta
> >
> > With that added, it's OK sthen@ to import.
> >
>
> You're right, I removed tclsh and wish links to avoid similar issues for
> the future. But while there, maybe it's worth noting that, being both
> TclEncode.tcl and SwigCleanup.tcl run during build, and since they
> launch wish, the following message is displayed:
>
> > Application initialization failed: no display name and no $DISPLAY environm
> ent variable
>
> I don't understand if anything is actually going wrong, since the
> compilation reach the end without problems...
>
> Meanwhile, upstream accepted our patch: patch-etc_SwigCleanup_tcl no
> needed anymore.
I've imported this with two changes. First, it needs the tk module
instead of tcl, and MODTK_BUILD_DEPENDS in BUILD_DEPENDS, because tk is
what contains wish. Second, I changed the version number from the date
to the version number in git log. Since this commit is later than the
latest version (2.0.11), but the new commit is worth keeping (corrected
license text), I gave it the number 2.0.11.20190327.
--
Anthony J. Bentley