From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id RYaJNwHL/WqCzRwAWB0awg (envelope-from ) for ; Wed, 18 Nov 2026 10:57:53 -0500 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nTD/sReG; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=2W9jqnfJ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nTD/sReG; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=2W9jqnfJ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id CB6CC1E0BC; Wed, 18 Nov 2026 10:57:53 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.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 autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 178A51E023 for ; Wed, 18 Nov 2026 10:57:53 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E2EA54BA2E0B for ; Wed, 18 Nov 2026 15:57:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2EA54BA2E0B Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nTD/sReG; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=2W9jqnfJ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nTD/sReG; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=2W9jqnfJ Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id A093C4BA5433 for ; Wed, 18 Nov 2026 15:57:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A093C4BA5433 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A093C4BA5433 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795017441; cv=none; b=W08V9CjB824BozwGqX0CTiHhiyd60pdXco3TWR8UiYg/gFji2C3D51L3wAFiW/ezcSv/kBdQC1uuc/Koy8cEgSypn4bysI4qnMHQzlfwh7Sz3gqgPXxKTUDMumvdToaYn6Wb8dBKe1wZNBNxvfxYQbueBJok/AEnzalSimiNaC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795017441; c=relaxed/simple; bh=GnJyqZdfktCeKxhZN3XeGsKjWOdlAibKve22UI6mnsM=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature: Message-ID:Date:MIME-Version:Subject:To:From; b=BA8XY+Yal0D5VFRvbqlIrQazCFuL8B5y/AwR+T9ysf3QJSawJJkJtNyIF1KK8pwH5pbdUOeSmAyMH0lmKLnY/XNpca6rBGxvrV5uUkMG5PQlNjrAcUUrcZ+BTkTkPvyoCjTIrt+lWousjgPusmTxT35B0rZccMDv+3UO+KysAN0= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nTD/sReG; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=2W9jqnfJ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=nTD/sReG; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=2W9jqnfJ DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A093C4BA5433 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 97366222AC; Wed, 18 Nov 2026 15:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1795017440; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tsbK7zFHZ8zscO1pIoWc3+RzICFaFWKIekqYVyLfoos=; b=nTD/sReGpKOhxWDyunhcfe6vKIt8PlWJPM4ysqr7e1qx8Qf6ukwvcCb5BiiSZODcgrJYx2 TXlfvQCqKtQtyWCvsYjD0uMN/C2ezIF7wYE6XUNDP8RFL2UoRriCvexlfV2U3ZbStovYo5 mJh4Lxq69D4TQMJRfK2rH2Rbnd7y02U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1795017440; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tsbK7zFHZ8zscO1pIoWc3+RzICFaFWKIekqYVyLfoos=; b=2W9jqnfJDe8pm7Is6fsv2bTKCyYEziXwjdFFeG9E9dSIYLWqBYpWQkNPX688x6nvOXpN16 sDXcakhsu729+PCg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1795017440; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tsbK7zFHZ8zscO1pIoWc3+RzICFaFWKIekqYVyLfoos=; b=nTD/sReGpKOhxWDyunhcfe6vKIt8PlWJPM4ysqr7e1qx8Qf6ukwvcCb5BiiSZODcgrJYx2 TXlfvQCqKtQtyWCvsYjD0uMN/C2ezIF7wYE6XUNDP8RFL2UoRriCvexlfV2U3ZbStovYo5 mJh4Lxq69D4TQMJRfK2rH2Rbnd7y02U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1795017440; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tsbK7zFHZ8zscO1pIoWc3+RzICFaFWKIekqYVyLfoos=; b=2W9jqnfJDe8pm7Is6fsv2bTKCyYEziXwjdFFeG9E9dSIYLWqBYpWQkNPX688x6nvOXpN16 sDXcakhsu729+PCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5F2FB1334C; Wed, 18 Nov 2026 15:57:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id InuEB+DK/WpuHQAAD6G6ig (envelope-from ); Wed, 18 Nov 2026 15:57:20 +0000 Message-ID: <036536dd-7ed8-49f5-9f1b-3d81e8f7a300@suse.de> Date: Wed, 18 Nov 2026 16:57:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [gdb/build] Use gnulib fnmatch To: Tom Tromey Cc: Thiago Jung Bauermann , gdb-patches@sourceware.org References: <20261109192655.32551-1-tdevries@suse.de> <87qzgpbr1i.fsf@linaro.org> <69e3799f-231e-4e51-a70a-aefd4429350e@suse.de> <87zevc38br.fsf@tromey.com> Content-Language: en-US From: Tom de Vries In-Reply-To: <87zevc38br.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-13.28 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-0.995]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:email,imap1.dmz-prg2.suse.org:helo] 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 11/13/26 7:16 PM, Tom Tromey wrote: >>>>>> "Tom" == Tom de Vries writes: > > Tom> That's a good question. I've looked into this a bit. I think this is > Tom> the solution we want eventually, but for that to happen we need to > Tom> update gcc to no longer use it (and start using gnulib), as well as > Tom> other components in our repo which use the libiberty version instead > Tom> of gnulib. So that's quite a project. > > Sharing gnulib would be very difficult, much worse even than you might > think :( > Hi Tom, thanks for weighing in here. > The main issue is that gdb is extremely sensitive to exactly which > gnulib modules are used. I don't recall the details any more, but there > are some modules that cannot be imported, and if they are, things break. > > Also, maybe worth noting that it's also very difficult to update gnulib. > I failed the last time I tried. > I've given updating a try. I've filed a PR ( https://sourceware.org/bugzilla/show_bug.cgi?id=35004 ) and submitted a series ( https://sourceware.org/git/?p=binutils-gdb.git;a=shortlog;h=refs/heads/users/vries/try-gnulib-stable-202607 , https://sourceware.org/pipermail/gdb-patches/2026-November/231948.html ). I took a slightly different approach by using a stable branch rather than importing from trunk. The thing I encountered that sounds most like the problem you describe above, is the pthread.h thing. > gnulib is painful enough that I've often thought we should remove it > again. > I've filed a PR to discuss the merits of libiberty vs gnulib vs both ( https://sourceware.org/bugzilla/show_bug.cgi?id=35017 ). > Though I have to say this current bug makes me second-guess my wish. I > mean, on the one hand this self-test is maybe invalid or non-portable; > but OTOH shouldn't fnmatch work more nicely than libiberty's, since it's > exposed to the user? > I think so. If we have it available, we should use it. Thanks, - Tom > But maybe another way to go, assuming gnulib removal is on the table, > would be to ensure that libiberty uses the macOS fnmatch and not the > replacement. > > Tom