From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 8ANBLzYIT2b8hAEAqHPOHw:P1 (envelope-from ) for ; Thu, 23 May 2024 11:11:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8ANBLzYIT2b8hAEAqHPOHw (envelope-from ) for ; Thu, 23 May 2024 11:11:18 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="qcL+So/8"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716455478; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=T/Q9NMYF5ITmeWZq8L2YND6qpiLTdNYTqkd7heBG4a8=; b=HWaYwzMSyy/OlqRacDz/HSpDqKA4cEFPXqqWNIvraO1FZoaDP8VVukq/ABH6te+GPLTHQT OiooNGHpfWwfKQROlEMSnKdhcgTtwUZgWCko/xNzZXLEicMXAPCVEaN69koR8saDvNXBki qkqEX7x6rxHuqPmTBcduSzvdO1R/FR72nP/lDQZ4pT6fTXQtSWujIXuIkr7riI/C9VfiJL xpt9DwBbjs0aCzciklVLaTAbeqQ/krbspSdg4aDfaMaZdQUMckDmPZ0qGIRF1bwQSKjAGv ob1rhp//XsF/V//1b1MLaWR7+MXBUUBeTUc+v+7QYV8vWZLqtj7JdUke0YrCjg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="qcL+So/8"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716455478; a=rsa-sha256; cv=none; b=AbodhFiy5Zk6GV8HwcFt3xBIS0Jv+9s8ZLzf0aOBF/thK7VTm47Sw1lbmBvGIa6Jn6r5WH aP7B2GhHdYEvn0+gvJhXGmdyC/8iWBtaHavciIh6kCC7bJ9OOeyRAwj/yoOVqk3rTrKTh6 gSJTDWaebbfm536EAbrCqQsormz+ZXIdehx3SUDj38PA3NlKtaeIQNcJjToC/JEvmV0Owf cMzvlLnKfR2mOEB0baRKCGu7zZg8iTd68bonj6RH4ePUstdo4DYx6ucZUBQ4IQd7LoglyP umjEtuVQwZ1kw9aioTIL9jzSClL0pWMQxT5pNvA588xaN96qz5XJped3vuK4Ww== 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 8A7F552BF6 for ; Thu, 23 May 2024 11:11:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA4TR-0007Ap-VD; Thu, 23 May 2024 05:10:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sA4TQ-0007AX-Ae for bug-guix@gnu.org; Thu, 23 May 2024 05:10:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sA4TP-0002g2-UC for bug-guix@gnu.org; Thu, 23 May 2024 05:10:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sA4TW-0000MV-4k for bug-guix@gnu.org; Thu, 23 May 2024 05:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#70165: D-Bus system service breaks reconfiguration when /var/run/dbus is present + /run and /var/run are on separate file systems. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 23 May 2024 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70165 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Liliana Marie Prikler Cc: Hilton Chain , Vivien Kraus , 70165@debbugs.gnu.org Received: via spool by 70165-submit@debbugs.gnu.org id=B70165.17164554371382 (code B ref 70165); Thu, 23 May 2024 09:11:02 +0000 Received: (at 70165) by debbugs.gnu.org; 23 May 2024 09:10:37 +0000 Received: from localhost ([127.0.0.1]:58758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA4T7-0000ME-5r for submit@debbugs.gnu.org; Thu, 23 May 2024 05:10:37 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA4T1-0000M0-Rq for 70165@debbugs.gnu.org; Thu, 23 May 2024 05:10:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sA4Sp-0002Rg-M9; Thu, 23 May 2024 05:10:19 -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=T/Q9NMYF5ITmeWZq8L2YND6qpiLTdNYTqkd7heBG4a8=; b=qcL+So/8A0PJLJqBW9Dq OXJiVz8zbh6pOnKv874xR8h+otBYzjns1dkYbJNhsu+oEhVRD8ktYRGz8nf3j8c3abzXodlTP4HZg dj70ljR+pKbMxDS41/WqZ2di3acvvFoDkHfsV7bBw+rvIiVdVkb9eukngxCSWiUieuZOrVQVUU0Op nZlXrJEqDp/yOQ7b+A/CbaaRJ16uywHRfFXLnZKmClocUiSlSblbcb+RDkFcP3eSf7ITlg1s3vzN0 7mVpvtT8EB3PE313OF44YU//bWwvDhYihmyvimnqjypkWdH1d6c5nWnKzvQ6c3TV67d1NLzZw5fby 44P2booc0zQA3w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <359765bed179300f3ed4da2b3d1bf8032bb8bc7d.camel@gmail.com> (Liliana Marie Prikler's message of "Sat, 06 Apr 2024 08:43:28 +0200") References: <87frw2mmix.wl-hako@ultrarare.space> <4420d6a7c4845c60cec8884066bf15b0d5b4c5fc.camel@gmail.com> <8734s0wp62.wl-hako@ultrarare.space> <359765bed179300f3ed4da2b3d1bf8032bb8bc7d.camel@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 Prairial an 232 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Canard 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: Thu, 23 May 2024 11:10:06 +0200 Message-ID: <87sey8c2s1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.76 X-Spam-Score: -5.76 X-Migadu-Queue-Id: 8A7F552BF6 X-Migadu-Scanner: mx13.migadu.com X-TUID: 1ZyUNBM0AdN6 Liliana Marie Prikler skribis: > Am Freitag, dem 05.04.2024 um 09:53 +0800 schrieb Hilton Chain: [...] >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0 (rename-f= ile "/tmp/tmp.9wyzRfQ28l/test" "/tmp/test") >>=20 >> ERROR: In procedure rename-file: >> In procedure rename-file: Invalid cross-device link >> --8<---------------cut here---------------end--------------->8--- > If I understand this reproducer correctly, there aren't even symbolic > links involved, are there? > > Adding Ludo to CC, because this looks like a Guile bug to me. =E2=80=98rename-file=E2=80=99 merely wraps rename(2), which errors out with= EXDEV (=E2=80=9CInvalid cross-link device=E2=80=9D) when the source and targets a= re on different file systems. So the case above is behaving as expected. What that means is that probably we shouldn=E2=80=99t be using =E2=80=98ren= ame-file=E2=80=99 directly in cases where the source and target might be on different file systems, and instead do something like: (define (rename-file* old new) ;; Like rename-file, but handle the case when OLD and NEW are on ;; different file systems. (catch 'system-error (lambda () (rename-file old new)) (lambda args (if (=3D EXDEV (system-error-errno args)) (begin (copy-file old new) (delete-file old)) (apply throw args))))) (Untested.) HTH! Ludo=E2=80=99.