I have a legacy in-house product which is having a lot of issues running with tcl/tk 8.6 the engineers responsible for the software asked if I can put in the supported tcl/tk 8.5 as a base for the time being. I used pkg(8) to manage the ports affected and have identified those that need to be recompiled,
I have built tcl85-8.5.17 tk85-8.5.17, which are also in the portsnap I am working with.
I now want to build expect from ports but the port trying to use libtcl86.so, to link against.
I would like the port to try and build against the libtcl85.so which is currently the installed base tcl/tk version. I have read the handbook and searched the web but could not find the place to override the required tcl/tk 8.6 version. Of course I can hack the makefile, but do not think that is a good practice in general. I also understand that there may be other issues during compile which could cause problems, I just would like to understand how to force the make to use tcl/tk8.5 as a requirement.
root@srvcmts2:/usr/ports/lang/tcl85 # pkg info -r tcl86-8.6.3
Code:
tcl86-8.6.3:
tk86-8.6.3
expect-5.45_1
mpexpr-1.1
root@srvcmts2:/usr/ports/lang/tcl85 # pkg info -r tk86-8.6.3
Code:
tk86-8.6.3:
blt-2.5.3_2
I have built tcl85-8.5.17 tk85-8.5.17, which are also in the portsnap I am working with.
I now want to build expect from ports but the port trying to use libtcl86.so, to link against.
Code:
root@srvcmts2:/usr/ports/lang/expect # make config
===> No options to configure
root@srvcmts2:/usr/ports/lang/expect # make
===> expect-5.45_1 depends on file: /usr/local/sbin/pkg - found
=> expect5.45.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://downloads.sourceforge.net/project/expect/Expect/5.45/expect5.45.tar.gz
expect5.45.tar.gz 100% of 614 kB 170 kBps 00m04s
===> Fetching all distfiles required by expect-5.45_1 for building
===> Extracting for expect-5.45_1
=> SHA256 Checksum OK for expect5.45.tar.gz.
===> Patching for expect-5.45_1
===> Applying FreeBSD patches for expect-5.45_1
===> expect-5.45_1 depends on shared library: libtcl86.so - not found
===> Verifying for libtcl86.so in /usr/ports/lang/tcl86