From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id vwkaCQpxqmBsrwAAgWs5BA (envelope-from ) for ; Sun, 23 May 2021 17:13:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eAA4BApxqmAjGwAAbx9fmQ (envelope-from ) for ; Sun, 23 May 2021 15:13:14 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58397E215 for ; Sun, 23 May 2021 17:13:11 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 51C4F2AB03; Sun, 23 May 2021 11:13:07 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id B2E5C2AAF0 for ; Sun, 23 May 2021 11:13:04 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 1856A1B00193; Sun, 23 May 2021 18:13:00 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1621782780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=92XibzW7GdrvjVUg1Ez9/1DOsaWrO6B9WpnAyHa9Kbc=; b=ovW2RfdWTG89HxcQ4ZOpz71bVSSszxgubUXXSQevE6KO6dz0oVIk++ZTieduQJULNPUZfJ Q0MiUdNR/wv3dM3Zrh0cw5WWIOcqnH+FnWRDw4p/wQbMyXawLaVHyEeJLxR3bvkSfSZE86 VlGeI8B1+K2s1pf75UmUg/21UyrM4XYIk163CUiq4aNXeI3D6ZaShD5/ZQIoGYfTvZxsp4 DXF2e842dfurWvV/nNETY2qExpdj0bN8JUzT2e1N6nFw8kc0TUzzYKf+Ph/hXVake1KUVS 8YSQwC8iVScDWlnLpa5e/rqfvxYlmEHj0NQAALjuicZUzESC9fa8BGv3TNC4Ag== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] configure: $(CC) -o /dev/null when output not run In-Reply-To: <87v97bt298.fsf@tethera.net> References: <20210521210250.9290-1-tomi.ollila@iki.fi> <87v97bt298.fsf@tethera.net> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1621782780; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=92XibzW7GdrvjVUg1Ez9/1DOsaWrO6B9WpnAyHa9Kbc=; b=WFdn8w0Rdi7og2nvLDe42+jNOYN6rMz/9TmEwbv5YM5WdZFwfY2NHneIIRd2TikJFNzsnT Y58+SDclnWvayTU0EFxEWSIJta9oqvr0Nl1i4Hn5vxCF6mFMeBOd+DsHlILUfRjyuMF9Cl eFgfF7DxlmlRYac5iUvlGv0LTGmxc9Q7+OCU1RumNOE6Zw/Z3BARCXxalXVVpOqdh+YCy4 tbTNcaDxxL/JCw/JqCaqJrU9npt1xVYNXS2+mFshKAiIk8fRVjKQ+xEmrgy8jmhRpRTALR ypbJyXD27c5z8ffGlClizOB5ho0jNSVFuJRbCSyYfjhqmeGfS06wwIEqvyk0eA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1621782780; a=rsa-sha256; cv=none; b=VATRnGiStMNb02GyQL/p0RiOmIzQnfvzPNehUDOyI7UxLQagoMLziaKAv8DTcyUh/cbe/x /+JB+kq5od8qWs0XPKfUBMy/bSWqYJ+N9DyqlJ+o2ipOq3AEDymFLYja0C5AQwba5tHMGJ Ermy8TVmhFdegD+EXdRYkGpFVcY0G6ATwqxG4g20I+rL8X3ZLSLfig3wBahx3YUqYKCSRf t0ussPUDNX4vwL0MGY9HXr9jTUMzZii2D38fWv+Ma7tgj99Kz/XBCvIY34zDtQQubIiShx tHbE2uFTq2xY81IZlf5LrOZDzSotrRFavLXVcnkGnHFpovxE1jmZQBzY+SmtYw== Message-ID-Hash: ZDSRO4Z5PT474JEJZ43AVKKT4UIF5BYG X-Message-ID-Hash: ZDSRO4Z5PT474JEJZ43AVKKT4UIF5BYG X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621782791; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=t3maPd90E++qVtZp4Q7Q6RXiK/vURe/JC0RiPlYBzB4=; b=nnDHcgXmSe2gcWfMIbZkgvVin6+URQxs9i+L4aLJlhJTfXF/JQVAZwxnCtgzbvEKHaSs74 T+3UY98B2w71FG1ZfqfHrrUJaQG+BKIxxpkv76oW/yFDkQ8kAGGrjvHTBh00uPdsEwbnEo EQ8LilTqO+2DQMIG5d0ast+cdJBJHdxp2GedSOa0M1p+9H+1i2gVdWPU8vVEGMN1UtWtOp p8g708aU/uLdFi3T5MCVwAOeAO2+8QFwgLan676KdB8l6AvKZAOl3dGBPL99UYzx7pXrQ3 ZoiqC6CrbwekaoIt6GfZbawZu9ZJTII2vqru7bI88HiMXKyEYiDy7uqVj+WU4g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1621782791; a=rsa-sha256; cv=fail; b=KuozIshyW4qoeHRQlRKzYPHzufUtTL+IHA2NtkMOcE35/2a8fdQQQCNqtSnoF8kqBR6+Qs 5oHybCErwctkGobiLMSLP8Z5D0YjWom6MoDyUnKonBZ7Wa3AgZJT5ks8o9Be+2dDIsXrTJ g/fUFe9ZtEc5QlisJvHto/e5nChms+kqtlMCoKRiDJjYR/Bt2AThSAUm/hKpLUQNd20jtA bpVJ284t8insM8vN4DgZEQEqxP9IhQ1Iyic/9lb5ILV5ijvSII7hIwZ5/5dqLOy1cmCEoR XpwXQO6yevU4pWn9c8vsZlIdlJsd+0xi81WDRgkD2lbpDd4m+gK4/yvv4T08NA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=ovW2RfdW; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=ovW2RfdW; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 58397E215 X-Spam-Score: 1.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: qqo3b+5QhVSH On Sat, May 22 2021, David Bremner wrote: > Tomi Ollila writes: > >> When C compilation is used just to see whether compilation >> succeeds, there is no need to write any output file. >> >> Some compilations in configure already did this. >> >> Now also rm -f lines are used more consistently. >> >> While at it reformatted code that prints >> LIBNOTMUCH_{MAJOR,MINOR,MICRO}_VERSION). > > no objection in principle, but has anyone tried a compiler other than > gcc to make sure it doesn't puke when writing to /dev/null. Not sure > why it would, but... I gave it some thought and was sure there would be no such case... But now that I tested with 'zig cc' -- it apparently tries to remove the target file before recreating and fails with accessDenied if cannot (or, hopefully it just checks permissions, as removing /dev/null as root would be nasty...) Too bad, I had some plans that this change would have helped but... Tomi