From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iHJENFtAmmJfFAEAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 19:09:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GAg9NFtAmmKCVwEA9RJhRA (envelope-from ) for ; Fri, 03 Jun 2022 19:09:47 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A365C9B96 for ; Fri, 3 Jun 2022 19:09:42 +0200 (CEST) Received: from localhost ([::1]:56438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxAnt-0002w1-Qu for larch@yhetil.org; Fri, 03 Jun 2022 13:09:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59444) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxAnS-0002Mj-O5 for guix-devel@gnu.org; Fri, 03 Jun 2022 13:09:14 -0400 Received: from baptiste.telenet-ops.be ([2a02:1800:120:4::f00:13]:35912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nxAnQ-0008B7-DO for guix-devel@gnu.org; Fri, 03 Jun 2022 13:09:14 -0400 Received: from [172.20.10.5] ([188.188.145.137]) by baptiste.telenet-ops.be with bizsmtp id eh97270052y5KLU01h97PG; Fri, 03 Jun 2022 19:09:08 +0200 Message-ID: <2c194c3b2f192ba49caaf585703f95b6c6bcb7d9.camel@telenet.be> Subject: Re: Move switch-symlinks to (guix build utils) From: Maxime Devos To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Cc: Arun Isaac , Guix Devel Date: Fri, 03 Jun 2022 19:09:02 +0200 In-Reply-To: <8735glk8gs.fsf@gnu.org> References: <87pmjsdeh7.fsf@systemreboot.net> <72a63d9badd632af81adb75b66cd95d9c05bc31a.camel@telenet.be> <87ee07cdfn.fsf@systemreboot.net> <8735glk8gs.fsf@gnu.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-gyghjGNfLnqqB0xxbaXF" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1654276148; bh=3pmKPkobuq3DVTWveQ6DcMvzSO+xEGfLpHLp0O8PHFY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Jl6a8ZBBypUxVDxIBn37Fu6DGrPpoRdpVvCwT6YKVxeGd7oaSY1OJGTHviPe7SoTa afY2rq572np3uRwNTuVIkTEuliAFJPv68NFq1aITOiQCX75eq3ctxym8owohOfyOIU WEigmf0I/5HYD4ytoguJCihJEY2k0K42daIKpLz9FpZQLSPpD9IINy2XhzPlskxQOy Cb7VH07ylzP8FZKZLHa9jLWLJ3RTyxGD+U81mh0AZgeNTk9CLWXx3kqazPA0wWr7az Hz5xVicwavciskm9ahPJcfThjgnJbuTGKvJ6Da3qPIXGX5Lf3QsPhLQDmPk6YeNR0W FNWA4v41dKQFA== Received-SPF: pass client-ip=2a02:1800:120:4::f00:13; envelope-from=maximedevos@telenet.be; helo=baptiste.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654276182; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3pmKPkobuq3DVTWveQ6DcMvzSO+xEGfLpHLp0O8PHFY=; b=HEf9JWWa3ZGxKK5zBmxLZKgAizzxbjAtbwIr6uDAGnzA/GAjrppjYITDeS5vBwO38P6RlD 4/P91OikCoGHf3RO4ix09e/YjRyfU2350MmDlyGV38TEa2lRn2MEpEUsWPaAMy+Cr2F5Kk usIYcOBhuWETxbPmja4+gCjn3sEZ3/eMosVlyt7oFpga+uNuiSMuZ52H0SROxGotB9b816 fjKK6UVtjFE3Zo0n/oMXvsrLH5kDr7PcZc/7BJ0XuoF5CIjVmLVImTnXAnQddtZbkUBId5 1cCUYV+NGWgVjDBOZTl35qGxLQ+Dd6vLIjUWw6E7MsOZIJ5L44Ya+5Kbalubgw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654276182; a=rsa-sha256; cv=none; b=np0LC9PFYr0uJyFCYYQVN5OzbfOxluM0FukgDRe1RUB71N1KKLeOFrA9ey80ucEuLtlRIE L4FsiMjBrMU1Mi3+AFkh4ZDUL5CQ2JuZOUr5noQhpN3I2uPZn4t4KteRJjxNYm6FPTot0C GIRhyLKYybta5F5Rl7uDNDeUMPT9NjJtdjaU2m4i2H6rDFEIwaZzYERjM78fJFX2arApvz V5+hWjAaVVOKYzfcxIeaq2th9hEFGRZyN3iP9D1Br7ClHJ11BkQNlUlbj/DXNpcBEPkp0W AV9VKBW6uytfH7e0tWX360wyeVS4qCKV6Qa564xxJ1YastVvwVovSk9bvdOG4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=Jl6a8ZBB; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.72 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=telenet.be header.s=r22 header.b=Jl6a8ZBB; dmarc=pass (policy=none) header.from=telenet.be; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A365C9B96 X-Spam-Score: -4.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: kssTAhjFmEkc --=-gyghjGNfLnqqB0xxbaXF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s schreef op vr 03-06-2022 om 18:38 [+0200]: > That=E2=80=99s EACCES? It's EEXIST. > > If we move it to (guix build utils), I'd prefer the bug to be addressed= first. >=20 > Yes, better be cautious before =E2=80=9Csetting it in stone=E2=80=9D.=C2= =A0 Do you have a fix > in mind? Maybe replace (symlink target pivot) by (symlink/remove-old target pivot) where (define (symlink/remove-old target link) "Make a symbolic link named LINK pointing to TARGET. If LINK already exists, it will be removed first. This is not an atomic operation." (catch 'system-error (lambda () (symlink target link)) (lambda stuff (if (=3D (system-error-errno stuff) EEXIST) (begin ;; remove old link and retry (delete-file link) (symlink/remove-old link target)) (apply throw stuff))))) ? Greetings, Maxime. --=-gyghjGNfLnqqB0xxbaXF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYppALhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7neaAP99OjE7QIHMmY+NTDO4YpQuAZuC Mk9zjmZjDQppJ9onOQD8Cim5BMtwlJ8XCydzqZcHnQfVsEH74yXXnbUYT3x38gs= =EURt -----END PGP SIGNATURE----- --=-gyghjGNfLnqqB0xxbaXF--