The following patch addresses the naming convention for Tcl libraries on FreeBSD, which is dotless.

Index: src/th_tcl.c
==================================================================
--- src/th_tcl.c
+++ src/th_tcl.c
@@ -131,10 +131,17 @@
#        define TCL_LIBRARY_NAME "libtcl8.6.dylib\0"
#      endif
#      ifndef TCL_MINOR_OFFSET
#        define TCL_MINOR_OFFSET (8)
#      endif
+#    elif defined(__FreeBSD__)
+#      ifndef TCL_LIBRARY_NAME
+#        define TCL_LIBRARY_NAME "libtcl86.so\0"
+#      endif
+#      ifndef TCL_MINOR_OFFSET
+#        define TCL_MINOR_OFFSET (7)
+#      endif
#    else
#      ifndef TCL_LIBRARY_NAME
#        define TCL_LIBRARY_NAME "libtcl8.6.so\0"
#      endif
#      ifndef TCL_MINOR_OFFSET

This fixes the following problem in "fossil version -v".

Without patch:

TCL (Tcl 8.6.8, loaded TH_ERROR: could not load any supported Tcl 8.6, 8.5, or 8.4 shared library "libtcl8.x.so")

With patch:

TCL (Tcl 8.6.8, loaded TH_OK: 8.6.8)

Thanks,

--
Pietro Cerutti

Attachment: signature.asc
Description: PGP signature

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to