From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:58127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hE8qt-0004HD-9z for guix-patches@gnu.org; Wed, 10 Apr 2019 04:45:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hE8qs-0002il-1d for guix-patches@gnu.org; Wed, 10 Apr 2019 04:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hE8qr-0002ie-Q0 for guix-patches@gnu.org; Wed, 10 Apr 2019 04:45:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hE8qr-0003Sw-Mp for guix-patches@gnu.org; Wed, 10 Apr 2019 04:45:01 -0400 Subject: [bug#34971] [PATCH] gnu: Add mako. Resent-Message-ID: References: <20190324060845.7921-1-meiyo@riseup.net> <87o960dbdk.fsf@riseup.net> <871s2vxmpf.fsf@gnu.org> <87bm1y9apy.fsf@riseup.net> <87k1gbrs9u.fsf@gnu.org> From: Meiyo Peng In-reply-to: <87k1gbrs9u.fsf@gnu.org> Date: Wed, 10 Apr 2019 16:44:21 +0800 Message-ID: <87r2aauu56.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 34971@debbugs.gnu.org Hi Ludovic, Ludovic Court=C3=A8s writes: > Meiyo Peng skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Meiyo Peng skribis: >>> >>>> If you have trouble running mako and mako gives you an error message >>>> like: >>>> >>>> #+begin_example >>>> Failed to connect to user bus: No such file or directory >>>> #+end_example >>> >>> I would expect Mako to automatically spawn the D-Bus user bus if it=E2= =80=99s >>> not already needed, no? We don=E2=80=99t need to do anything special w= ith other >>> D-Bus applications AFAIK. >> >> Yeah. I expect that too. I am not sure why mako is so special. mako >> uses the sd-bus library of systemd/elogind instead of libdbus. Do you >> think that could be the cause? > > Could you check with =E2=80=98strace=E2=80=99 whether it tries to connect= to > /run/dbus/system_bus_socket instead of /var/run/dbus/system_bus_socket? I get this output from `strace mako`: #+begin_example ... socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) =3D 3 getsockopt(3, SOL_SOCKET, SO_RCVBUF, [212992], [4]) =3D 0 setsockopt(3, SOL_SOCKET, SO_RCVBUF, [8388608], 4) =3D 0 getsockopt(3, SOL_SOCKET, SO_SNDBUF, [212992], [4]) =3D 0 setsockopt(3, SOL_SOCKET, SO_SNDBUF, [8388608], 4) =3D 0 connect(3, {sa_family=3DAF_UNIX, sun_path=3D"/run/user/1000/bus"}, 21) = =3D -1 ENOENT (No such file or directory) close(3) =3D 0 write(2, "Failed to connect to user bus: N"..., 57Failed to connect to us= er bus: No such file or directory ) =3D 57 exit_group(1) =3D ? +++ exited with 1 +++ #+end_example It tries to connect to /run/user/1000/bus. And that error message is from https://github.com/emersion/mako/blob/master/dbus/dbus.c: #+begin_src c ret =3D sd_bus_open_user(&state->bus); if (ret < 0) { fprintf(stderr, "Failed to connect to user bus: %s\n", strerror(-ret)= ); goto error; } #+end_src -- Meiyo Peng https://www.pengmeiyu.com/