[Bug 261367] databases/sqlite3 when TCL is enabled and multiple versions are installed, configure may pick wrong one

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 20 Jan 2022 19:44:26 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261367

            Bug ID: 261367
           Summary: databases/sqlite3 when TCL is enabled and multiple
                    versions are installed, configure may pick wrong one
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: easy, patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mi@FreeBSD.org
                CC: pavelivolkov@gmail.com
                CC: pavelivolkov@gmail.com
             Flags: maintainer-feedback?(pavelivolkov@gmail.com)

Created attachment 231192
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=231192&action=edit
Explicitly set TCL-related paths for configure

When the TCL option is enabled, and both TCL-8.6 and 8.7 are installed,
configure script will prefer 8.7, which may be contrary to the DEFAULT_VERSIONS
settings.

As a result, the build will use 8.7, but the packaging will fail because
TCL_VER will be 8.6.

The attached patch solves this problem.

However, because it involves explicitly setting an autoconf "cache" variable,
the issue may need to be brought up upstream -- the configure script ought to
either accept the desired TCL-interpreter on command-line OR correctly deduce
it from the specified TCL configuration directory.

-- 
You are receiving this mail because:
You are the assignee for the bug.