From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 eBgyLp1hmmKR4wAAbAwnHQ (envelope-from ) for ; Fri, 03 Jun 2022 21:31:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AAX6LZ1hmmI1qAAAauVa8A (envelope-from ) for ; Fri, 03 Jun 2022 21:31:41 +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 90F0BE75F for ; Fri, 3 Jun 2022 21:31:36 +0200 (CEST) Received: from localhost ([::1]:48772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nxD1D-0004yf-QN for larch@yhetil.org; Fri, 03 Jun 2022 15:31:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxD0N-0004xI-Mg for guix-devel@gnu.org; Fri, 03 Jun 2022 15:30:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60386) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxD0N-0002XI-3n; Fri, 03 Jun 2022 15:30:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=60laRS5m9Ks1ssY3m1JYKWd4t6gnOzP9pAjXyjrJuaA=; b=GaRbQq9Nuv8wjg5Q2+4h 5uF20UTE2th1ZsmBldNHzDWMHyrThtjdleBX5sJic8Dfsr3rmbGUCmloJcEnbl0ZNWnmW9Iovz94A S9X+DDhAN28+o0Fj2hGnjpjbfimzjm/qWKK1jp2QNNujmxwLZNx8DHBLwnERN3ZFkzCjFREUBEA6p ZqwK0H9qy5kaylqoA6ajKloHQ6LiSbkNfcthqvlKHYzAK9wDBECaRZ+N0Bz1/ZbzBOFm3TMXz8yki p+avhZ7+vzVomj0ykacdOFI5ziVQow63UUMDMIbUrT8K8KmaSeNmSYZKChzHFlY4yBD2LdRBJIT34 ih/p9YXrmLFP9g==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:62180 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nxD0L-0002Ht-5g; Fri, 03 Jun 2022 15:30:42 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Cc: Arun Isaac , Guix Devel Subject: Re: Move switch-symlinks to (guix build utils) In-Reply-To: <2c194c3b2f192ba49caaf585703f95b6c6bcb7d9.camel@telenet.be> (Maxime Devos's message of "Fri, 03 Jun 2022 19:09:02 +0200") References: <87pmjsdeh7.fsf@systemreboot.net> <72a63d9badd632af81adb75b66cd95d9c05bc31a.camel@telenet.be> <87ee07cdfn.fsf@systemreboot.net> <8735glk8gs.fsf@gnu.org> <2c194c3b2f192ba49caaf585703f95b6c6bcb7d9.camel@telenet.be> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 15 Prairial an 230 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour de la Caille X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 03 Jun 2022 21:30:39 +0200 Message-ID: <87h751ily8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1654284696; 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: 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=60laRS5m9Ks1ssY3m1JYKWd4t6gnOzP9pAjXyjrJuaA=; b=fQ1ek17SDw1QrJmEGycfospZdeBcYS7QagrX/WpaoZS4B/8d79BaXrJOoiuQPIpWoM9cdF zRKTsGXloQ56cPaA7fDC/Xf9GUWLv/Mhna9fER5YKdjrVjudpJ+P4gGtjqJJBGm+5km3Rb SjWJKCn33Uyb9HYDG+zALawUA8UH6jMz59X5JSTvDdJcHzhBdRAl8N15zHlXawik5NEX4b G0Dt3/zU6kFp4aQzXoXS0rStmEuF8XWh1Sls38xNse5EtVLmlN3eK0qjufFs+XZFM55pWa XAMmlbrVrzA85KPGKaQD2lC7Xj/iBmoxC/owffZzgL0mgC1S6TK3gNtCNjFPWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654284696; a=rsa-sha256; cv=none; b=syhofQTesy1CGE12pHYxcEaunw7T+XJnl/pEkZw7fcqU3A8wSrniCX6AR0O8ykg5n1OLEN Na204RAKZthr7Q7nxxT/iy/mMvVn6ugQjoeXfVPJbGJo2Gr2zh3p2qOyZLG2AJlC/KlaQ0 aVxiWjVUv+394mZKq34A3hEa0OiLKTCxP5oa4v1eNX0bcmfmFlRDfnn60b9gaTEjIM78SC bJrinifj0jZhZ8Dl9rr6g2n6s0MSOCUhihqlFJkC0YRrKQSyQ7mUQglkfzhW5wsH4ESrPn iiqpsU9F/aF+/szjnpuKGFWcX7AZ/X1s7tMbq2aqrTeOJ57kcRV10Kbsh7waZQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=GaRbQq9N; dmarc=pass (policy=none) header.from=gnu.org; 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: -6.22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=GaRbQq9N; dmarc=pass (policy=none) header.from=gnu.org; 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: 90F0BE75F X-Spam-Score: -6.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6tvu5nt7pcjv Hi, Maxime Devos skribis: > 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))))) Alright, SGTM (this procedure would be kept private). So Arun, the floor is yours! :-) Ludo=E2=80=99.