pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Apr  6 05:37:48 UTC 2024

Modified Files:
        pkgsrc/lang/tcl: Makefile Makefile.version PLIST buildlink3.mk distinfo
        pkgsrc/x11/tk: Makefile Makefile.version distinfo
        pkgsrc/x11/tk/patches: patch-unix_Makefile.in patch-unix_configure
Added Files:
        pkgsrc/lang/tcl/patches: patch-pkgs_itcl4.2.4_configure
            patch-pkgs_sqlite3.44.2_Makefile.in
            patch-pkgs_sqlite3.44.2_configure patch-pkgs_tdbc1.1.7_configure
            patch-pkgs_tdbcmysql1.1.7_configure
            patch-pkgs_tdbcodbc1.1.7_configure
            patch-pkgs_tdbcpostgres1.1.7_configure
            patch-pkgs_thread2.8.9_configure
Removed Files:
        pkgsrc/lang/tcl/patches: patch-pkgs_itcl4.2.3_configure
            patch-pkgs_sqlite3.40.0_Makefile.in
            patch-pkgs_sqlite3.40.0_configure patch-pkgs_tdbc1.1.5_configure
            patch-pkgs_tdbcmysql1.1.5_configure
            patch-pkgs_tdbcodbc1.1.5_configure
            patch-pkgs_tdbcpostgres1.1.5_configure
            patch-pkgs_thread2.8.8_configure

Log Message:
tcl, tk: updated to 8.6.14

Summary of Changes since Tcl/Tk 8.6.13:
--------------------------------------

This is a patch release, so it primarily includes bug fixes and corrections
to erratic behavior.  Highlighted changes are noted below.  The changes file
at the root of the source tree contains a more complete list.  The Timelines
of all changes are online.

               http://core.tcl-lang.org/tcl/timeline
               http://core.tcl-lang.org/tk/timeline

   * [TIP 402] revise path normalization for x-platform UNC path support
        *** POTENTIAL INCOMPATIBILITY ***

   * Harmonize Tk's parse of numbers (screen distance, etc) with Tcl
        *** POTENTIAL INCOMPATIBILITY ***

   * Iconlist ignores options db for fg text color; affects dialogs
        *** POTENTIAL INCOMPATIBILITY ***

   * Aqua: XPutImage() swaps red and blue channels
        *** POTENTIAL INCOMPATIBILITY ***

   * [encoding convertfrom] handling of incomplete code sequences
        *** POTENTIAL INCOMPATIBILITY ***

   * Harmonize handling of ~ in paths across platforms.
        *** POTENTIAL INCOMPATIBILITY ***

   * Fix menu clone binding misbehavior, menu-20.1[2-6].
        *** POTENTIAL INCOMPATIBILITY ***

   * Improved performance of [exec] and [open |$cmd] on unix-lke
     systems, especially with large memory footprints.

   * Improve performance of large treeview destruction.

   * Improve performance of large image insertions into text.

   * Improve widget creation performance due to poor font caching.

   * Fix notebook tab appearances when placed on edge other than top.

   * Enable treeview display of partial final line.

   * Win: restore [exec %var%] that was dropped in 8.6.13.

   * Allow [chan create {} $cmd].  Enables simulation of server channels.

   * Allow return from [tk scaling] in safe interps.

   * Prevent navigation by word exposing clues to masked entry contents.

   * Fix crashes or hangs in...
      - [chan pop] with pending input
      - thread finalization of reflected channels
      - [label .l -bitmap floppy]
      - [set tcl_precision 15; expr 6.4623485355705287e-27]
      - [tk busy forget] and [tk busy hold]
      - channel read into "string" Tcl_Obj can BO, and perform poorly
      - KVO crash after destroying Aqua's first root toplevel
      - Test treeview-6ee162c3f9
      - Test tailcall-bug-784befb0ba
      - Tests menu-40.[12]

   * Repair memory leaks and errors
      - Eliminate undefined realloc() calls
      - Silence many warnings from -fsanitize=function
      - Flawed interfacing with XIM
      - Tcl_UtfToExternal writing to one-byte buffer
      - Tcl_UtfToUniChar() handling of 0xC1.
      - Tk_ConfigureValue could call wrong free() routine.
      - tests getuncichar-1.* in utf.test
      - ...and many more

   * No more support for 32-bit Cygwin

   * ::tcl_platform(osVersion) updated to report Windows 11

   * Accommodate macOS deprecation of sprintf()

   * Silence macOS 14 warnings about secure restorable state.

   * Code changes to support ASan use-after-return detection

   * Revise Tcl_MakeFileChannel() to better partner with pledge()

   * Prevent false [clock format] error reports on FreeBSD

   * Region clip & copy make better use of OS facilities.

   * Update handling of Apple FourCC creator codes.

   * Text selection omits first character, text-38.1

   * Windows: improved support of non-BMP pathnames

   * Fixed some Y2038 limitations

   * Fix photo color drawing on X11 32-bit visuals.

   * Fix <<MenuSelect>> regression on menus with -tearoff

   * Correct rounding of [nsFont pointSize].

   * zlib comment/filename error handling (zlib-8.19, zlib-8.2[012])

   * Prevent theme change attempts after Tk finalize.

   * Make dialogs robust against parent destruction.

   * Make [tk_chooseColor] robust against failed grab.

   * Fix menu parsing of @x,y indices.  menu-22.[6-9]

   * Fix inconsistent results from [font measure].

   * Fixed [clock scan|add] handling of abbreviated options

   * Avoid endless loops replacing [unknown] or [history].

   * Fix polluted error messages from [send -option].

   * PNG photo image decoder missed a 0xFF entry.

   * Fix failing winTime-2.1 on Windows

   * test string-2.20.1 failed on big endian platforms

   * Updated bundled packages, libraries, standards, data
      - Itcl 4.2.4
      - sqlite3 3.44.2
      - Thread 2.8.9
      - TDBC* 1.1.7
      - tcltest 2.5.7
      - libtommath 1.2.1
      - zlib 1.3.1
      - Unicode 15.1
      - tzdata 2024a


To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 pkgsrc/lang/tcl/Makefile
cvs rdiff -u -r1.29 -r1.30 pkgsrc/lang/tcl/Makefile.version
cvs rdiff -u -r1.31 -r1.32 pkgsrc/lang/tcl/PLIST
cvs rdiff -u -r1.34 -r1.35 pkgsrc/lang/tcl/buildlink3.mk
cvs rdiff -u -r1.84 -r1.85 pkgsrc/lang/tcl/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/lang/tcl/patches/patch-pkgs_itcl4.2.3_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.40.0_Makefile.in \
    pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.40.0_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbc1.1.5_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbcmysql1.1.5_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbcodbc1.1.5_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbcpostgres1.1.5_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_thread2.8.8_configure
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/tcl/patches/patch-pkgs_itcl4.2.4_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_Makefile.in \
    pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbc1.1.7_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbcmysql1.1.7_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbcodbc1.1.7_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_tdbcpostgres1.1.7_configure \
    pkgsrc/lang/tcl/patches/patch-pkgs_thread2.8.9_configure
cvs rdiff -u -r1.95 -r1.96 pkgsrc/x11/tk/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/x11/tk/Makefile.version
cvs rdiff -u -r1.60 -r1.61 pkgsrc/x11/tk/distinfo
cvs rdiff -u -r1.10 -r1.11 pkgsrc/x11/tk/patches/patch-unix_Makefile.in
cvs rdiff -u -r1.16 -r1.17 pkgsrc/x11/tk/patches/patch-unix_configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/tcl/Makefile
diff -u pkgsrc/lang/tcl/Makefile:1.124 pkgsrc/lang/tcl/Makefile:1.125
--- pkgsrc/lang/tcl/Makefile:1.124      Wed Nov  8 13:19:53 2023
+++ pkgsrc/lang/tcl/Makefile    Sat Apr  6 05:37:47 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.124 2023/11/08 13:19:53 wiz Exp $
+# $NetBSD: Makefile,v 1.125 2024/04/06 05:37:47 adam Exp $
 
 DISTNAME=      tcl${TCL_VERSION}-src
 PKGNAME=       tcl-${TCL_VERSION}
-PKGREVISION=   1
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tcl/}
 

Index: pkgsrc/lang/tcl/Makefile.version
diff -u pkgsrc/lang/tcl/Makefile.version:1.29 pkgsrc/lang/tcl/Makefile.version:1.30
--- pkgsrc/lang/tcl/Makefile.version:1.29       Mon Jun 26 15:51:55 2023
+++ pkgsrc/lang/tcl/Makefile.version    Sat Apr  6 05:37:47 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.version,v 1.29 2023/06/26 15:51:55 adam Exp $
+# $NetBSD: Makefile.version,v 1.30 2024/04/06 05:37:47 adam Exp $
 # used by cad/xcircuit/Makefile
 # used by devel/tcl-tclcl/Makefile
 # used by lang/tcl/Makefile
@@ -7,10 +7,10 @@
 
 TCL_SONUM=     86
 TCL_BASEVER=   8.6
-TCL_VERSION=   8.6.13
+TCL_VERSION=   8.6.14
 
 # Update bundled versions in lang/tcl/buildlink3.mk
-ITCL_VERSION=          4.2.3
-SQLITE3_VERSION=       3.40.0
-TDBC_VERSION=          1.1.5
-THREAD_VERSION=                2.8.8
+ITCL_VERSION=          4.2.4
+SQLITE3_VERSION=       3.44.2
+TDBC_VERSION=          1.1.7
+THREAD_VERSION=                2.8.9

Index: pkgsrc/lang/tcl/PLIST
diff -u pkgsrc/lang/tcl/PLIST:1.31 pkgsrc/lang/tcl/PLIST:1.32
--- pkgsrc/lang/tcl/PLIST:1.31  Mon Jun 26 15:51:55 2023
+++ pkgsrc/lang/tcl/PLIST       Sat Apr  6 05:37:47 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.31 2023/06/26 15:51:55 adam Exp $
+@comment $NetBSD: PLIST,v 1.32 2024/04/06 05:37:47 adam Exp $
 bin/sqlite3_analyzer
 bin/tclsh
 bin/tclsh${BASEVER}
@@ -293,7 +293,7 @@ lib/tcl8/${BASEVER}/tdbc/sqlite3-${TDBC_
 lib/tcl8/8.4/platform-1.0.19.tm
 lib/tcl8/8.4/platform/shell-1.1.4.tm
 lib/tcl8/8.5/msgcat-1.6.1.tm
-lib/tcl8/8.5/tcltest-2.5.5.tm
+lib/tcl8/8.5/tcltest-2.5.7.tm
 lib/tcl8/8.6/http-2.9.8.tm
 lib/tclConfig.sh
 lib/tclooConfig.sh

Index: pkgsrc/lang/tcl/buildlink3.mk
diff -u pkgsrc/lang/tcl/buildlink3.mk:1.34 pkgsrc/lang/tcl/buildlink3.mk:1.35
--- pkgsrc/lang/tcl/buildlink3.mk:1.34  Mon Jun 26 15:51:55 2023
+++ pkgsrc/lang/tcl/buildlink3.mk       Sat Apr  6 05:37:47 2024
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.34 2023/06/26 15:51:55 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.35 2024/04/06 05:37:47 adam Exp $
 
 BUILDLINK_TREE+=       tcl
 
@@ -22,8 +22,8 @@ _TOOLS_USE_PKGSRC.tclsh=      yes
 TCLCONFIG_SH?=         ${BUILDLINK_PREFIX.tcl}/lib/tclConfig.sh
 TCLSH=                 ${BUILDLINK_PREFIX.tcl}/bin/tclsh
 # Bundled library
-ITCL_VERSION=          4.2.3
-TDBC_VERSION=          1.1.5
+ITCL_VERSION=          4.2.4
+TDBC_VERSION=          1.1.7
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/dlopen.buildlink3.mk"

Index: pkgsrc/lang/tcl/distinfo
diff -u pkgsrc/lang/tcl/distinfo:1.84 pkgsrc/lang/tcl/distinfo:1.85
--- pkgsrc/lang/tcl/distinfo:1.84       Mon Jun 26 15:51:55 2023
+++ pkgsrc/lang/tcl/distinfo    Sat Apr  6 05:37:47 2024
@@ -1,19 +1,19 @@
-$NetBSD: distinfo,v 1.84 2023/06/26 15:51:55 adam Exp $
+$NetBSD: distinfo,v 1.85 2024/04/06 05:37:47 adam Exp $
 
-BLAKE2s (tcl8.6.13-src.tar.gz) = 7cba7a25e96277e42ae213d2bfb7cbd5e8d30cfdb269a70044652fd9e2ac581c
-SHA512 (tcl8.6.13-src.tar.gz) = b597f6b62fd71457e96445401a4f8aa662c2678de8a52127c60b0abddebf1fd4452ba5364420902a15b263c0118fc91167550fd1ad2d24fa4ab2204e372c027e
-Size (tcl8.6.13-src.tar.gz) = 10834396 bytes
+BLAKE2s (tcl8.6.14-src.tar.gz) = 2599a11ce3b2063fa6e6cc6af1d764576ac0e461ffe700bfba9d2b288e5543bd
+SHA512 (tcl8.6.14-src.tar.gz) = 706603faa94153fcea2e2b2c594fb9d9862ce1aa3a65b864f14ce0757ea97c4106f065d1696e35f8cacc577db3d82ef1e93385c71a2399416816c4e1582237b0
+Size (tcl8.6.14-src.tar.gz) = 11627322 bytes
 SHA1 (patch-generic_tclInt.h) = f41a50e6461d0afacd1c8656944403e438ea6baf
 SHA1 (patch-generic_tclPort.h) = 36ff05b22591d588952e55d0f13c2ef52e371d1e
 SHA1 (patch-generic_tclPosixStr.c) = 68da211865282fe7124cad71381658f8dfb986d6
-SHA1 (patch-pkgs_itcl4.2.3_configure) = 46a080a0b3cd42ec7faa67447a728815cfd35089
-SHA1 (patch-pkgs_sqlite3.40.0_Makefile.in) = f6ffdab9bb189a4a8b26c98cf03136144a579210
-SHA1 (patch-pkgs_sqlite3.40.0_configure) = efa3ba5628ebfeb4daa1ebc8b0313dcace929b0f
-SHA1 (patch-pkgs_tdbc1.1.5_configure) = b99d44d791556b4dfde18856b2a8f106229d7d34
-SHA1 (patch-pkgs_tdbcmysql1.1.5_configure) = 1ac475d2be147dfe051d7cc9941d1dccd86ff6d2
-SHA1 (patch-pkgs_tdbcodbc1.1.5_configure) = 7709ceb8b44757f47388775f4263725417538978
-SHA1 (patch-pkgs_tdbcpostgres1.1.5_configure) = 30cca28bfc8f8a3c1fb5f148b31f27752a042696
-SHA1 (patch-pkgs_thread2.8.8_configure) = 69e75953737c31913d1c342f106385c62d9878f3
+SHA1 (patch-pkgs_itcl4.2.4_configure) = 08dda22d03746914800b3802a08afacb2736dbd0
+SHA1 (patch-pkgs_sqlite3.44.2_Makefile.in) = 778de356cab55cac9ae60f8b9c7f64c7c609c907
+SHA1 (patch-pkgs_sqlite3.44.2_configure) = 7f1f1cd308d140bcf95077f8de0e3fda03a64bd0
+SHA1 (patch-pkgs_tdbc1.1.7_configure) = 3b5aeaf2d2c7011937f8b3b1bb6d9f79130c9fb0
+SHA1 (patch-pkgs_tdbcmysql1.1.7_configure) = d7a26e50ab5136bddaaba6aa4b251684ba4d2573
+SHA1 (patch-pkgs_tdbcodbc1.1.7_configure) = e76b3f8a5bcc2266a47ef0f642564e994dd1a123
+SHA1 (patch-pkgs_tdbcpostgres1.1.7_configure) = 5a4293958afbccaca232a49817c412f1a0b60da3
+SHA1 (patch-pkgs_thread2.8.9_configure) = 6241f0a220c84db5c4920d81d70d6e94dcf67a6a
 SHA1 (patch-tests_load.test) = 438695ab76e01646e49aadc01c44344a5495eabb
 SHA1 (patch-tests_pkgMkIndex.test) = 70d1042c1f4743052c5fa191fa7c4732a08e28a2
 SHA1 (patch-unix_Makefile.in) = e6ecbc7db3934ef4d7f0f24dd52c88ca0873289e

Index: pkgsrc/x11/tk/Makefile
diff -u pkgsrc/x11/tk/Makefile:1.95 pkgsrc/x11/tk/Makefile:1.96
--- pkgsrc/x11/tk/Makefile:1.95 Sun Nov 12 13:24:31 2023
+++ pkgsrc/x11/tk/Makefile      Sat Apr  6 05:37:48 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.95 2023/11/12 13:24:31 wiz Exp $
+# $NetBSD: Makefile,v 1.96 2024/04/06 05:37:48 adam Exp $
 
 DISTNAME=      tk${TK_VERSION}-src
 PKGNAME=       tk-${TK_VERSION}
-PKGREVISION=   1
 CATEGORIES=    x11 lang
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=tcl/}
 

Index: pkgsrc/x11/tk/Makefile.version
diff -u pkgsrc/x11/tk/Makefile.version:1.25 pkgsrc/x11/tk/Makefile.version:1.26
--- pkgsrc/x11/tk/Makefile.version:1.25 Mon Jun 26 15:53:25 2023
+++ pkgsrc/x11/tk/Makefile.version      Sat Apr  6 05:37:48 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.version,v 1.25 2023/06/26 15:53:25 adam Exp $
+# $NetBSD: Makefile.version,v 1.26 2024/04/06 05:37:48 adam Exp $
 # used by cad/xcircuit/Makefile
 # used by devel/tcl-tclcl/Makefile
 # used by lang/tcl/Makefile
@@ -7,4 +7,4 @@
 
 TK_SONUM=      86
 TK_BASEVER=    8.6
-TK_VERSION=    8.6.13
+TK_VERSION=    8.6.14

Index: pkgsrc/x11/tk/distinfo
diff -u pkgsrc/x11/tk/distinfo:1.60 pkgsrc/x11/tk/distinfo:1.61
--- pkgsrc/x11/tk/distinfo:1.60 Mon Jun 26 15:53:25 2023
+++ pkgsrc/x11/tk/distinfo      Sat Apr  6 05:37:48 2024
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.60 2023/06/26 15:53:25 adam Exp $
+$NetBSD: distinfo,v 1.61 2024/04/06 05:37:48 adam Exp $
 
-BLAKE2s (tk8.6.13-src.tar.gz) = d49336a4961ac9338042287c8e22fce96bfda59a28a2531d6d41b46185e14940
-SHA512 (tk8.6.13-src.tar.gz) = 719aa6776bfdc814f817919a265d3f9d847782c9f0a5fc5c2ab139beeba921e6fde8c66e7e836d78f86f53c98a7df0e587f0b2f4b08cc5ce12eecbb7f1ab71a5
-Size (tk8.6.13-src.tar.gz) = 4546848 bytes
-SHA1 (patch-unix_Makefile.in) = f97307d551827c845c60e5ed775811a24c21f859
-SHA1 (patch-unix_configure) = af73fbbcba79d237a8c5915a217aeb19a1675fdd
+BLAKE2s (tk8.6.14-src.tar.gz) = f1603cd361fbfe8fe5f12ea13d982c8f9ea7477aeddf7922c32f06afa0b58426
+SHA512 (tk8.6.14-src.tar.gz) = 756903dfa56cf77c7934bb3680c9bef6027f99196f4e6a2e823b85c342ca860cbb4b42154f576cc88f7f1265d28ce2d84ab5f52f848b16cca0cf9af4c770183f
+Size (tk8.6.14-src.tar.gz) = 4510695 bytes
+SHA1 (patch-unix_Makefile.in) = b73f1e2e0eab9e85469baeeddeb87ccd1e7cb4c4
+SHA1 (patch-unix_configure) = b1ad5e81988b28b44ccd916ed471f05e7a2ed85b

Index: pkgsrc/x11/tk/patches/patch-unix_Makefile.in
diff -u pkgsrc/x11/tk/patches/patch-unix_Makefile.in:1.10 pkgsrc/x11/tk/patches/patch-unix_Makefile.in:1.11
--- pkgsrc/x11/tk/patches/patch-unix_Makefile.in:1.10   Wed Jan 20 20:40:28 2021
+++ pkgsrc/x11/tk/patches/patch-unix_Makefile.in        Sat Apr  6 05:37:48 2024
@@ -1,10 +1,10 @@
-$NetBSD: patch-unix_Makefile.in,v 1.10 2021/01/20 20:40:28 adam Exp $
+$NetBSD: patch-unix_Makefile.in,v 1.11 2024/04/06 05:37:48 adam Exp $
 
 Support MirBSD.
 Honor LDFLAGS.
 Standardize file names.
 
---- unix/Makefile.in.orig      2020-12-31 01:55:50.000000000 +0000
+--- unix/Makefile.in.orig      2024-02-28 15:18:35.000000000 +0000
 +++ unix/Makefile.in
 @@ -14,6 +14,7 @@ MAJOR_VERSION                = @TK_MAJOR_VERSION@
  MINOR_VERSION         = @TK_MINOR_VERSION@
@@ -90,15 +90,15 @@ Standardize file names.
        @if test "x${LIB_FILE}" = "xlibtk${MAJOR_VERSION}.${MINOR_VERSION}.dll"; then \
            (cd ${TOP_DIR}/win; ${MAKE} tk${MAJOR_VERSION}${MINOR_VERSION}.dll); \
 @@ -715,7 +729,7 @@ install-strip:
-               INSTALL_PROGRAM="$(INSTALL_PROGRAM) ${INSTALL_STRIP_PROGRAM}" \
-               INSTALL_LIBRARY="$(INSTALL_LIBRARY) ${INSTALL_STRIP_LIBRARY}"
+               INSTALL_PROGRAM="STRIPPROG='${INSTALL_STRIP_PROGRAM}' $(INSTALL_PROGRAM) -s" \
+               INSTALL_LIBRARY="STRIPPROG='${INSTALL_STRIP_LIBRARY}' $(INSTALL_LIBRARY) -s"
  
 -install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE) ${WISH_EXE}
 +install-binaries: $(TK_STUB_LIB_FILE) $(TK_LIB_FILE) $(TK_LIB_A_FILE) ${WISH_EXE} ${TK_LIB_A_FILE}
        @for i in "$(LIB_INSTALL_DIR)" "$(BIN_INSTALL_DIR)" \
            "$(PKG_INSTALL_DIR)" "$(CONFIG_INSTALL_DIR)" ; \
            do \
-@@ -745,7 +759,13 @@ install-binaries: $(TK_STUB_LIB_FILE) $(
+@@ -745,13 +759,20 @@ install-binaries: $(TK_STUB_LIB_FILE) $(
            fi
        @echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
        @@INSTALL_LIB@
@@ -113,7 +113,6 @@ Standardize file names.
        @if test -f "tk${MAJOR_VERSION}${MINOR_VERSION}.dll"; then \
            $(INSTALL_LIBRARY) "tk${MAJOR_VERSION}${MINOR_VERSION}.dll" "$(DLL_INSTALL_DIR)";\
            chmod 555 "$(DLL_INSTALL_DIR)/tk${MAJOR_VERSION}${MINOR_VERSION}.dll";\
-@@ -754,6 +774,7 @@ install-binaries: $(TK_STUB_LIB_FILE) $(
        fi
        @echo "Installing ${WISH_EXE} as $(BIN_INSTALL_DIR)/wish$(VERSION)${EXE_SUFFIX}"
        @$(INSTALL_PROGRAM) ${WISH_EXE} "$(BIN_INSTALL_DIR)/wish$(VERSION)${EXE_SUFFIX}"
@@ -121,7 +120,7 @@ Standardize file names.
        @echo "Installing tkConfig.sh to $(CONFIG_INSTALL_DIR)/"
        @$(INSTALL_DATA) tkConfig.sh "$(CONFIG_INSTALL_DIR)/tkConfig.sh"
        @if test "$(STUB_LIB_FILE)" != "" ; then \
-@@ -861,7 +882,7 @@ install-doc:
+@@ -859,7 +880,7 @@ install-doc:
  install-headers:
        @if test "$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)" != ""; then \
            XLIB_INCLUDE_INSTALL_DIR="$(INCLUDE_INSTALL_DIR)"/X11; fi; \
@@ -130,7 +129,7 @@ Standardize file names.
            do \
            if [ -n "$$i" -a ! -d "$$i" ] ; then \
                echo "Making directory $$i"; \
-@@ -870,9 +891,12 @@ install-headers:
+@@ -868,9 +889,12 @@ install-headers:
                fi; \
            done;
        @echo "Installing header files to $(INCLUDE_INSTALL_DIR)/";

Index: pkgsrc/x11/tk/patches/patch-unix_configure
diff -u pkgsrc/x11/tk/patches/patch-unix_configure:1.16 pkgsrc/x11/tk/patches/patch-unix_configure:1.17
--- pkgsrc/x11/tk/patches/patch-unix_configure:1.16     Wed Jan 20 20:40:28 2021
+++ pkgsrc/x11/tk/patches/patch-unix_configure  Sat Apr  6 05:37:48 2024
@@ -1,12 +1,12 @@
-$NetBSD: patch-unix_configure,v 1.16 2021/01/20 20:40:28 adam Exp $
+$NetBSD: patch-unix_configure,v 1.17 2024/04/06 05:37:48 adam Exp $
 
 Support MirBSD.
 Honor LDFLAGS.
 Standardize file names.
 
---- unix/configure.orig        2020-12-31 01:55:50.000000000 +0000
+--- unix/configure.orig        2024-02-28 15:18:35.000000000 +0000
 +++ unix/configure
-@@ -4377,10 +4377,10 @@ fi
+@@ -4378,10 +4378,10 @@ fi
      # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load]
      # is disabled by the user. [Bug 1016796]
      LDFLAGS_ARCH=""
@@ -19,7 +19,7 @@ Standardize file names.
      CFLAGS_DEBUG=-g
      if test "$GCC" = yes; then
  
-@@ -5343,7 +5343,7 @@ fi
+@@ -5355,7 +5355,7 @@ fi
            CC_SEARCH_FLAGS=""
            LD_SEARCH_FLAGS=""
            ;;
@@ -28,7 +28,7 @@ Standardize file names.
            arch=`arch -s`
            case "$arch" in
            alpha|sparc64)
-@@ -5364,7 +5364,7 @@ fi
+@@ -5376,7 +5376,7 @@ fi
  
            LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
            SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
@@ -37,7 +37,7 @@ Standardize file names.
            CFLAGS_OPTIMIZE="-O2"
            if test "${TCL_THREADS}" = "1"; then
  
-@@ -5382,11 +5382,10 @@ fi
+@@ -5394,11 +5394,10 @@ fi
        NetBSD-*)
            # NetBSD has ELF and can use 'cc -shared' to build shared libs
            SHLIB_CFLAGS="-fPIC"
@@ -50,7 +50,7 @@ Standardize file names.
            if test $doRpath = yes; then
  
                CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"'
-@@ -6625,12 +6624,12 @@ fi
+@@ -6673,12 +6672,12 @@ fi
  
      if test "$SHARED_LIB_SUFFIX" = ""; then
  
@@ -65,7 +65,7 @@ Standardize file names.
  fi
  
      DLL_INSTALL_DIR="\$(LIB_INSTALL_DIR)"
-@@ -6646,8 +6645,11 @@ fi
+@@ -6694,8 +6693,11 @@ fi
  
  else
  
@@ -79,7 +79,7 @@ Standardize file names.
  fi
  
  
-@@ -6681,7 +6683,7 @@ else
+@@ -6729,7 +6731,7 @@ else
  
  fi
  
@@ -88,7 +88,7 @@ Standardize file names.
  
      # Define TCL_LIBS now that we know what DL_LIBS is.
      # The trick here is that we don't want to change the value of TCL_LIBS if
-@@ -9691,7 +9693,7 @@ echo $ECHO_N "checking for X11 libraries
+@@ -9820,7 +9822,7 @@ echo $ECHO_N "checking for X11 libraries
            if test -r $i/libX11.a -o -r $i/libX11.so -o -r $i/libX11.sl -o -r $i/libX11.dylib; then
                echo "$as_me:$LINENO: result: $i" >&5
  echo "${ECHO_T}$i" >&6
@@ -97,7 +97,7 @@ Standardize file names.
                x_libraries="$i"
                break
            fi
-@@ -9700,7 +9702,7 @@ echo "${ECHO_T}$i" >&6
+@@ -9829,7 +9831,7 @@ echo "${ECHO_T}$i" >&6
        if test "$x_libraries" = ""; then
            XLIBSW=-lX11
        else
@@ -106,7 +106,7 @@ Standardize file names.
        fi
      fi
      if test "$XLIBSW" = nope ; then
-@@ -9796,11 +9798,6 @@ fi
+@@ -9925,11 +9927,6 @@ fi
  #        be replaced by spaces.
  #--------------------------------------------------------------------
  
@@ -118,7 +118,7 @@ Standardize file names.
  if test "${TCL_LD_SEARCH_FLAGS}" = '-L${LIB_RUNTIME_DIR}'; then
      LIB_RUNTIME_DIR=`echo ${LIB_RUNTIME_DIR} |sed -e 's/:/ -L/g'`
  fi
-@@ -11042,14 +11039,10 @@ else
+@@ -11171,14 +11168,10 @@ else
        TK_LIB_FLAG="-ltk`echo ${TK_VERSION} | tr -d .`"
        TK_BUILD_LIB_SPEC="-L\$(TOP_DIR)/win ${TK_LIB_FLAG}"
      else
@@ -134,9 +134,9 @@ Standardize file names.
  fi
  
  #--------------------------------------------------------------------
-@@ -11061,11 +11054,7 @@ fi
+@@ -11190,11 +11183,7 @@ fi
  eval "TK_STUB_LIB_FILE=libtkstub${TK_UNSHARED_LIB_SUFFIX}"
- eval "TK_STUB_LIB_DIR=${libdir}"
+ eval "TK_STUB_LIB_DIR=\"${libdir}\""
  
 -if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
 -    TK_STUB_LIB_FLAG="-ltkstub${TK_VERSION}"
@@ -147,7 +147,7 @@ Standardize file names.
  
  TK_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TK_STUB_LIB_FLAG}"
  TK_STUB_LIB_SPEC="-L${TK_STUB_LIB_DIR} ${TK_STUB_LIB_FLAG}"
-@@ -11887,6 +11876,7 @@ s,@APP_RSRC_FILE@,$APP_RSRC_FILE,;t t
+@@ -12018,6 +12007,7 @@ s,@APP_RSRC_FILE@,$APP_RSRC_FILE,;t t
  s,@REZ@,$REZ,;t t
  s,@REZ_FLAGS@,$REZ_FLAGS,;t t
  s,@LTLIBOBJS@,$LTLIBOBJS,;t t

Added files:

Index: pkgsrc/lang/tcl/patches/patch-pkgs_itcl4.2.4_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_itcl4.2.4_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_itcl4.2.4_configure      Sat Apr  6 05:37:47 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_itcl4.2.4_configure,v 1.1 2024/04/06 05:37:47 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/itcl4.2.4/configure.orig      2023-12-20 17:04:40.000000000 +0000
++++ pkgs/itcl4.2.4/configure
+@@ -7444,20 +7444,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes
Index: pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_Makefile.in
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_Makefile.in:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_Makefile.in Sat Apr  6 05:37:47 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-pkgs_sqlite3.44.2_Makefile.in,v 1.1 2024/04/06 05:37:47 adam Exp $
+
+Fix building with system sqlite3.
+
+--- pkgs/sqlite3.44.2/Makefile.in.orig 2022-11-18 18:49:30.000000000 +0000
++++ pkgs/sqlite3.44.2/Makefile.in
+@@ -155,7 +155,7 @@ SHARED_BUILD       = @SHARED_BUILD@
+ INCLUDES      = @PKG_INCLUDES@ @TCL_INCLUDES@ -I. -I$(srcdir)/..
+ #INCLUDES     = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
+ 
+-PKG_CFLAGS    = @PKG_CFLAGS@ -DSQLITE_EXTERN=
++PKG_CFLAGS    = @PKG_CFLAGS@
+ 
+ # TCL_DEFS is not strictly need here, but if you remove it, then you
+ # must make sure that configure.ac checks for the necessary components
Index: pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_sqlite3.44.2_configure   Sat Apr  6 05:37:47 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_sqlite3.44.2_configure,v 1.1 2024/04/06 05:37:47 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/sqlite3.44.2/configure.orig   2023-11-28 11:02:09.000000000 +0000
++++ pkgs/sqlite3.44.2/configure
+@@ -7458,20 +7458,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes
Index: pkgsrc/lang/tcl/patches/patch-pkgs_tdbc1.1.7_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_tdbc1.1.7_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_tdbc1.1.7_configure      Sat Apr  6 05:37:47 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_tdbc1.1.7_configure,v 1.1 2024/04/06 05:37:47 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/tdbc1.1.7/configure.orig      2024-02-23 15:51:36.000000000 +0000
++++ pkgs/tdbc1.1.7/configure
+@@ -7765,20 +7765,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes
Index: pkgsrc/lang/tcl/patches/patch-pkgs_tdbcmysql1.1.7_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_tdbcmysql1.1.7_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_tdbcmysql1.1.7_configure Sat Apr  6 05:37:47 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_tdbcmysql1.1.7_configure,v 1.1 2024/04/06 05:37:47 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/tdbcmysql1.1.7/configure.orig 2024-02-09 15:49:31.000000000 +0000
++++ pkgs/tdbcmysql1.1.7/configure
+@@ -8131,20 +8131,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes
Index: pkgsrc/lang/tcl/patches/patch-pkgs_tdbcodbc1.1.7_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_tdbcodbc1.1.7_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_tdbcodbc1.1.7_configure  Sat Apr  6 05:37:48 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_tdbcodbc1.1.7_configure,v 1.1 2024/04/06 05:37:48 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/tdbcodbc1.1.7/configure.orig  2024-02-09 15:53:38.000000000 +0000
++++ pkgs/tdbcodbc1.1.7/configure
+@@ -8131,20 +8131,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes
Index: pkgsrc/lang/tcl/patches/patch-pkgs_tdbcpostgres1.1.7_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_tdbcpostgres1.1.7_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_tdbcpostgres1.1.7_configure      Sat Apr  6 05:37:48 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_tdbcpostgres1.1.7_configure,v 1.1 2024/04/06 05:37:48 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/tdbcpostgres1.1.7/configure.orig      2024-02-23 15:59:31.000000000 +0000
++++ pkgs/tdbcpostgres1.1.7/configure
+@@ -8131,20 +8131,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes
Index: pkgsrc/lang/tcl/patches/patch-pkgs_thread2.8.9_configure
diff -u /dev/null pkgsrc/lang/tcl/patches/patch-pkgs_thread2.8.9_configure:1.1
--- /dev/null   Sat Apr  6 05:37:48 2024
+++ pkgsrc/lang/tcl/patches/patch-pkgs_thread2.8.9_configure    Sat Apr  6 05:37:48 2024
@@ -0,0 +1,30 @@
+$NetBSD: patch-pkgs_thread2.8.9_configure,v 1.1 2024/04/06 05:37:48 adam Exp $
+
+Honor LDFLAGS on NetBSD.
+https://core.tcl.tk/tcl/tktview/fed5069f8a8e59e97af0a784b534919f5b789b1e
+
+--- pkgs/thread2.8.9/configure.orig    2024-02-07 18:27:29.000000000 +0000
++++ pkgs/thread2.8.9/configure
+@@ -7667,20 +7667,18 @@ then :
+ fi
+           LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS}
+           SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}'
+-          LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++          LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
+           CFLAGS_OPTIMIZE="-O2"
+           # On OpenBSD:       Compile with -pthread
+           #           Don't link with -lpthread
+           LIBS=`echo $LIBS | sed s/-lpthread//`
+           CFLAGS="$CFLAGS -pthread"
+           # OpenBSD doesn't do version numbers with dots.
+-          UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+-          TCL_LIB_VERSIONS_OK=nodots
+           ;;
+       NetBSD-*)
+           # NetBSD has ELF and can use 'cc -shared' to build shared libs
+           SHLIB_CFLAGS="-fPIC"
+-          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared'
++          SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared ${LDFLAGS_DEFAULT}'
+           SHLIB_SUFFIX=".so"
+           LDFLAGS="$LDFLAGS -export-dynamic"
+           if test $doRpath = yes



Home | Main Index | Thread Index | Old Index