From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yhguDpNC0Gn9OgYAWB0awg (envelope-from ) for ; Fri, 03 Apr 2026 18:43:31 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=monnerat.net header.i=@monnerat.net header.a=rsa-sha256 header.s=mnet header.b=xbURVsVt; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2ADCC1E0BC; Fri, 03 Apr 2026 18:43:31 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E7FD91E08C for ; Fri, 03 Apr 2026 18:43:29 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id CB8784BA23DA for ; Fri, 3 Apr 2026 22:43:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB8784BA23DA Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=monnerat.net header.i=@monnerat.net header.a=rsa-sha256 header.s=mnet header.b=xbURVsVt Received: from jupiter.monnerat.net (jupiter.monnerat.net [46.226.111.226]) by sourceware.org (Postfix) with ESMTPS id EC76B4BA2E32 for ; Fri, 3 Apr 2026 22:43:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EC76B4BA2E32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=monnerat.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=monnerat.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EC76B4BA2E32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=46.226.111.226 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775256184; cv=none; b=boJ+EC6nJyoN9Quctl4OXxY4exM3bIJFbuD+uWEEYlhQMjUIqyM97DuE0jk19d+BshWZ6nnZZqk+vJ9z2B0HnnVvk9xRnEwr+J9RqhsUShIst8lOAcKhNJDcZ2fiand4YU+73gKPJ0Yg6zrsPsqb5q/rOEyh4Y6TXc0ScI9DJTE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775256184; c=relaxed/simple; bh=oD4s2pIk/YIAWK31vz0ZP6b4veulIkwKwOuFrAokpek=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=a2XJc1rHC2R+qxDyA2ZYA/FhE8803jrI6MLTb/cH7YukGgNKJvGnkQoScU2sg8wRdy1D3q1s4MuRx0NJmFf2DLX2ywzfw2c5fGV/y/sYqFZWQj+ECKl24FFYiwnwTUnOTfa/yitUHGdQaQLoYUR65QmrXZx2XWldEk5inSUw6TQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EC76B4BA2E32 Received: from [192.168.0.128] ([192.168.0.128]) by jupiter.monnerat.net (8.14.8/8.14.8) with ESMTP id 633MguO5023138 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=OK); Sat, 4 Apr 2026 00:43:02 +0200 DKIM-Filter: OpenDKIM Filter v2.10.3 jupiter.monnerat.net 633MguO5023138 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=monnerat.net; s=mnet; t=1775256182; bh=oD4s2pIk/YIAWK31vz0ZP6b4veulIkwKwOuFrAokpek=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=xbURVsVtHH8Wie0mt+fAmhn7teH2tKAXaDMGMWIE/SXaWfHQroDWCCzUHzWs0e2fT 6u8iJAnbB4B31jYGz/84h9T+EsrGiKrQZmFicI68nhgsNn23/t0nH+LZdPb7Qm2AE2 p9mp9q2M2/EWwNJtZ/fM6poYZP4rXHfElN0OAsfg= Message-ID: <6d4a9b53-3942-40a1-884c-d9ad4e393a1a@monnerat.net> Date: Sat, 4 Apr 2026 00:42:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] Support MinGW & 64-bit libraries/paths in Tcl autoconf scripts To: Tom Tromey Cc: gdb-patches@sourceware.org References: <20260331151659.464416-2-patrick@monnerat.net> <874ilr4z0b.fsf@tromey.com> Content-Language: en-US From: Patrick Monnerat In-Reply-To: <874ilr4z0b.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 4/3/26 9:36 PM, Tom Tromey wrote: >>>>>> "Patrick" == Patrick Monnerat writes: > Patrick> Updated patch version fixes an m4 escape problem, normalizes spacing in > Patrick> config/tcl.m4 and also provides gdb/configure updated accordingly. > > Since this is Insight-specific I tend to think it's fine to do as you > like. > > Approved-By: Tom Tromey Many thanks for approval, Tom. In fact, I already commited it, thinking nobdy would react: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=095037e241aaeb8baa41842a75d8e5df73d2e51d > > Patrick> Debian implements directories /usr/lib32 and /usr/lib64, but installs > Patrick> tclConfig.sh and tkConfig.sh in /usr/lib. Therefore always search in > Patrick> /usr/lib when the others fail. > > Patrick> + # Check where 32-bit vs 64-bit libraries are stored > Patrick> + lib32="/usr/lib" > Patrick> + lib64="/usr/lib" > Patrick> + if test -d /usr/lib32 ; then > Patrick> + lib32="/usr/lib32" > Patrick> + fi > Patrick> + if test -d /usr/lib64 ; then > Patrick> + lib64="/usr/lib64" > Patrick> + fi > > Hard coding like this is a bit weird for configure IMO. > I wonder if this could use pkg-config instead. Agreed. But no, because the goal is to locate the file tclConfig.sh that is not supported by pkg-config and is stored in different locations among various distros. In addition, upstream Tcl still uses this method nowadays: https://core.tcl-lang.org/tcl/file?name=unix/tcl.m4&ci=tip and https://core.tcl-lang.org/tcl/file?name=win/tcl.m4&ci=tip. I prefer to use the current updated version because 1) tcl.m4 is not installed by the tcl(-devel) package and 2) I'm sure it still works with old tcl versions. gcc scm was the last file source (2015) for binutils-gdb but although still present there, it has been abandoned and forgotten, IMO.