NetBSD Problem Report #56916

From  Fri Jul  8 09:37:54 2022
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 231B41A921F
	for <>; Fri,  8 Jul 2022 09:37:54 +0000 (UTC)
Message-Id: <>
Date: Fri,  8 Jul 2022 09:37:53 +0000 (UTC)
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
>Last-Modified:  Wed Jul 13 21:47:43 +0000 2022
>Originator:     My Dear Diary
>Release:        9.1
SDF Users
NetBSD faeroes 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020 amd64 x86_64 Intel 686-class NetBSD
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.

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.

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



State-Changed-From-To: open->feedback
State-Changed-When: Fri, 08 Jul 2022 11:59:09 +0000
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

  - 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

From: My Dear Diary <>
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, wrote:
 > Synopsis: emacs-nox11: missing gnutls
 > State-Changed-From-To: open->feedback
 > State-Changed-By:
 > 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

 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:// [TLS encryption]

 ---- ERROR -----

 When attempting to retrieve gemini://
 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-When: Wed, 13 Jul 2022 21:45:17 +0000
feedback received.

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


NetBSD Home
NetBSD PR Database Search

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