NetBSD Problem Report #56916

From www@netbsd.org  Fri Jul  8 09:37:54 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 231B41A921F
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  8 Jul 2022 09:37:54 +0000 (UTC)
Message-Id: <20220708093753.3219D1A9239@mollari.NetBSD.org>
Date: Fri,  8 Jul 2022 09:37:53 +0000 (UTC)
From: mydeardiary@sdf.org
Reply-To: mydeardiary@sdf.org
To: gnats-bugs@NetBSD.org
Subject: emacs-nox11: missing gnutls
X-Send-Pr-Version: www-1.0

>Number:         56916
>Category:       pkg
>Synopsis:       emacs-nox11: missing gnutls
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 08 09:40:00 +0000 2022
>Closed-Date:    
>Last-Modified:  Wed Jul 13 21:47:43 +0000 2022
>Originator:     My Dear Diary
>Release:        9.1
>Organization:
SDF Users
>Environment:
NetBSD faeroes 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64 x86_64 Intel 686-class NetBSD
>Description:
gnutls is an optional component which makes connecting to the www easier.

The nox11 variant is lacking gnutls support, so packages depending on gnutls such as elpher for gemini:// url support are not working.

>How-To-Repeat:
1. emacs-nox11 variant is installed
2. launch emacs
3. press M-: (meta+semicolon), type `(gnutls-avaiable-p)`
4. notice `nil` on the status bar.

>Fix:
Add libgnutls as dependency for emacs-nox11, i.e. --without-all --with-gnutls during configure

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: gdt@NetBSD.org
State-Changed-When: Fri, 08 Jul 2022 11:59:09 +0000
State-Changed-Why:
Asked for more information


 We have in effect, perhaps not intentionally, dealt with the
 combination of some people wanting TLS to work and minimalism (some
 use emacs-nox11 on low-resource machines to edit config files) by not
 depending on gnutls, but letting people also install it.  I use
 emacs/gnus to read mail, which is IMAP and thus of course IMAPS,
 within emacsNN-nox11.  With gnutls installed this works fine.

 So please explain:

  - Specifically which package are you talking about?  We have 21 and
    25-28.

  - What happens if you install emacs as is, and then install gnutls.
    Is anything worse than when you added a DEPENDS?

  - What does emacs documentation say about gnutls being a run-time
    requirement for TLS vs. being a build-time requirement.

 As things stand I am opposed to adding gnutls to emacs packages as a
 dependency.


From: My Dear Diary <mydeardiary@sdf.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/56916 (emacs-nox11: missing gnutls)
Date: Mon, 11 Jul 2022 06:29:18 +0000

 On Fri, Jul 08, 2022 at 11:59:09AM +0000, gdt@NetBSD.org wrote:
 > Synopsis: emacs-nox11: missing gnutls
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: gdt@NetBSD.org
 > State-Changed-When: Fri, 08 Jul 2022 11:59:09 +0000
 > State-Changed-Why:
 > Asked for more information
 > 
 > 
 > 

 Currently running into issue with emacs-27.1 with elpher from melpa
 repository.

 Some emacs packages are fine with setting tls-program, in which `openssl`
 and `gnutls-cli` can act as proxy to provide tls connection. An example
 is `erc` which is able to establish encrypted irc connections without
 the need of linking emacs with gnutls.

 Other emacs package such as elpher relies on the availability of gnutls
 within emacs, i.e. linked with gnutls during compilation. Elpher will
 throw an error opening gemini:// url if emacs is not linked with gnutls.

 ```
 gemini://sdf.org/ [TLS encryption]

 ---- ERROR -----

 When attempting to retrieve gemini://sdf.org/:
 Use of TLS requires Emacs to be compiled with GNU TLS support

 ----------------

 Press 'u' to return to the previous page.

 ```

 I suggest that the nox11 variant is linked against most libraries except
 x11 related libraries (gtk3, etc), so what a user expects from emacs is
 available, such as installing packages from MELPA, running eww, and so
 many things. The main selling point of emacs is it is an os with lisp
 programming built-in and the text editor function comes second.

 For those with low-end system, there are small emacs clone such as mg,
 zile, and uemacs. If this is not an option, I suggest another package,
 i.e. emacs-minimal that comes with all optional components disabled
 during build.

State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 13 Jul 2022 21:45:17 +0000
State-Changed-Why:
feedback received.

IMO, if you have a system small enough that installing gnutls is a problem,
you should stick to emacs20 or emacs21.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.