Bug 260970 - lang/tcl86 missing libtcl86.so.1 and libtclstub86.a
Summary: lang/tcl86 missing libtcl86.so.1 and libtclstub86.a
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-tcltk (Nobody)
Depends on:
Reported: 2022-01-06 07:54 UTC by David Armstrong
Modified: 2022-01-07 03:26 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (tcltk)


Note You need to log in before you can comment on or make changes to this bug.
Description David Armstrong 2022-01-06 07:54:42 UTC
Updating, or building throws:

pkg-static: Unable to access file /usr/ports/lang/tcl86/work/stage/usr/local/lib/libtcl86.so.1:No such file or directory
pkg-static: Unable to access file /usr/ports/lang/tcl86/work/stage/usr/local/lib/libtclstub86.a:No such file or directory
*** Error code 1

Those files are confirmed missing.  Contents of /usr/ports/lang/tcl86/work/stage/usr/local/lib/ is :

drwxr-xr-x  3 root  wheel     3B Jan  7 04:14 X11
drwxr-xr-x  2 root  wheel     2B Jan  7 04:14 debug
-r-xr-xr-x  1 root  wheel   1.7M Jan  7 04:14 libtcl8.6.so
-r-xr-xr-x  1 root  wheel   3.2M Jan  7 04:14 libtcl86.a
lrwxr-xr-x  1 root  wheel    12B Jan  7 04:14 libtcl86.so -> libtcl8.6.so
-rwxr-xr-x  1 root  wheel   8.4K Jan  7 04:14 libtclstub8.6.a
drwxr-xr-x  8 root  wheel    25B Jan  7 04:14 tcl8.6

Creating symlinks for the missing files allowed port to build:
ln -s libtcl86.so libtcl86.so.1
ln -s libtclstub8.6.a libtclstub86.a

However, not without errors and not without resulting problems building other ports depending on it (eg: databases/sqlite3).
Comment 1 Pietro Cerutti freebsd_committer 2022-01-06 11:55:22 UTC
I'm not sure how you could end up in that situation. The port looks fine to me, it passes "port test", and binary packages are being built. What commit of the ports tree are you on? Are you building from a clean directory (make clean)?
Comment 2 Simeon Simeonov 2022-01-06 12:30:13 UTC
I experience the same problem.

My options:

===> The following configuration options are available for tcl86-8.6.12:
     DEBUG=off: Build with debugging support
     DTRACE=off: Build with DTrace probes
     TCLMAN=off: Install Tcl function manpages
     THREADS=off: Threading support
     TZDATA=off: Install Tcl timezone data
Comment 3 Pietro Cerutti freebsd_committer 2022-01-06 13:03:37 UTC
Thanks, I could reproduce the issue with that set of options. Investigating now.
Comment 4 commit-hook freebsd_committer 2022-01-06 13:15:05 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=552140e98ee4fad6376883482f47cbd6c7c6a05d

commit 552140e98ee4fad6376883482f47cbd6c7c6a05d
Author:     Pietro Cerutti <gahr@FreeBSD.org>
AuthorDate: 2022-01-06 13:10:55 +0000
Commit:     Pietro Cerutti <gahr@FreeBSD.org>
CommitDate: 2022-01-06 13:13:58 +0000

    lang/tcl86: fix build with non-default options (THREADS off)

    The additional lines in the patch to unix/configure were erroneously
    placed inside an if block that was guarded by the enablement of the
    THREADS option.

    PR:             260970
    Reported by:    David Armstrong <bink19th@pm.me>

 lang/tcl86/files/patch-unix-configure | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)
Comment 5 Pietro Cerutti freebsd_committer 2022-01-06 13:15:33 UTC
Fixed. Please update your ports tree and try again. Thanks!
Comment 6 David Armstrong 2022-01-07 03:26:42 UTC
Success!  Thank you Pietro.