From unknown Sun Aug 17 10:17:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#66339 <66339@debbugs.gnu.org> To: bug#66339 <66339@debbugs.gnu.org> Subject: Status: Gnome-team dbus socket in /var/run/dbus, not /run/dbus Reply-To: bug#66339 <66339@debbugs.gnu.org> Date: Sun, 17 Aug 2025 17:17:18 +0000 retitle 66339 Gnome-team dbus socket in /var/run/dbus, not /run/dbus reassign 66339 guix submitter 66339 Vivien Kraus severity 66339 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 08:52:23 2023 Received: (at submit) by debbugs.gnu.org; 4 Oct 2023 12:52:23 +0000 Received: from localhost ([127.0.0.1]:41794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo1MU-0005HW-AU for submit@debbugs.gnu.org; Wed, 04 Oct 2023 08:52:23 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qnzTn-0004wz-Li for submit@debbugs.gnu.org; Wed, 04 Oct 2023 06:51:48 -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 1qnzTQ-0005DG-8o for bug-guix@gnu.org; Wed, 04 Oct 2023 06:51:24 -0400 Received: from smtp-out.univ-reims.fr ([193.50.208.128]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qnzTM-0002px-Hp for bug-guix@gnu.org; Wed, 04 Oct 2023 06:51:23 -0400 Received: from smtps.univ-reims.fr (mail-front.univ-reims.fr [194.57.104.173]) by smtp-out.univ-reims.fr (Postfix) with ESMTP id 41146409E9 for ; Wed, 4 Oct 2023 12:51:12 +0200 (CEST) Received: from [IPv6:2001:861:5a82:40d0::2791:e99e] (unknown [IPv6:2001:861:5a82:40d0::2791:e99e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: krau0007@univ-reims.fr) by smtps.univ-reims.fr (Postfix) with ESMTPSA id 2926B3F9D9 for ; Wed, 4 Oct 2023 12:51:12 +0200 (CEST) Message-ID: <3121a39dc569ff872afe74a8871ef71456ea5451.camel@univ-reims.fr> Subject: Gnome-team dbus socket in /var/run/dbus, not /run/dbus From: Vivien Kraus To: bug-guix Date: Wed, 04 Oct 2023 12:51:11 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-3.00 Received-SPF: pass client-ip=193.50.208.128; envelope-from=vivien.kraus@univ-reims.fr; helo=smtp-out.univ-reims.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 04 Oct 2023 08:52:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Dear guix, The gnome-team branch starts the dbus service to provide a system session socket in /var/run/dbus, but the dbus client expects it in /run/dbus. This is the case for gdm and upowerd, and possibly many more. If I add (symlink "/var/run/dbus" "/run/dbus") in the script provided by dbus-activation (gnu/services/dbus.scm), then gdm starts, and I=E2=80=AFcan log in (with XFCE, GNOME still can=E2=80=99t = load) and verify upowerd works. I don=E2=80=99t think this is a good solution though. I think we need to di= g into how to bind the socket in /run/dbus, and check the dbus clients to make sure they all expect the socket in /run/dbus. Best regards, Vivien From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 12:55:37 2023 Received: (at 66339) by debbugs.gnu.org; 4 Oct 2023 16:55:37 +0000 Received: from localhost ([127.0.0.1]:45222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo59t-00062R-26 for submit@debbugs.gnu.org; Wed, 04 Oct 2023 12:55:37 -0400 Received: from planete-kraus.eu ([89.234.140.182]:40942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo59r-00062H-5b for 66339@debbugs.gnu.org; Wed, 04 Oct 2023 12:55:36 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 403de86c; Wed, 4 Oct 2023 16:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:from:date:subject:to:cc:mime-version; s=albinoniB; bh=NSWv7ChBaOeN1NYtTD4HoSzN3uQ=; b=lz8KxGNI52Pt46t5cckrdrVF2eON y7LjbKmuGAKlJjdOhdp+qZGl6Ygptu7H+XphHL0vB2z0W0vbCPPbGOBjqi+4JwFH RVo8rZvb+J6KjV6ndpigiTjRGVUnqQKJND78zUz4IPiLE1tE0Kll8Gdtolq8+4DW MGhHN0Mwqo69gZ+aN0F/SqUBXnbUHvxt5JFZBVgrOGYguFD2WmOLkKGsf53i6jEX Rz6Gi5XHJaBYPzBQrvZBAVLxMoX/t4veOg1S0u3ar4tbQhMs9CMlmpj9pwXhaLZX t+mn5434UHy8QdhwHua+kuA1oMRywG00C8vyEvpRg2nLj8iUa42QfIfapA== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 2e1f76ce (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Wed, 4 Oct 2023 16:55:15 +0000 (UTC) Message-ID: <91a5894be67c0ef0fc1478255ec86f0248344aa4.1696438388.git.vivien@planete-kraus.eu> From: Vivien Kraus Date: Wed, 4 Oct 2023 12:47:04 +0200 Subject: [WIP PATCH gnome-team] gnu: dbus-service: make the session available under /run/dbus To: 66339@debbugs.gnu.org MIME-Version: 1.0 User-Agent: Evolution 3.46.4 X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: * gnu/services/dbus.scm (dbus-activation): Symlink /var/run/dbus to /run/dbus. --- gnu/services/dbus.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 5a0c634393..80968ac1a4 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -187,6 +187,7 @@ (define (dbus-activation conf [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, liliana.prikler@gmail.com, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) * gnu/services/dbus.scm (dbus-activation): Symlink /var/run/dbus to /run/dbus. --- gnu/services/dbus.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 5a0c634393..80968ac1a4 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -187,6 +187,7 @@ (define (dbus-activation config) ;; This directory contains the daemon's socket so it must be ;; world-readable. (mkdir-p/perms "/var/run/dbus" user #o755)) + (symlink "/var/run/dbus" "/run/dbus") (unless (file-exists? "/etc/machine-id") (format #t "creating /etc/machine-id...~%") base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 14:31:53 2023 Received: (at 66339) by debbugs.gnu.org; 4 Oct 2023 18:31:53 +0000 Received: from localhost ([127.0.0.1]:45339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo6er-0005Qf-3n for submit@debbugs.gnu.org; Wed, 04 Oct 2023 14:31:53 -0400 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:48341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo6eY-0005QB-JU for 66339@debbugs.gnu.org; Wed, 04 Oct 2023 14:31:35 -0400 Received: by mail-ed1-x541.google.com with SMTP id 4fb4d7f45d1cf-533df112914so148576a12.0 for <66339@debbugs.gnu.org>; Wed, 04 Oct 2023 11:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696444259; x=1697049059; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=dG7E93y7dcamvruc6bkF2QYkU9suOigYMy4YFqgjekQ=; b=XDUyxguBEDZtIKTp6eXljd1U9/zfTx4IZZ9Pz6Y9D86KcUXiWgYhqmoBXNSO48qE5b MTS3212LIUgiNq8Cp4QxcjFYIdGbBNDOk1tVTZDTbM6rJecNIWqgQrXdUbgCIxzCfR5G nfl69XwX3YLxALAoaSh2usz4bIYOrKNN/CiE0rPDy+rt0cboL5h9NgkxTWeeEeX7upPx wB/zcPdznr/hVJb3li4FwiWKTaBKJe5ACRtn0f84pSOvXQypLKBpZdqnE9xNCkwDUlZ/ Ufp6SCjjNYuR5gBJMgWYt9LbxKDzoIllWCK1ocoXyF8xbOLMXwszASstS9/c3SPQsST5 7T3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696444259; x=1697049059; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dG7E93y7dcamvruc6bkF2QYkU9suOigYMy4YFqgjekQ=; b=rIcxQcO9xGWoM421uoPbBG/Ld41aE4VVdD3427QNx7pHnYveqmyh0fOhb4eukYl48m CUgt+dt/U5ekhYGu6AogM+rOV6ty2TtqtTm+LmZYSwngjVL+JaJuKnw2XNE+MnBnnjn0 1BAGVuOZLmZF0Ca+k4uH70d3Rap9cO9GTClHh5gLq62FPRuXSl1Y5OCBR9soAA9DReqy hEtwRgaHcFwnWZvmi/OdCtncqUvOuFGtblPHCgmVqvsOqOeZkIO6mCMk/nvYVtlPH8Au n2FwKjyW3k0v6oRH7ZhCfmd5+ubpeS1nlxlX/1ZpOxJRL0v1Rn4HKKrOSndLgXiADlUR GFzg== X-Gm-Message-State: AOJu0YwVdFyHEuSZPdvmrRAFcQxSmjzSUP8ZTqV7F+wikjccDC+nw25b 7PrYLgR93RXyMvyf7Jps/gE= X-Google-Smtp-Source: AGHT+IE3LahpEloRac+iCu5OL32WMj2Gl9maQqgXnX6bxhHAlX8rqFWnUyYsCyPo9TI3N/kQHLaEwg== X-Received: by 2002:a17:906:2254:b0:9b9:4509:d575 with SMTP id 20-20020a170906225400b009b94509d575mr1386050ejr.2.1696444258753; Wed, 04 Oct 2023 11:30:58 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id kj6-20020a170907764600b009ad88839665sm3205864ejc.70.2023.10.04.11.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:30:57 -0700 (PDT) Message-ID: <479a5d9dda7ac8bb26589f755e4caf3a820325a6.camel@gmail.com> Subject: Re: [WIP PATCH gnome-team] gnu: dbus-service: make the session available under /run/dbus From: Liliana Marie Prikler To: Vivien Kraus , 66339@debbugs.gnu.org Date: Wed, 04 Oct 2023 20:30:56 +0200 In-Reply-To: <91a5894be67c0ef0fc1478255ec86f0248344aa4.1696438388.git.vivien@planete-kraus.eu> References: <91a5894be67c0ef0fc1478255ec86f0248344aa4.1696438388.git.vivien@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Mittwoch, dem 04.10.2023 um 12:47 +0200 schrieb Vivien Kraus: > * gnu/services/dbus.scm (dbus-activation): Symlink /var/run/dbus to > /run/dbus. > --- > =C2=A0gnu/services/dbus.scm | 1 + > =C2=A01 file changed, 1 insertion(+) >=20 > diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm > index 5a0c634393..80968ac1a4 100644 > --- a/gnu/services/dbus.scm > +++ b/gnu/services/dbus.scm > @@ -187,6 +187,7 @@ (define (dbus-activation config) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; This dire= ctory contains the daemon's socket so it must > be > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; world-rea= dable. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir-p/per= ms "/var/run/dbus" user #o755)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (symlink "/var/run/dbus" "/ru= n/dbus") >From [1]: > As documented in the NEWS file in > https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/209, it=E2=80= =99s > only valid to use /run =E2=80=93 rather than /var/run =E2=80=93 for D-Bus= if the two > paths are interoperable. i.e. /var/run should be a symlink to /run, > and the D-Bus daemon should be configured to put its socket there. Thus, the order of the two ought to be reversed. Alternatively, we could add '-Druntime_dir=3D/var/run' to glib. WDYT? [1]: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 17:54:44 2023 Received: (at 66339) by debbugs.gnu.org; 4 Oct 2023 21:54:44 +0000 Received: from localhost ([127.0.0.1]:45517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo9pL-0005VA-LU for submit@debbugs.gnu.org; Wed, 04 Oct 2023 17:54:44 -0400 Received: from planete-kraus.eu ([89.234.140.182]:46124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qo9pI-0005V1-Qd for 66339@debbugs.gnu.org; Wed, 04 Oct 2023 17:54:41 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 9da6d370; Wed, 4 Oct 2023 21:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=Wsg8QleBxi3m+T4suhjBorKOHzM=; b=M G4EmJKFERBsPE3UpGZashmruIQEqWcMYhRwC5i0UluSJswUeYW9kO3N+bClTQsNO zNNoVmdMxP/GWgJIKJbMwAoYb/B1Byk6fDSBboUWBOjQ80zFF4//RCQQUSnf+FJk stmUJZgRxvEWL04AgvLRm3YdRb3/Y06Sl+o8KMJBA9bzuKB8/WW/fHz/bI+6+C2g teKThRLnUBkk2hObmdJ1z//VQHdUwbybLJfL1dV6vqlfdCpT4PWaJzS51HMuN5bk eNUwalHxnUdFF9FQjHAFkIqaam5uKZdnqF6PXwZPpI7BUyuJHrsWAVsM8llh9hbn QD/KHLmNuMCzylhdIzKuw== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 9a82b992 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Wed, 4 Oct 2023 21:54:21 +0000 (UTC) Message-ID: <751681ee8d9123e869111a11ce1446d9156117da.1696456123.git.vivien@planete-kraus.eu> In-Reply-To: <479a5d9dda7ac8bb26589f755e4caf3a820325a6.camel@gmail.com> References: <479a5d9dda7ac8bb26589f755e4caf3a820325a6.camel@gmail.com> From: Vivien Kraus Date: Wed, 4 Oct 2023 12:47:04 +0200 Subject: [PATCH gnome-team v2] gnu: dbus-service: make the session available under /run/dbus To: Liliana Marie Prikler , 66339@debbugs.gnu.org MIME-Version: 1.0 User-Agent: Evolution 3.46.4 X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.1 DATE_IN_PAST_06_12 Date: is 6 to 12 hours before Received: date 0.0 PP_MIME_FAKE_ASCII_TEXT BODY: MIME text/plain claims to be ASCII but isn't X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. * gnu/services/dbus.scm (dbus-activation): Symlink /run/dbus to /var/run/dbus. (%dbus-accounts): Run dbus in /run/dbus. (dbus-root-service-type): Save the pid file in /run/dbus. --- Le mercredi 04 octobre 2023 à 20:30 +0200, Liliana Marie Prikler a écrit : > Am Mittwoch, dem 04.10.2023 um 12:47 +0200 schrieb Vivien Kraus: > > * gnu/services/dbus.scm (dbus-activation): Symlink /var/run/dbus to > > /run/dbus. > > --- > > gnu/services/dbus.scm | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm > > index 5a0c634393..80968ac1a4 100644 > > --- a/gnu/services/dbus.scm > > +++ b/gnu/services/dbus.scm > > @@ -187,6 +187,7 @@ (define (dbus-activation config) > > ;; This directory contains the daemon's socket so it > > must > > be > > ;; world-readable. > > (mkdir-p/perms "/var/run/dbus" user #o755)) > > + (symlink "/var/run/dbus" "/run/dbus") > From [1]: > > As documented in the NEWS file in > > https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/209, it’s > > only valid to use /run – rather than /var/run – for D-Bus if the > > two > > paths are interoperable. i.e. /var/run should be a symlink to /run, > > and the D-Bus daemon should be configured to put its socket there. > > Thus, the order of the two ought to be reversed. Alternatively, we > could add '-Druntime_dir=/var/run' to glib. WDYT? > > [1]: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101 Thank you for finding this information. I think we should follow glib, and have the socket in /run/dbus, with the symlink for standard interoperability. I’m still concerned about doing a symlink in the activation function. What if we activate a new system from an existing one? Won’t the symlink fail? I think we should preemptively delete /var/run/dbus and make a new symlink every time. But I could be wrong, maybe this is not needed. What do you think? Best regards, Vivien gnu/services/dbus.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 5a0c634393..53efa7adea 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -163,7 +163,7 @@ (define %dbus-accounts (group "messagebus") (system? #t) (comment "D-Bus system bus user") - (home-directory "/var/run/dbus") + (home-directory "/run/dbus") (shell (file-append shadow "/sbin/nologin"))))) (define dbus-setuid-programs @@ -186,7 +186,11 @@ (define (dbus-activation config) (let ((user (getpwnam "messagebus"))) ;; This directory contains the daemon's socket so it must be ;; world-readable. - (mkdir-p/perms "/var/run/dbus" user #o755)) + (mkdir-p/perms "/run/dbus" user #o755)) + + (when (file-exists? "/var/run/dbus") + (delete-file "/var/run/dbus")) + (symlink "/run/dbus" "/var/run/dbus") (unless (file-exists? "/etc/machine-id") (format #t "creating /etc/machine-id...~%") @@ -210,7 +214,7 @@ (define dbus-shepherd-service '(#:environment-variables '("DBUS_VERBOSE=1") #:log-file "/var/log/dbus-daemon.log") '()) - #:pid-file "/var/run/dbus/pid")) + #:pid-file "/run/dbus/pid")) (stop #~(make-kill-destructor))))))) (define dbus-root-service-type base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 05 00:42:11 2023 Received: (at 66339) by debbugs.gnu.org; 5 Oct 2023 04:42:11 +0000 Received: from localhost ([127.0.0.1]:45709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoGBf-0000IM-2L for submit@debbugs.gnu.org; Thu, 05 Oct 2023 00:42:11 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:50647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoGBc-0000I5-E6 for 66339@debbugs.gnu.org; Thu, 05 Oct 2023 00:42:09 -0400 Received: by mail-wr1-x442.google.com with SMTP id ffacd0b85a97d-32487efc319so578390f8f.1 for <66339@debbugs.gnu.org>; Wed, 04 Oct 2023 21:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696480904; x=1697085704; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=4yEHzEHPp33iPQIcJMyydRFXdEB36omKfth58YMxjRc=; b=WuC9cYEa3pDTpD4OXfVxlX+fmJEkG3jKZl181pV1JeQSKfcVsNC2GMntimht7EQjOu ROlg80oqL/w89P1zgMs41/R/aDv1rjHduRdVQ1dZS+1urjSrpzAfW7FYpFjBpnrT7NCu iQVRTHXYFrCkIBWkiATFRWdETeURyQa1J2iJ0EV0u7ZdWwAueN5ObQjRyD/wXWbYQuX1 nKsOnnJycbqSxaS5GAkm+AbR4h+bkjeMNCEzILue9+yQD+cW+/DH5t1zYXitXqIqrAKu RgkdHEr4MdzsHirwNFpJxp7rTS6oCHr68Ztctt1J4bCiCwQy/SugIVJ9iR2QnYimmP6P flwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696480904; x=1697085704; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4yEHzEHPp33iPQIcJMyydRFXdEB36omKfth58YMxjRc=; b=S5LDZ07tZ0J+EyIok6GEBksdcoJ9o56y0sH4c5/+0nvEmRssPoAsbR4SQma++Xme9o UX6pawUoV6nF9/CGT70ePvUdCOHUsTTbv+ukoOcZmkWF3aAvuB92tuJiPtE4vBGKqzPO T/1/bqyGijX5XbNXVKaF+CwT3XfJH+my6Ihy8YuCQWcLo2QM+d7P1RFA7lIXhXv1mmPk qIDgbBvnboHIIJiRX/8M2TVC6Ca4obj4/z55JqVBCTBGGFozwngPeJZNDoM4JS7KSFOC wMiVmMo88MPkqfkG7JBJsyf8yNuJAkPcZ6AKWSnBcX13eynMO02futV94IBFZUyVWJck xE2g== X-Gm-Message-State: AOJu0YwSrosmXjOovQmJ/0bxwD/NlNi1qFr9EOynOY2Uflup+ofIzZ44 H6pc7WIXxMuUdN//sQgEW8ZRXwM+Fv1Klw== X-Google-Smtp-Source: AGHT+IGnwFL3821RZUdJlG74GolFKESP/pvqpPpPJf02WC5PVUDQhAH8skhgfpkYWj06ujRvb+HhaQ== X-Received: by 2002:a5d:504e:0:b0:320:bbb:5ab1 with SMTP id h14-20020a5d504e000000b003200bbb5ab1mr3829146wrt.14.1696480903917; Wed, 04 Oct 2023 21:41:43 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id p16-20020a5d4e10000000b0031fa870d4b3sm727299wrt.60.2023.10.04.21.41.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 21:41:42 -0700 (PDT) Message-ID: Subject: Re: [PATCH gnome-team v2] gnu: dbus-service: make the session available under /run/dbus From: Liliana Marie Prikler To: Vivien Kraus , 66339@debbugs.gnu.org Date: Thu, 05 Oct 2023 06:41:41 +0200 In-Reply-To: <751681ee8d9123e869111a11ce1446d9156117da.1696456123.git.vivien@planete-kraus.eu> References: <479a5d9dda7ac8bb26589f755e4caf3a820325a6.camel@gmail.com> <751681ee8d9123e869111a11ce1446d9156117da.1696456123.git.vivien@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) Am Mittwoch, dem 04.10.2023 um 12:47 +0200 schrieb Vivien Kraus: > According to > https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib > now searches for the session bus socket in runstatedir. The dbus > service must thus have its socket in /run/dbus. >=20 > For interoperability with the dbus standard, /run/dbus is also > symlinked to /var/run/dbus. >=20 > * gnu/services/dbus.scm (dbus-activation): Symlink /run/dbus to > /var/run/dbus. > (%dbus-accounts): Run dbus in /run/dbus. > (dbus-root-service-type): Save the pid file in /run/dbus. > --- >=20 > Le mercredi 04 octobre 2023 =C3=A0 20:30 +0200, Liliana Marie Prikler a > =C3=A9crit : > > Am Mittwoch, dem 04.10.2023 um 12:47 +0200 schrieb Vivien Kraus: > > > * gnu/services/dbus.scm (dbus-activation): Symlink /var/run/dbus > > > to > > > /run/dbus. > > > --- > > > =C2=A0gnu/services/dbus.scm | 1 + > > > =C2=A01 file changed, 1 insertion(+) > > >=20 > > > diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm > > > index 5a0c634393..80968ac1a4 100644 > > > --- a/gnu/services/dbus.scm > > > +++ b/gnu/services/dbus.scm > > > @@ -187,6 +187,7 @@ (define (dbus-activation config) > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; This = directory contains the daemon's socket so it > > > must > > > be > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; world= -readable. > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir-p= /perms "/var/run/dbus" user #o755)) > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (symlink "/var/run/dbus" = "/run/dbus") > > From [1]: > > > As documented in the NEWS file in > > > https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/209, > > > it=E2=80=99s only valid to use /run =E2=80=93 rather than /var/run = =E2=80=93 for D-Bus if > > > the two paths are interoperable. i.e. /var/run should be a > > > symlink to /run, and the D-Bus daemon should be configured to put > > > its socket there. > >=20 > > Thus, the order of the two ought to be reversed.=C2=A0 Alternatively, w= e > > could add '-Druntime_dir=3D/var/run' to glib.=C2=A0 WDYT? > >=20 > > [1]: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101 >=20 > Thank you for finding this information. I think we should follow > glib, and have the socket in /run/dbus, with the symlink for standard > interoperability. >=20 > I=E2=80=99m still concerned about doing a symlink in the activation funct= ion. > What if we activate a new system from an existing one? Won=E2=80=99t the > symlink fail? I think we should preemptively delete /var/run/dbus and > make a new symlink every time. But I could be wrong, maybe this is > not needed. >=20 > What do you think? If we go this route, I think we should first check whether /var/run/dbus is indeed a symlink to /run/dbus and move the existing files if not before deleting the directory and creating the symlink.=20 But before that, we should try to symlink, which will fail with EEXIST if the file already exists, regardless of whether it's a symlink =E2=80=93 thereafter you can check the cause of this failure through lstat. > Best regards, >=20 > Vivien >=20 > =C2=A0gnu/services/dbus.scm | 10 +++++++--- > =C2=A01 file changed, 7 insertions(+), 3 deletions(-) >=20 > diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm > index 5a0c634393..53efa7adea 100644 > --- a/gnu/services/dbus.scm > +++ b/gnu/services/dbus.scm > @@ -163,7 +163,7 @@ (define %dbus-accounts > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (group "messagebus= ") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (system? #t) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (comment "D-Bus sy= stem bus user") > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (home-directory "/var/r= un/dbus") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (home-directory "/run/d= bus") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (shell (file-appen= d shadow "/sbin/nologin"))))) > =C2=A0 > =C2=A0(define dbus-setuid-programs > @@ -186,7 +186,11 @@ (define (dbus-activation config) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (let ((user (getpwnam "m= essagebus"))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; This dire= ctory contains the daemon's socket so it must > be > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; world-rea= dable. > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir-p/perms "/= var/run/dbus" user #o755)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (mkdir-p/perms "/= run/dbus" user #o755)) > + > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (when (file-exists? "/var/run= /dbus") > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (delete-file "/va= r/run/dbus")) This assumes "/var/run/dbus" to be a regular file or symlink, which it's not on reconfiguration IIUC. > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (symlink "/run/dbus" "/var/ru= n/dbus") > =C2=A0 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (unless (file-exists? "/= etc/machine-id") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (format #t "= creating /etc/machine-id...~%") > @@ -210,7 +214,7 @@ (define dbus-shepherd-service > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 '(#:environment-variables > '("DBUS_VERBOSE=3D1") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:log-file "/var/log/dbus- > daemon.log") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 '()) > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:pid-file "/var/run= /dbus/pid")) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #:pid-file "/run/dbu= s/pid")) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = (stop #~(make-kill-destructor))))))) > =C2=A0 > =C2=A0(define dbus-root-service-type >=20 > base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f Cheers From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 06 13:37:09 2023 Received: (at 66339) by debbugs.gnu.org; 6 Oct 2023 17:37:09 +0000 Received: from localhost ([127.0.0.1]:52591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoolB-0000eR-4e for submit@debbugs.gnu.org; Fri, 06 Oct 2023 13:37:09 -0400 Received: from planete-kraus.eu ([89.234.140.182]:46204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qool8-0000eI-N0 for 66339@debbugs.gnu.org; Fri, 06 Oct 2023 13:37:07 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id d92e6728; Fri, 6 Oct 2023 17:36:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=gOPpwAV0BgJuoxEFxspW3MXxkZY=; b=c Lk3H3wzq9N+rSms9IXy3JT+1UFyfJmJrsu9DYJjJmyTiX0zLlLSSs7efL5N7GaEY kWr9LJdR9WIdGovfQWyymzMrwmIdNE80m9z2XGuOAyRLMTFKC/Ir5zRGgru5Po0M LY3g7JzG5nYIu3TS9ht9OjH6nRJYBMO0T3NXGKY13ChLitIcgjGqJ8cibt5dt8oy 29PpR55PEP9asFjIaYNP0k0F4a9MGHfnBIaxR00aMO6qTE3rGtnn66kUAqc6X9YK JxSH4pRDzm+elSLWZApue94Up42VnmATMSPTzC0vFDLkFP8QEPQAYJcgTpBdLzno 7ABrM3fZLWaxDNWqHZefA== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 8fd226be (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 6 Oct 2023 17:36:46 +0000 (UTC) Message-ID: <3b537fed577176c82c604ac9762a9c5ec2835a21.1696613607.git.vivien@planete-kraus.eu> In-Reply-To: References: From: Vivien Kraus Date: Wed, 4 Oct 2023 12:47:04 +0200 Subject: [PATCH gnome-team v3] gnu: dbus-service: make the session available under /run/dbus To: Liliana Marie Prikler ,66339@debbugs.gnu.org MIME-Version: 1.0 User-Agent: Evolution 3.46.4 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. * gnu/services/dbus.scm (dbus-activation): Symlink /run/dbus to /var/run/dbus. (%dbus-accounts): Run dbus in /run/dbus. (dbus-root-service-type): Save the pid file in /run/dbus. --- Le jeudi 05 octobre 2023 à 06:41 +0200, Liliana Marie Prikler a écrit : > > I’m still concerned about doing a symlink in the activation function. > > What if we activate a new system from an existing one? Won’t the symlink > > fail? I think we should preemptively delete /var/run/dbus and make a new > > symlink every time. But I could be wrong, maybe this is not needed. > > > > What do you think? > If we go this route, I think we should first check whether /var/run/dbus is > indeed a symlink to /run/dbus and move the existing files if not before > deleting the directory and creating the symlink. But before that, we should > try to symlink, which will fail with EEXIST if the file already exists, > regardless of whether it's a symlink – thereafter you can check the cause of > this failure through lstat. I changed my mind! I now think it is OK for the system reconfigure to fail if a different symlink already exists. Best regards, Vivien gnu/services/dbus.scm | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 5a0c634393..206a7bb491 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -163,7 +163,7 @@ (define %dbus-accounts (group "messagebus") (system? #t) (comment "D-Bus system bus user") - (home-directory "/var/run/dbus") + (home-directory "/run/dbus") (shell (file-append shadow "/sbin/nologin"))))) (define dbus-setuid-programs @@ -186,7 +186,24 @@ (define (dbus-activation config) (let ((user (getpwnam "messagebus"))) ;; This directory contains the daemon's socket so it must be ;; world-readable. - (mkdir-p/perms "/var/run/dbus" user #o755)) + (mkdir-p/perms "/run/dbus" user #o755)) + + (catch 'system-error + (lambda () + (symlink "/run/dbus" "/var/run/dbus")) + (lambda args + (let ((errno (system-error-errno args))) + (cond + ((= errno EEXIST) + (let ((existing-name + (readlink "/run/dbus"))) + (unless (equal? existing-name "/var/run/dbus") + (error "the symlink /run/dbus exists and does not point to /var/run/dbus")))) + (else + (format (current-error-port) + "Failed to symlink /run/dbus to /var/run/dbus: ~s~%" + (strerror errno)) + (error "cannot create /var/run/dbus")))))) (unless (file-exists? "/etc/machine-id") (format #t "creating /etc/machine-id...~%") @@ -210,7 +227,7 @@ (define dbus-shepherd-service '(#:environment-variables '("DBUS_VERBOSE=1") #:log-file "/var/log/dbus-daemon.log") '()) - #:pid-file "/var/run/dbus/pid")) + #:pid-file "/run/dbus/pid")) (stop #~(make-kill-destructor))))))) (define dbus-root-service-type base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 06 14:51:18 2023 Received: (at 66339) by debbugs.gnu.org; 6 Oct 2023 18:51:18 +0000 Received: from localhost ([127.0.0.1]:52690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qopuv-0002ov-Us for submit@debbugs.gnu.org; Fri, 06 Oct 2023 14:51:18 -0400 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:42350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoput-0002og-ST for 66339@debbugs.gnu.org; Fri, 06 Oct 2023 14:51:16 -0400 Received: by mail-ej1-x641.google.com with SMTP id a640c23a62f3a-9b2cee40de8so541811866b.1 for <66339@debbugs.gnu.org>; Fri, 06 Oct 2023 11:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696618251; x=1697223051; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ZIo0gguYMvYE4T40YY9ZsNFaT8qgAnVuaDQWKHlFnl8=; b=ZQEzb295uRHdNp3AqpBhs6JEzkkwX7pqbeXjK5Iu40I9Dn72O7DUM0p81VTJdl3VnY PAyULtZsmPbkZJp3jh/NbeVoKByePwpeXrEqA+J19GIhXQ4X9VI98nWKoFknUGO/dA/e 47fofvFfRYrXyrA0/LI0vekSdL1xW2USjHrtVLrQsbgeIafWGKm1lCyOR56I7+glqRD8 T1HjyMYxN6bqI/DE5fOj+RMknywcWx9whORyEBiEKp5UEDZ7sKmJF+TqnRyPYuZndtjP hHZycZ/YRLcJiajtY3Mxujn+0VILrv++aiXH9QC6L6FfquRcNTqGCClx6AcL0n//ZeNz Tvnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696618251; x=1697223051; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZIo0gguYMvYE4T40YY9ZsNFaT8qgAnVuaDQWKHlFnl8=; b=hgsD/yBVdWP3GzL4gw/fDMMUfKp4Eqe8sur7AgoiOI1q3+2Bykwta8xTNCz6yU3ekX vaSn9qz2PtqgVjuMEmDLfxjZTLKUXz9CJ1p4m+ycKv6/Khi76lCQENPhqYpxpi/fLUjv LySIyh2Ww2avLmDFDnN0RTLx0rMBr/o41FMdwhNgcsqKssACYNomHnTqYoQTpILD6llh DQXtF1DisyrAza1Vp+hCMyYX0TIYR4oYIL+CVJsXha0YwNMWtUlzp2nZ5XZx0+Vi/qwT Ao4n72+SkgwtFEbWPsoJ9+gxVmaFsmdJOb5K2EpTv+XYWtPWDezRR+1XoOdEfEKtogWp He5g== X-Gm-Message-State: AOJu0YwNWTbrFC9OQzmMuaf92YxrPdaSQP4y3xrsqjVIfy20Fk08d0Nj 5bbwDuTiusAiv7/NxTTK5yJUt+GOXvwJbQ== X-Google-Smtp-Source: AGHT+IFCSJQ8CtqkFp69ZpBLFaKpYXU6xnY1enDni+50HdkbjAqunDFFU+8n5v1d9IbJrXCeVTDhhA== X-Received: by 2002:a17:907:2ce7:b0:9a5:9f3c:961e with SMTP id hz7-20020a1709072ce700b009a59f3c961emr5892192ejc.18.1696618250900; Fri, 06 Oct 2023 11:50:50 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id dv8-20020a170906b80800b0099cc36c4681sm3270834ejb.157.2023.10.06.11.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 11:50:50 -0700 (PDT) Message-ID: <2b14a21b9cc4987434a5cd0dd0cfd0b0d015a18a.camel@gmail.com> Subject: Re: [PATCH gnome-team v3] gnu: dbus-service: make the session available under /run/dbus From: Liliana Marie Prikler To: Vivien Kraus , 66339@debbugs.gnu.org Date: Fri, 06 Oct 2023 20:50:48 +0200 In-Reply-To: <3b537fed577176c82c604ac9762a9c5ec2835a21.1696613607.git.vivien@planete-kraus.eu> References: <3b537fed577176c82c604ac9762a9c5ec2835a21.1696613607.git.vivien@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Mittwoch, dem 04.10.2023 um 12:47 +0200 schrieb Vivien Kraus: > According to > https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib > now searches for the session bus socket in runstatedir. The dbus > service must > thus have its socket in /run/dbus. >=20 > For interoperability with the dbus standard, /run/dbus is also > symlinked to > /var/run/dbus. >=20 > * gnu/services/dbus.scm (dbus-activation): Symlink /run/dbus to > /var/run/dbus. > (%dbus-accounts): Run dbus in /run/dbus. > (dbus-root-service-type): Save the pid file in /run/dbus. > --- >=20 > Le jeudi 05 octobre 2023 =C3=A0 06:41 +0200, Liliana Marie Prikler a =C3= =A9crit > : > > > I=E2=80=99m still concerned about doing a symlink in the activation > > > function. > > > What if we activate a new system from an existing one? Won=E2=80=99t = the > > > symlink > > > fail? I think we should preemptively delete /var/run/dbus and > > > make a new > > > symlink every time. But I could be wrong, maybe this is not > > > needed. > > >=20 > > > What do you think? > > If we go this route, I think we should first check whether > > /var/run/dbus is indeed a symlink to /run/dbus and move the > > existing files if not before deleting the directory and creating > > the symlink.=C2=A0 But before that, we should try to symlink, which wil= l > > fail with EEXIST if the file already exists, regardless of whether > > it's a symlink =E2=80=93 thereafter you can check the cause of this fai= lure > > through lstat. >=20 > I changed my mind! I now think it is OK for the system reconfigure to > fail if a different symlink already exists. Perhaps, but it's not okay to fail if it's a regular directory. We should move those! Cheers From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 06 16:05:02 2023 Received: (at 66339) by debbugs.gnu.org; 6 Oct 2023 20:05:02 +0000 Received: from localhost ([127.0.0.1]:52706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qor4H-0004m0-Nu for submit@debbugs.gnu.org; Fri, 06 Oct 2023 16:05:02 -0400 Received: from planete-kraus.eu ([89.234.140.182]:46228) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qor4B-0004ll-JQ for 66339@debbugs.gnu.org; Fri, 06 Oct 2023 16:05:00 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 5efb9ed2; Fri, 6 Oct 2023 20:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=RrFTpEFh4MK+bmRQucbQmJtGbbs=; b=M mBsA9O3k/Qk5W2LLzu/hpETgqA1dKxpNXmolnLyova0pDhSk53lfAsQvQuS9IvGm 4Y/WwM6u4Ny+OpHBaqEHjrAYlkFOc8uVZCa6FKwx0SZs2KvnvdmJ8X8c0H0db5bv BuHFl0VuXgInU3M9CPMucvFGbg1GGULAFNT5PAoWiSMBGzABupDZNXIZeHc8SVRk eQxfqytFf0L855aMcnAL+5I380GQuwA/CSmWzo6dWl1rZFhZwsnJqFlE2JznU6/9 sDfgE6ugU40xZue1/FC3Tqo1C/E6ckFiZ28IwAwk4hkUiaPKBiQDU/KURgG1uydX 0fFoavTrMzN7taoTM9HPQ== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 8dd18645 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 6 Oct 2023 20:04:34 +0000 (UTC) Message-ID: <0c667260f50d8a098bcec9b312de552584c2e450.1696622314.git.vivien@planete-kraus.eu> In-Reply-To: <2b14a21b9cc4987434a5cd0dd0cfd0b0d015a18a.camel@gmail.com> References: <2b14a21b9cc4987434a5cd0dd0cfd0b0d015a18a.camel@gmail.com> From: Vivien Kraus Date: Wed, 4 Oct 2023 12:47:04 +0200 Subject: [PATCH gnome-team v4] gnu: dbus-service: make the session available under /run/dbus To: Liliana Marie Prikler ,66339@debbugs.gnu.org MIME-Version: 1.0 User-Agent: Evolution 3.46.4 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. * gnu/services/dbus.scm (dbus-activation): Symlink /run/dbus to /var/run/dbus. (%dbus-accounts): Run dbus in /run/dbus. (dbus-root-service-type): Save the pid file in /run/dbus. --- > Perhaps, but it's not okay to fail if it's a regular directory. We should > move those! I’m not sure I understand. What comes to my mind is: 1. Try to make the symlink. If it fails with EEXIST: 2. Try to read /var/run/dbus as a symlink. If it points to /run/dbus already, stop. Otherwise: 3. Move everything in /var/run/dbus to /run/dbus. 4. Delete the now-empty /var/run/dbus. 5. Symlink /run/dbus to /var/run/dbus. Is it what you meant? Best regards, Vivien gnu/services/dbus.scm | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 5a0c634393..44bf0c910b 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -163,7 +163,7 @@ (define %dbus-accounts (group "messagebus") (system? #t) (comment "D-Bus system bus user") - (home-directory "/var/run/dbus") + (home-directory "/run/dbus") (shell (file-append shadow "/sbin/nologin"))))) (define dbus-setuid-programs @@ -186,7 +186,39 @@ (define (dbus-activation config) (let ((user (getpwnam "messagebus"))) ;; This directory contains the daemon's socket so it must be ;; world-readable. - (mkdir-p/perms "/var/run/dbus" user #o755)) + (mkdir-p/perms "/run/dbus" user #o755)) + + (catch 'system-error + (lambda () + (symlink "/run/dbus" "/var/run/dbus")) + (lambda args + (let ((errno (system-error-errno args))) + (cond + ((= errno EEXIST) + (let ((existing-name + (false-if-exception + (readlink "/var/run/dbus")))) + (unless (equal? existing-name "/run/dbus") + ;; Move the content of /var/run/dbus to /run/dbus, and + ;; retry. + (let ((dir (opendir "/var/run/dbus"))) + (let move-to-/run/dbus () + (let ((next (readdir dir))) + (unless (or (equal? next ".") + (equal? next "..") + (eof-object? next)) + (rename-file (string-append "/var/run/dbus/" next) + (string-append "/run/dbus/" next))) + (unless (eof-object? next) + (move-to-/run/dbus)))) + (closedir dir) + (rmdir "/var/run/dbus") + (symlink "/run/dbus" "/var/run/dbus"))))) + (else + (format (current-error-port) + "Failed to symlink /run/dbus to /var/run/dbus: ~s~%" + (strerror errno)) + (error "cannot create /var/run/dbus")))))) (unless (file-exists? "/etc/machine-id") (format #t "creating /etc/machine-id...~%") @@ -210,7 +242,7 @@ (define dbus-shepherd-service '(#:environment-variables '("DBUS_VERBOSE=1") #:log-file "/var/log/dbus-daemon.log") '()) - #:pid-file "/var/run/dbus/pid")) + #:pid-file "/run/dbus/pid")) (stop #~(make-kill-destructor))))))) (define dbus-root-service-type base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 06 17:41:42 2023 Received: (at 66339) by debbugs.gnu.org; 6 Oct 2023 21:41:42 +0000 Received: from localhost ([127.0.0.1]:52802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qosZp-0001Ns-EC for submit@debbugs.gnu.org; Fri, 06 Oct 2023 17:41:41 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:59772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qosZn-0001Nc-OA for 66339@debbugs.gnu.org; Fri, 06 Oct 2023 17:41:40 -0400 Received: by mail-wm1-x342.google.com with SMTP id 5b1f17b1804b1-40684f53ef3so25008785e9.3 for <66339@debbugs.gnu.org>; Fri, 06 Oct 2023 14:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696628474; x=1697233274; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=gw9trmvaB95RSqlaZuY2IAyYxffS+dnBOiuKq+s+jNA=; b=LMpd98tFAeJ2wJsHmuVQB8ba7sCLArSMeo+APnndJmVV1HcatOkHKHgACIR3qcj/w2 RIVbyLGldS18dsy4La1QjupTt5lOwrZSDjMe7D0YcUEtuKTLlqIsEfumXt8ZtjUPasRc kjuG583Pk6YXJHda7btoYIKv1RZ8JcuRfDrydPO8LXbs+1m8O+hjt5vhq8/4WuyTKPZs niYebNEpnrwIvzm2RxchmAzrJjK/PUcYZpu2wW2YLwa3o9oNWsRa02Su/RDFpvSCLsDL iiJxvlba1n3tb0R4qcLNGJlhfSKtayiog35DnIoitw6HZNcZf5TQ9rmlCRvNBXX7dlcT /Rdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696628474; x=1697233274; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gw9trmvaB95RSqlaZuY2IAyYxffS+dnBOiuKq+s+jNA=; b=hDa/bnAVMieR4pipgfeSAC/vTcHveZl56HbOkRVUGeJH2tDi0XRVibHYvh+5BY/OnM ISgors0/PdfssIUC72KZAzOM+BBNera9sUrCoTQG8H3CXPiGzExs9wiNBREJd2VXnQeo XttwPr3rpaU7M6TZzYp0d4iD7tnl5lhfiL9zNpRM2zEmm9s5yDk6FkYAeIHsmvo12gfq O2TfgnsibLZMMpLRDMPypgfw9EUWsXG6uw6L1Q4tGD3OoD5hCAb/FwTxuxDjMosHXzYb RGdECp08BKIC9zQ8fmmW3r5iqJHUnsOFANvLc77BoIroFwpwMBzXkhDhLlcQOY38S2UK /trA== X-Gm-Message-State: AOJu0YzTl185kiO94ZLGAvjiFCL+n/AlaQiNZ7EBeQd7EOx9wWz8ZHhC 5x+NTOwf5biAHeaFqdNXraI= X-Google-Smtp-Source: AGHT+IEsyuYOpxohT4aeTsAtGh+Z8idPUIzUJ5PQWdwBFn+Lan9JrIwaBlCpaXlnAx6XoiAdBL2qZg== X-Received: by 2002:a05:600c:2050:b0:406:53f1:d629 with SMTP id p16-20020a05600c205000b0040653f1d629mr7992930wmg.5.1696628473865; Fri, 06 Oct 2023 14:41:13 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id p5-20020a1c7405000000b004064e3b94afsm6814069wmc.4.2023.10.06.14.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 14:41:12 -0700 (PDT) Message-ID: <45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> Subject: Re: [PATCH gnome-team v4] gnu: dbus-service: make the session available under /run/dbus From: Liliana Marie Prikler To: Vivien Kraus , 66339@debbugs.gnu.org Date: Fri, 06 Oct 2023 23:41:10 +0200 In-Reply-To: <0c667260f50d8a098bcec9b312de552584c2e450.1696622314.git.vivien@planete-kraus.eu> References: <2b14a21b9cc4987434a5cd0dd0cfd0b0d015a18a.camel@gmail.com> <0c667260f50d8a098bcec9b312de552584c2e450.1696622314.git.vivien@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) QW0gTWl0dHdvY2gsIGRlbSAwNC4xMC4yMDIzIHVtIDEyOjQ3ICswMjAwIHNjaHJpZWIgVml2aWVu IEtyYXVzOgo+IEFjY29yZGluZyB0bwo+IGh0dHBzOi8vZ2l0bGFiLmdub21lLm9yZy9HTk9NRS9n bGliLy0vbWVyZ2VfcmVxdWVzdHMvMzEwMSwgZ2xpYgo+IG5vdyBzZWFyY2hlcyBmb3IgdGhlIHNl c3Npb24gYnVzIHNvY2tldCBpbiBydW5zdGF0ZWRpci4gVGhlIGRidXMKPiBzZXJ2aWNlIG11c3Qg dGh1cyBoYXZlIGl0cyBzb2NrZXQgaW4gL3J1bi9kYnVzLgo+IAo+IEZvciBpbnRlcm9wZXJhYmls aXR5IHdpdGggdGhlIGRidXMgc3RhbmRhcmQsIC9ydW4vZGJ1cyBpcyBhbHNvCj4gc3ltbGlua2Vk IHRvIC92YXIvcnVuL2RidXMuCj4gCj4gKiBnbnUvc2VydmljZXMvZGJ1cy5zY20gKGRidXMtYWN0 aXZhdGlvbik6IFN5bWxpbmsgL3J1bi9kYnVzIHRvCj4gL3Zhci9ydW4vZGJ1cy4KPiAoJWRidXMt YWNjb3VudHMpOiBSdW4gZGJ1cyBpbiAvcnVuL2RidXMuCj4gKGRidXMtcm9vdC1zZXJ2aWNlLXR5 cGUpOiBTYXZlIHRoZSBwaWQgZmlsZSBpbiAvcnVuL2RidXMuCj4gLS0tCj4gCj4gPiBQZXJoYXBz LCBidXQgaXQncyBub3Qgb2theSB0byBmYWlsIGlmIGl0J3MgYSByZWd1bGFyIGRpcmVjdG9yeS7C oCBXZQo+ID4gc2hvdWxk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RvcikpKSkpKSkKPiDCoAo+IMKgKGRlZmluZSBkYnVzLXJvb3Qtc2VydmljZS10eXBl Cj4gCj4gYmFzZS1jb21taXQ6IGIxOGIyZDEzNDg4ZjJhOTIzMzFjY2FkMmRjOGNiYjU0ZWUxNTU4 MmYKQ2hlZXJzCg== From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 10:24:42 2023 Received: (at 66339) by debbugs.gnu.org; 7 Oct 2023 14:24:42 +0000 Received: from localhost ([127.0.0.1]:55594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp8EU-0004sr-4t for submit@debbugs.gnu.org; Sat, 07 Oct 2023 10:24:42 -0400 Received: from planete-kraus.eu ([89.234.140.182]:60822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp8ES-0004sa-0Y for 66339@debbugs.gnu.org; Sat, 07 Oct 2023 10:24:40 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 842a4e82; Sat, 7 Oct 2023 14:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=qCraxQCMRofdc5ibwnBqiorLkvM=; b=L t++5NO+gEWuEB7zXUpDx3VXHtkeD5X/g3u33ZRajpoaYO7v++N8PDv57ySraHJ1T Pfie3LLD/1QIxI/yhV7G5M4+xeG/sTMbcJhBaHAh2dxumJh+2dS81LBhIGr5lHsu AmxMzbWYN7yCiEq38zlOWxKMKrij/JKl7hl4UALhb2UqhdDiXPX5pEZAeP+YzEjT 2/wZtN+dtkZtIe9B5ZpkTzZu+5pMXVDt4NjyncmTh4HDmwFvzz5z5KGQSghpIvow gU1NzgIL4RNpZfHUL+QO9miU1VkcTJkiNL1B6lp92ad2xbmawmCl7sDrBJhLYOyI XhCepw7wqqopVIxSICk+Q== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 854fef47 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sat, 7 Oct 2023 14:24:17 +0000 (UTC) Message-ID: <0f234811bdabf42660367dfae5ecdf88439b48e3.1696688485.git.vivien@planete-kraus.eu> In-Reply-To: <45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> References: <45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> From: Vivien Kraus Date: Fri, 6 Oct 2023 23:12:50 +0200 Subject: [PATCH gnome-team v5] gnu: glib: Set runstatedir. To: Liliana Marie Prikler ,66339@debbugs.gnu.org MIME-Version: 1.0 User-Agent: Evolution 3.46.4 X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, maxim.cournoyer@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) Glib has made /run the default runstatedir: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101 However, in Guix, the default runstatedir is /var/run. * gnu/packages/glib.scm (glib): Set runtime_dir to /var/run. --- I changed my mind again! Following the IRC discussion, Guix has a separate /var/run and /run (and puts /run/current-system/ in /run). So, /var/run/dbus is actually the correct place to put the system session socket. gnu/packages/glib.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 8af89d60e0..c4fcc20bb6 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -254,6 +254,7 @@ (define glib #:configure-flags #~(list "--default-library=both" "-Dman=false" "-Dselinux=disabled" + "-Druntime_dir=/var/run" (string-append "--bindir=" #$output:bin "/bin")) #:phases base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 07 10:40:07 2023 Received: (at 66339) by debbugs.gnu.org; 7 Oct 2023 14:40:07 +0000 Received: from localhost ([127.0.0.1]:55618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp8TP-0005TD-5Y for submit@debbugs.gnu.org; Sat, 07 Oct 2023 10:40:07 -0400 Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]:47335) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp8TM-0005Sa-F5 for 66339@debbugs.gnu.org; Sat, 07 Oct 2023 10:40:05 -0400 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5a2478862dbso38359827b3.2 for <66339@debbugs.gnu.org>; Sat, 07 Oct 2023 07:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696689579; x=1697294379; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=iMbKp6j8gBKAOyTooppLrfKWTZRW/zFeCQOpvuaql+w=; b=h65SxEYKW0y59LdkZhyvYWnRB2wOJS2e4yXaSnpXeuwlZUdeN3H5OJwAwOmygYrrZI M2g5InNrGpbjRnH4cvUfljmj4Q3PWiNJDz8Ck+i6VQry3sL+QL2AXa7GOsmTsVKm7z3H E6/WzF2/3JLtk1OKTEe8xfCB71v9BpgCj3srktfqBYefyCSDhO/pW1TEyGfv++mLzarK XJuPzDfgasyvxgYvszidHQjHRNCTW7emPbGpT8NKXE26qUrto46X8ZGFo+GdLg36GLxO wGlGS4E2hjnQR2JBDQPKtCERdLFiykpC0LGzGp57u0Z/JfbocsUIYy+OLuWHkiYhfB80 5AZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696689579; x=1697294379; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=iMbKp6j8gBKAOyTooppLrfKWTZRW/zFeCQOpvuaql+w=; b=kC3mqPL0ahM0bHwOi22JkfhWLuLV2G0k4U5lojV5ezYYDvhGV34qjxBMUVEhVlkQkS vZAFdxbnUc6o2aOZRWbHBI0CychsZ9087kt+fOuFOU9+uDJ0Hf+zbDaTGOuQGxCEAQVJ y34o/bGvgz8F58wBohmIPCk8iBKIQJuOge3MlJtz81tAToQHTeK8kQ4b4ye2T7aK0Q/1 6VGlbkcPWH0JBTK66bcfuAtzrniuCsZw/bukeT9kPgPp1lHG2KPAoSBY/gGoDTU+RXIq i/aRKqTDBnlIY2DqpXikb4pKaMnOudERuffV3ykNTG5knO0TGJmMmcx1+zoofFwu8O/m 0s7w== X-Gm-Message-State: AOJu0YyqvrR8qUYHtm9K7+8tb7r0OgPBbb4LKECne8qLnH+BnfHX5xEp KGXPH/sBj4GY+K1Tm0nKbvE= X-Google-Smtp-Source: AGHT+IGjnO+fJz0bLu/PirD5edRsHWOl+QlzWiogPXUV0QS8s7xZXBJUuWZgEoWqguU3JGZy+NotlQ== X-Received: by 2002:a25:ade0:0:b0:d7f:2cb6:7d8b with SMTP id d32-20020a25ade0000000b00d7f2cb67d8bmr11154862ybe.63.1696689579182; Sat, 07 Oct 2023 07:39:39 -0700 (PDT) Received: from hurd (dsl-158-21.b2b2c.ca. [66.158.158.21]) by smtp.gmail.com with ESMTPSA id b16-20020a0ccd10000000b0065b1768556bsm2218246qvm.108.2023.10.07.07.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 07:39:38 -0700 (PDT) From: Maxim Cournoyer To: Vivien Kraus Subject: Re: bug#66339: Gnome-team dbus socket in /var/run/dbus, not /run/dbus In-Reply-To: <0f234811bdabf42660367dfae5ecdf88439b48e3.1696688485.git.vivien@planete-kraus.eu> (Vivien Kraus's message of "Fri, 6 Oct 2023 23:12:50 +0200") References: <45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> <0f234811bdabf42660367dfae5ecdf88439b48e3.1696688485.git.vivien@planete-kraus.eu> Date: Sat, 07 Oct 2023 10:39:37 -0400 Message-ID: <87y1geijiu.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, 66339@debbugs.gnu.org, Liliana Marie Prikler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Vivien Kraus writes: > Glib has made /run the default runstatedir: > > https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101 > > However, in Guix, the default runstatedir is /var/run. > > * gnu/packages/glib.scm (glib): Set runtime_dir to /var/run. > --- > > I changed my mind again! Following the IRC discussion, Guix has a separate > /var/run and /run (and puts /run/current-system/ in /run). So, /var/run/dbus > is actually the correct place to put the system session socket. I don't follow; why does it matter that Guix puts its current-system directory under /run? /run is to be shared by many applications, like /tmp, no? I still see /var/run as the legacy directory of /run, so I'd prefer we standardize to use the modern variant to reduce this kind of friction with the applications which will only grow in the future. -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 09:15:43 2023 Received: (at 66339) by debbugs.gnu.org; 8 Oct 2023 13:15:43 +0000 Received: from localhost ([127.0.0.1]:56496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpTdH-00058N-7r for submit@debbugs.gnu.org; Sun, 08 Oct 2023 09:15:43 -0400 Received: from planete-kraus.eu ([89.234.140.182]:42968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpTdE-00058D-Cj for 66339@debbugs.gnu.org; Sun, 08 Oct 2023 09:15:42 -0400 Received: from planete-kraus.eu (localhost.lan [127.0.0.1]) by planete-kraus.eu (OpenSMTPD) with ESMTP id 7aa7c808; Sun, 8 Oct 2023 13:15:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=planete-kraus.eu; h= message-id:in-reply-to:references:from:date:subject:to:cc :mime-version; s=albinoniB; bh=ukTzRNBepWo9wwoFaSMhLuZZLMg=; b=k nTFpGFw9twRjToCqvaRayPjXHg2aJ802lVAUsSP5Neskh7lNT+y8naYwk1aXMZbg 7T+d7ZtI7H2wEcNGXUIZGP5cDD82LJBqEDg6k8u8MbOA6Z69S8B6otx+gHu0IIK9 SY/Mq4q6PXpmFilDYh/SRZ5R2Sm9JDs8Bg2ps1PuvaAz4pOnEgvx+1GCZhyIXETa GzYXLOdmPjWsDamRXcl82+HDv0XbpEpcKuw74b/ct1ABvp+Dx2nSt9/5fbrZN6Hq Ue0hZq+6EyXliPR953MNyBy0cQ/sjhcyISEShYw2gs/3zuXoL2DuaQtWQ2ZUW+Cr cJmhEqss1pAnrGcQAzpTw== Received: by planete-kraus.eu (OpenSMTPD) with ESMTPSA id 9421b288 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 8 Oct 2023 13:15:18 +0000 (UTC) Message-ID: <178db70e715f9e3c6a25e42034d90d672e893349.1696761183.git.vivien@planete-kraus.eu> In-Reply-To: <87y1geijiu.fsf_-_@gmail.com>, <45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> References: <87y1geijiu.fsf_-_@gmail.com> ,<45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> From: Vivien Kraus Date: Wed, 4 Oct 2023 12:47:04 +0200 Subject: [PATCH gnome-team v6] gnu: dbus-service: make the session available under /run/dbus To: Liliana Marie Prikler ,Maxim Cournoyer ,66339@debbugs.gnu.org MIME-Version: 1.0 User-Agent: Evolution 3.46.4 X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 PP_MIME_FAKE_ASCII_TEXT BODY: MIME text/plain claims to be ASCII but isn't X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.1 DATE_IN_PAST_96_XX Date: is 96 hours or more before Received: date -0.0 SPF_PASS SPF: sender matches SPF record 0.0 PP_MIME_FAKE_ASCII_TEXT BODY: MIME text/plain claims to be ASCII but isn't -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager According to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101, glib now searches for the session bus socket in runstatedir. The dbus service must thus have its socket in /run/dbus. For interoperability with the dbus standard, /run/dbus is also symlinked to /var/run/dbus. * gnu/services/dbus.scm (dbus-activation): Symlink /run/dbus to /var/run/dbus. (%dbus-accounts): Run dbus in /run/dbus. (dbus-root-service-type): Save the pid file in /run/dbus. --- Hello, I changed my mind back to a previous mind change, so: the socket should be installed in /run. I believe that the code moves the content of the existing /var/run/dbus to /run/dbus before trying the symlink again, if /var/run/dbus exists and is not a symlink to /run/dbus. I don’t really have a way to check the interesting case where existing files need to be moved. However, the gnome-team-configured VM works. Best regards, Vivien gnu/services/dbus.scm | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/gnu/services/dbus.scm b/gnu/services/dbus.scm index 5a0c634393..aa9ce0720c 100644 --- a/gnu/services/dbus.scm +++ b/gnu/services/dbus.scm @@ -163,7 +163,7 @@ (define %dbus-accounts (group "messagebus") (system? #t) (comment "D-Bus system bus user") - (home-directory "/var/run/dbus") + (home-directory "/run/dbus") (shell (file-append shadow "/sbin/nologin"))))) (define dbus-setuid-programs @@ -186,7 +186,40 @@ (define (dbus-activation config) (let ((user (getpwnam "messagebus"))) ;; This directory contains the daemon's socket so it must be ;; world-readable. - (mkdir-p/perms "/var/run/dbus" user #o755)) + (mkdir-p/perms "/run/dbus" user #o755)) + + (catch 'system-error + (lambda () + (symlink "/run/dbus" "/var/run/dbus")) + (lambda args + (let ((errno (system-error-errno args))) + (cond + ((= errno EEXIST) + (let ((existing-name + (false-if-exception + (readlink "/var/run/dbus")))) + (unless (equal? existing-name "/run/dbus") + ;; Move the content of /var/run/dbus to /run/dbus, and + ;; retry. + (let ((dir (opendir "/var/run/dbus"))) + (let move-to-/run/dbus ((next (readdir dir))) + (cond + ((eof-object? next) + (closedir dir)) + ((member next '("." "..")) + (move-to-/run/dbus (readdir dir))) + (else + (begin + (rename-file (string-append "/var/run/dbus/" next) + (string-append "/run/dbus/" next)) + (move-to-/run/dbus (readdir dir)))))))) + (rmdir "/var/run/dbus") + (symlink "/run/dbus" "/var/run/dbus"))) + (else + (format (current-error-port) + "Failed to symlink /run/dbus to /var/run/dbus: ~s~%" + (strerror errno)) + (error "cannot create /var/run/dbus")))))) (unless (file-exists? "/etc/machine-id") (format #t "creating /etc/machine-id...~%") @@ -210,7 +243,7 @@ (define dbus-shepherd-service '(#:environment-variables '("DBUS_VERBOSE=1") #:log-file "/var/log/dbus-daemon.log") '()) - #:pid-file "/var/run/dbus/pid")) + #:pid-file "/run/dbus/pid")) (stop #~(make-kill-destructor))))))) (define dbus-root-service-type base-commit: b18b2d13488f2a92331ccad2dc8cbb54ee15582f -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 10:53:55 2023 Received: (at 66339) by debbugs.gnu.org; 8 Oct 2023 14:53:55 +0000 Received: from localhost ([127.0.0.1]:58255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpVAI-00034w-Nt for submit@debbugs.gnu.org; Sun, 08 Oct 2023 10:53:55 -0400 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:51229) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpVAG-00034h-Dt for 66339@debbugs.gnu.org; Sun, 08 Oct 2023 10:53:53 -0400 Received: by mail-ej1-x641.google.com with SMTP id a640c23a62f3a-9adca291f99so632115966b.2 for <66339@debbugs.gnu.org>; Sun, 08 Oct 2023 07:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696776806; x=1697381606; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=88xvk7F3TQXXEmYiApb3jtNFJfqMmZTSii1ZrabR1i4=; b=h1cxOyLY7kXqszeBdA7kgDSi2OV9yd0vC88wdxLUc1M03eHxhiPpeqXC/TRQ+ftD1O 0PtQ+krw3yuq9GQWZ9MjOP98FrNivEbRTs8dFv1WJ55yZoltExoq1KPjalHmb3dVdaLd RdTwlLR0qCJYcA56fFj9XEXgPMTkpajhxYqeQrQCV89gncF4o/airac61oXEus+kkPkp 1lrxgI05+5YSmyquY3z2MPlSADq9lcfvrQ1WiM9FqAxI3AJyg6Mn3zZEZXpn7AcOE7gd 0KITfYbX1EVvR1ZL4Ceq3aYo5ptVTs0sKvLEbCRppZIbUkOirkVoCSXsnRp8Nk10c5H7 wdnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696776806; x=1697381606; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=88xvk7F3TQXXEmYiApb3jtNFJfqMmZTSii1ZrabR1i4=; b=YlNiox3U3ot45a7Aj/fDrdtCTgg4LpTHpy7JmjXTTdTQdEW8wuD6rWFRyd9KsCXsSr nQEGulj0DVFm+eq9idlBX2JuCPNycCnbqJDNYLtGLIrXIQ+alVD//PBwx4YlW6YrwUQ/ 3TX3Mdi1m+15sq7HCqYjw/mxpHu0dvjFf3kUnh2LeANIwTYdTyEm4Wo/RmSYTDALror7 tSrcFz+bOf6yAFWGwJVyxAUhU2jQ2HnG01Rnaux0ZvrRcd0C3Dxt5qIjX2/tYjEfSfv2 wCF3ZOd75XMDRBUpk/PLcYcugSIXcftOvprgJ3nps9ganlsHdcB8QhPJLTMf13ibo+Xl vA9Q== X-Gm-Message-State: AOJu0YxuFzSZzkBgHlxLx0QxgeR5JAWGGgH0OQHJFncb7f6e1zsA9tfG oauOiYUNWijscF6kyf/RVdo= X-Google-Smtp-Source: AGHT+IEs1xdTYqF7yLBuAftWWq8dH56EziNIOFcI/XdEk/zn/0Oi8oXmNQicuFka9KwQr+mysRPcsA== X-Received: by 2002:a17:906:318f:b0:9b2:cf77:a105 with SMTP id 15-20020a170906318f00b009b2cf77a105mr10888731ejy.15.1696776806139; Sun, 08 Oct 2023 07:53:26 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id ss7-20020a170907038700b009a9fbeb15f5sm5533756ejb.46.2023.10.08.07.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 07:53:24 -0700 (PDT) Message-ID: <59169352e8b09119c850fd2b5e80cb668ccd47fb.camel@gmail.com> Subject: Re: [PATCH gnome-team v6] gnu: dbus-service: make the session available under /run/dbus From: Liliana Marie Prikler To: Vivien Kraus , Maxim Cournoyer , 66339@debbugs.gnu.org Date: Sun, 08 Oct 2023 16:53:23 +0200 In-Reply-To: <178db70e715f9e3c6a25e42034d90d672e893349.1696761183.git.vivien@planete-kraus.eu> References: <87y1geijiu.fsf_-_@gmail.com> ,<45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> <178db70e715f9e3c6a25e42034d90d672e893349.1696761183.git.vivien@planete-kraus.eu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) QW0gTWl0dHdvY2gsIGRlbSAwNC4xMC4yMDIzIHVtIDEyOjQ3ICswMjAwIHNjaHJpZWIgVml2aWVu IEtyYXVzOgo+IEFjY29yZGluZyB0bwo+IGh0dHBzOi8vZ2l0bGFiLmdub21lLm9yZy9HTk9NRS9n bGliLy0vbWVyZ2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KgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqAgIzpsb2ctZmlsZSAiL3Zhci9sb2cvZGJ1cy0KPiBkYWVtb24ubG9nIikKPiDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg ICcoKSkKPiAtwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgICM6cGlk LWZpbGUgIi92YXIvcnVuL2RidXMvcGlkIikpCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoCAjOnBpZC1maWxlICIvcnVuL2RidXMvcGlkIikpCj4gwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgIChzdG9wICN+KG1ha2Uta2lsbC1kZXN0cnVjdG9yKSkpKSkpKQo+IMKg Cj4gwqAoZGVmaW5lIGRidXMtcm9vdC1zZXJ2aWNlLXR5cGUKPiAKPiBiYXNlLWNvbW1pdDogYjE4 YjJkMTM0ODhmMmE5MjMzMWNjYWQyZGM4Y2JiNTRlZTE1NTgyZgpPdGhlcndpc2UgTEdUTS4gIEkn ZCBjb21taXQgaXQsIGJ1dCBteSBtYWNoaW5lIGlzIGN1cnJlbnRseSBidXN5CmJ1aWxkaW5nIGhh bGYgb2YgY29yZS11cGRhdGVzIGZvciBubyByZWFzb24uCgpDaGVlcnMK From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 08 11:41:23 2023 Received: (at 66339) by debbugs.gnu.org; 8 Oct 2023 15:41:23 +0000 Received: from localhost ([127.0.0.1]:58261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpVuF-0004bs-34 for submit@debbugs.gnu.org; Sun, 08 Oct 2023 11:41:23 -0400 Received: from smtpm2.myservices.hosting ([185.26.105.233]:60288) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpVuB-0004be-TF for 66339@debbugs.gnu.org; Sun, 08 Oct 2023 11:41:21 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm2.myservices.hosting (Postfix) with ESMTP id 0D99320E7B; Sun, 8 Oct 2023 17:40:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 63CC2800A7; Sun, 8 Oct 2023 17:40:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PegLxOJj3Wbp; Sun, 8 Oct 2023 17:40:55 +0200 (CEST) Received: from [192.168.1.116] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 86318800A9; Sun, 8 Oct 2023 17:40:52 +0200 (CEST) Message-ID: Date: Sun, 8 Oct 2023 16:40:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#66339: Gnome-team dbus socket in /var/run/dbus, not /run/dbus Content-Language: en-US To: Maxim Cournoyer , Vivien Kraus References: <45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> <0f234811bdabf42660367dfae5ecdf88439b48e3.1696688485.git.vivien@planete-kraus.eu> <87y1geijiu.fsf_-_@gmail.com> From: Bruno Victal In-Reply-To: <87y1geijiu.fsf_-_@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339 Cc: rg@raghavgururajan.name, 66339@debbugs.gnu.org, Liliana Marie Prikler X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, On 2023-10-07 15:39, Maxim Cournoyer wrote: > Hi, > > Vivien Kraus writes: > >> Glib has made /run the default runstatedir: >> >> https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3101 >> >> However, in Guix, the default runstatedir is /var/run. >> >> * gnu/packages/glib.scm (glib): Set runtime_dir to /var/run. >> --- >> >> I changed my mind again! Following the IRC discussion, Guix has a separate >> /var/run and /run (and puts /run/current-system/ in /run). So, /var/run/dbus >> is actually the correct place to put the system session socket. I recommend consulting the dbus spec [1] (System message bus subsection). If I understood it correctly, `/var/run/dbus' is correct when the environment variable DBUS_SYSTEM_BUS_ADDRESS is not set. The /var/run/dbus or /run/dbus confusion is clarified in the third paragraph: “On systems where /var/run/ is known to be synonymous with /run/ (such as most Linux operating system distributions), implementations might prefer to make use of that knowledge to connect to or listen on unix:path=/run/dbus/system_bus_socket instead, […]” So it's up for the dbus implementation to detect whether /var/run/ is a symlink to /run and whether it wants to explicitly choose /run if that's the case though none of this is mandatory. […] > I still see /var/run as the legacy directory of /run, so I'd prefer we > standardize to use the modern variant to reduce this kind of friction > with the applications which will only grow in the future. My understanding is that the implementation should be placing them under /var/run/dbus but this is orthogonal to the value of runstatedir. In view with [2] I think runstatedir should be /run and Guix should be modernized to have /var/run symlinked to /run. [1]: [2]: -- Furthermore, I consider that nonfree software must be eradicated. Cheers, Bruno. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 09 16:37:13 2023 Received: (at 66339-done) by debbugs.gnu.org; 9 Oct 2023 20:37:13 +0000 Received: from localhost ([127.0.0.1]:33474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpx04-0006G5-QR for submit@debbugs.gnu.org; Mon, 09 Oct 2023 16:37:13 -0400 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]:51377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpx02-0006Fq-FX for 66339-done@debbugs.gnu.org; Mon, 09 Oct 2023 16:37:11 -0400 Received: by mail-ej1-x641.google.com with SMTP id a640c23a62f3a-9adca291f99so843060766b.2 for <66339-done@debbugs.gnu.org>; Mon, 09 Oct 2023 13:36:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696883804; x=1697488604; darn=debbugs.gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=7uxLb8C/veiC1/erUeN0qNbhJalDcPffuwDBpLhlu94=; b=Z+WYfSf5Umkn07EBoefWiC6qS/WCA2t8C8TCk1Aiy/kjixGdJiZpLREG/svF9defPU AFO+4Mxs5CPNTmAOSfPLz5Y55+A9cNFSIl+BXoP5ydtTdTGSmslN2H9xhHaz6QGciMrH eIjKDrl9J+49aQDg7myE+U75nbUNXSJpzZ4MP6+Q4Z5zZVpwkHupZuGH1x2pxgrbUmD3 KIo/DbwqZhXrJCzpsuCfzaFEBSKSq724iSzUCDKelQf6G0c57fCoTIgYhrwYx2dqvKqB SbcszCccBmnNWXVWrMPaiC/xRBFTzZW7SSQ2JDNxC1YRCfYOvx1eNSNvr/za0S3FgvhQ MJxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696883804; x=1697488604; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7uxLb8C/veiC1/erUeN0qNbhJalDcPffuwDBpLhlu94=; b=DwjMqOg2XI7C83vN0sdT1IJ/TG2cy/XzO3KwAOwMlNQvxr2rOnXejeda2abgsaMj2z XTXV5zvjKvsjoAyUKvRlz7i8Wmkgo3ckL4bwZTEXZsVFTxPL5DhuBHz0u9St0CmS5KMl snPp84yZ/qCOqMzqQpwqG298cVwt7yG/QfWrZBf2xMYX1wmsEtilcnDV27IYuWDlIKNm d+DSOYww0oXWdAU6OXzPU5sV+QoMjfHhjR6NQLC+zGeblz48F4CCGCSOZIJQwZ+t1mBI WshUCleN864KFFL7efv8auHptrSAa0DeAUl9T87LrGq5TIt+Tsewop6N3xaxGRZbYXMN bwAw== X-Gm-Message-State: AOJu0YzEMPLVnnDUUucxdKeZhWruZVzcNmjw9AVf6EJmuq660oeptobD lxU2JPqt71e5CNxffFQWkAYEXn/GN1YJ6g== X-Google-Smtp-Source: AGHT+IGFPBvQnVYwgDfRI0ncLXGItl3dXUyjjqri9Dkb7yMISaIVNfUVrHe5U88y23XB7QRVR3h9wg== X-Received: by 2002:a17:906:53c6:b0:9a2:1e03:1572 with SMTP id p6-20020a17090653c600b009a21e031572mr14330683ejo.19.1696883803514; Mon, 09 Oct 2023 13:36:43 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id jw26-20020a17090776ba00b009ae3d711fd9sm7176638ejc.69.2023.10.09.13.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 13:36:42 -0700 (PDT) Message-ID: <20ed3340de4b64b61ec33fb929b83ed4b86b4e93.camel@gmail.com> Subject: Re: [PATCH gnome-team v6] gnu: dbus-service: make the session available under /run/dbus From: Liliana Marie Prikler To: Vivien Kraus , Maxim Cournoyer , 66339-done@debbugs.gnu.org Date: Mon, 09 Oct 2023 22:36:41 +0200 In-Reply-To: <59169352e8b09119c850fd2b5e80cb668ccd47fb.camel@gmail.com> References: <87y1geijiu.fsf_-_@gmail.com> ,<45f8d9661e3ed9bcfd7b84df4890f4f1b551e572.camel@gmail.com> <178db70e715f9e3c6a25e42034d90d672e893349.1696761183.git.vivien@planete-kraus.eu> <59169352e8b09119c850fd2b5e80cb668ccd47fb.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66339-done Cc: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Sonntag, dem 08.10.2023 um 16:53 +0200 schrieb Liliana Marie Prikler: > [...] > Otherwise LGTM.=C2=A0 I'd commit it, but my machine is currently busy > building half of core-updates for no reason. No longer busy, time to commit. Thanks From unknown Sun Aug 17 10:17:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Nov 2023 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator