From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Nicodemus Newsgroups: gmane.emacs.bugs Subject: bug#73110: 29.4; emacs.service failed with result 'timeout' Date: Sun, 13 Oct 2024 11:43:06 -0400 Message-ID: References: <86zfojwe6k.fsf@gnu.org> <670bae7e.a70a0220.3720fa.5d6fSMTPIN_ADDED_BROKEN@mx.google.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000332aa306245d94a2" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 73110@debbugs.gnu.org To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 13 17:45:16 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t00mR-0000Tm-Mf for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Oct 2024 17:45:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t00m0-00005I-Ap; Sun, 13 Oct 2024 11:44:48 -0400 Original-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 1t00ly-000059-JG for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 11:44:46 -0400 Original-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 1t00ly-0001ql-Au for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 11:44:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=JRwULUBUZwQ0hYandxMKzVPBlSI8JC6MU3mC8SNH4lg=; b=l0FdqSkn5xTO1TGFZT0QxX1l4W/WNxtAuz/3tDce7MX4gFjWMZdyproRWN/Ypk7QFmrEjnz4N4xNu3gMbO9JqbzLKGmZBEd3XDuEFsqexE4UnAFiJ0zTf46fmRWLCGyEHrxlTsTZEeXvH9tDSCZ2IjIwRpG2ZEvam5Jmu8cyJ/wNgsYuCdmglZ/6sAa33pQN4L2dbS6pUgniZ8RJujXwmsSCUCW9YSkj3ob1DtnvalTy1ZoIUwXmIrJ17kvcKx3ZMHYzTWfPa6zrqFdOOvgDknGfk1uQSgQ1PG0ix2u9PFSIVSZRKpfMsB+DwsTwjZfPGpTtMv1RYuxR3hJQ5iLO6w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t00mD-0001hx-SQ for bug-gnu-emacs@gnu.org; Sun, 13 Oct 2024 11:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Patrick Nicodemus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Oct 2024 15:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73110 X-GNU-PR-Package: emacs Original-Received: via spool by 73110-submit@debbugs.gnu.org id=B73110.17288342776510 (code B ref 73110); Sun, 13 Oct 2024 15:45:01 +0000 Original-Received: (at 73110) by debbugs.gnu.org; 13 Oct 2024 15:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:52129 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t00lo-0001gv-AA for submit@debbugs.gnu.org; Sun, 13 Oct 2024 11:44:36 -0400 Original-Received: from mail-vs1-f53.google.com ([209.85.217.53]:53316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t00ll-0001gn-JQ for 73110@debbugs.gnu.org; Sun, 13 Oct 2024 11:44:34 -0400 Original-Received: by mail-vs1-f53.google.com with SMTP id ada2fe7eead31-4a4864b8f98so94859137.2 for <73110@debbugs.gnu.org>; Sun, 13 Oct 2024 08:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728834197; x=1729438997; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JRwULUBUZwQ0hYandxMKzVPBlSI8JC6MU3mC8SNH4lg=; b=lu3Cx0aQ7G2i9J2gg05ev3inT7zog/MzxWTWUjuGeNAJLrhPCJcvT49fBnN54wqUOJ y36NKQkZUbneasOo/UiDWNgKq614+tuiXTOJOBsnSiaUIGUAABUSdb/kmv1ETFDIjcZ/ nfIZEuc+uJf3iXuZPEw9HQatO7PfusMeZuQm3VJkgfI0UP0yqslClwxBKz3Uvmi0lBJ3 51LSy9CztCCopnybofHnsCR5/uwIG5jlWiZNKEzEm407xY58PNeKWFdL89iGDoCK5FPK Rp/r3JY/UgwS2uF3CTCEnVRh5NiqfUfFj0AwO7htIzPb55qyyUaXI6WFBY/9Zx5V8Kq3 aFsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728834197; x=1729438997; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JRwULUBUZwQ0hYandxMKzVPBlSI8JC6MU3mC8SNH4lg=; b=dWO/wA9chTPS62u7vzHUTQl/pwad95UEvHdKvBu3MNU1q1KgV/2VWqTj4GIkAwx55K ydreKUbJ5Z4jS/qZ/EKLTy8P1g/O3hNeWyzGP7K2f8t1oTDQR/UPt3hCWuoiaXzCidn1 y7eaXyupFtvVZviUDDQfAc/9onZxMeFj0bVOjrcE+sMXotFiWCCFXG8+cCcmMc+SxPJY 743rCESnYauOYpACPW8pJB5XcUUJjnth7Y4vYB+xTELfUToB+JwaSOOELXBHW/rt9xwl /ZRLE4ajyEV8t90OkIJSHPTfyS2sHAkmaZj8Kow6v4WxHGv8qnoPWKKUi6SGTJR8YSAS mpYg== X-Forwarded-Encrypted: i=1; AJvYcCXkg4WvZzkanOMIHkVR9G5XHs7XNLIyJ3+OaY5Ozq0tisafA3scagvuPjIhK87OB/O0JXpRiA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw1xSF0hFuZufpkzSt8AxvyokncDYvbOXhmLvFnj7/Y2chGNz9D hF5hnUSBgOAFunhoJBza6AR90Xrk3/5n4gj1CVzVO+xRJlW2EOWnBb/1EAWQB9Ohh9UuKgveSTr 9fGbXXm39H/OinQrxzJsF4HBrreQ= X-Google-Smtp-Source: AGHT+IHxbMsOgywzuxTcMMW48nnGMRr7RkanJXblFTNU22qAv4iobtOH1IcRilLrXPpkUmLkT3N8Mzj4YmfFLLPzN78= X-Received: by 2002:a05:6102:3e92:b0:4a3:db6a:dbbf with SMTP id ada2fe7eead31-4a475f5bbd1mr3235463137.14.1728834197201; Sun, 13 Oct 2024 08:43:17 -0700 (PDT) In-Reply-To: <670bae7e.a70a0220.3720fa.5d6fSMTPIN_ADDED_BROKEN@mx.google.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293530 Archived-At: --000000000000332aa306245d94a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Neither Eli or I proposed supporting this use case (using systemd as a service without compiling with support for libsystemd) I think it's perfectly valid to ask the user to compile Emacs with libsystemd support for this to work. Thus, this is a documentation bug. Systemd is able to manage many programs on my computer without them being compiled with a special support for libsystemd, so I do not expect to require a special additional library to get Emacs to work if the documentation does not mention it. Chapter 40 of the manual does not indicate that running Emacs as a server is special non-core functionality, therefore as a user I assume that if this functionality is not working then it is broken, not that I misconfigured it at compile time. If this is supposed to be core functionality then the build should fail loudly if the dependencies are not found at compile time unless the user supplies the --without-libsystemd flag. Compare the chapter on images which warns the reader that external libraries must be available: https://www.gnu.org/software/emacs/manual/html_node/elisp/Image-Formats.htm= l Compare the chapter on tree sitter which alerts the reader that support for tree sitter must be compiled in: https://www.gnu.org/software/emacs//manual/html_node/elisp/Parsing-Program-= Source.html On Sun, Oct 13, 2024, 7:26=E2=80=AFAM Bj=C3=B6rn Bidar wrote: > Eli Zaretskii writes: > > >> From: Patrick Nicodemus > >> Date: Sat, 7 Sep 2024 13:22:30 -0400 > >> > >> I want to run Emacs as a service and connect to it with a client. I > >> followed the instructions here: > >> > >> > https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.ht= ml > >> > >> and ran the command > >> systemctl --user enable emacs > >> > >> This apparently creates a file at > >> ~/.config/systemd/user/default.target.wants/emacs.service > >> For some reason emacs is not successfully communicating to systemd tha= t > >> it has launched successfully, and so systemd terminates emacs. > > > > According to this: > > > >> Configured features: > >> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ > >> IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP > >> NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIF= F > >> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB > > > > your Emacs is built without libsystemd support, which I think is > > required for this to work? Or maybe I'm missing something. > > I don't know exactly if libsystemd is required for the service to work, > I think it shouldn't however, but why? > Why would use the systemd user service but also not built with > libsystemd? > Even if there's something wrong why support such as usecase? > --000000000000332aa306245d94a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Neither Eli or I proposed supporting this = use case (using systemd as a service without compiling with support for lib= systemd)
I think it's perfectly valid to ask the user to compile Emacs with libs= ystemd support for this to work. Thus, this is a documentation bug.

Systemd is able to manage many programs on my computer witho= ut them being compiled with a special support for libsystemd, so I do not e= xpect to require a special additional library to get Emacs to work if the d= ocumentation does not mention it.=C2=A0

Chapter 40 of the= manual does not indicate that running Emacs as a server is special non-cor= e functionality, therefore as a user I assume that if this functionality is= not working then it is broken, not that I misconfigured it at compile time= . If this is supposed to be core functionality then the build should fail l= oudly if the dependencies are not found at compile time unless the user sup= plies the --without-libsystemd flag.

Compare the chapter = on images which warns the reader that external libraries must be available:=

https://www.gnu.org/software/emacs/manual/= html_node/elisp/Image-Formats.html

Compare the chapte= r on tree sitter which alerts the reader that support for tree sitter must = be compiled in:

https://www.gnu.o= rg/software/emacs//manual/html_node/elisp/Parsing-Program-Source.html


On Sun, Oct 13, 2024, 7:26=E2=80=AFAM Bj=C3=B6rn Bidar <bjorn.bidar@thaodan.de> wrote:
=
Eli Zaretskii <eliz@gnu.org> writes:

>> From: Patrick Nicodemus <gadget142@gmail.com>
>> Date: Sat, 7 Sep 2024 13:22:30 -0400
>>
>> I want to run Emacs as a service and connect to it with a client. = I
>> followed the instructions here:
>>
>> https= ://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html<= br> >>
>> and ran the command
>> systemctl --user enable emacs
>>
>> This apparently creates a file at
>> ~/.config/systemd/user/default.target.wants/emacs.service
>> For some reason emacs is not successfully communicating to systemd= that
>> it has launched successfully, and so systemd terminates emacs.
>
> According to this:
>
>> Configured features:
>> ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ
>> IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP=
>> NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS= TIFF
>> TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB
>
> your Emacs is built without libsystemd support, which I think is
> required for this to work?=C2=A0 Or maybe I'm missing something.
I don't know exactly if libsystemd is required for the service to work,=
I think it shouldn't however, but why?
Why would use the systemd user service but also not built with
libsystemd?
Even if there's something wrong why support such as usecase?
--000000000000332aa306245d94a2--