* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
@ 2018-05-02 2:33 Eric Hanchrow
2018-05-02 14:52 ` Eli Zaretskii
2019-09-15 1:06 ` Stefan Kangas
0 siblings, 2 replies; 8+ messages in thread
From: Eric Hanchrow @ 2018-05-02 2:33 UTC (permalink / raw)
To: 31339
I typed "M-x package-list-packages", and saw complaints about ...
Opening TLS connection to ‘melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile
/etc/pki/tls/certs/ca-bundle.crt -p 443 melpa.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile
/etc/pki/tls/certs/ca-bundle.crt -p 443 melpa.org --protocols ssl3’...failed
Opening TLS connection with ‘openssl s_client -connect melpa.org:443
-CAfile /etc/pki/tls/certs/ca-bundle.crt -no_ssl2 -ign_eof’...failed
Opening TLS connection to ‘melpa.org’...failed
Package refresh done
Failed to download ‘melpa’ archive.
I eventually realized that the problem was simply due to my not having a
gnutls-cli executable! But it took me longer to realize that than it
should have. OK, I confess; it took me _two years_ to realize that
(seriously). I'd just assumed that the problem was some subtle certificate
mismatch or something that I'd never understand, and I put up with it.
Would it be possible to emit a message describing _why_ gnutls-cli failed?
In GNU Emacs 25.3.50.1 (x86_64-unknown-linux-gnu)
of 2018-01-26 built on dev-dsk-erichan-2b-i-833ca944.us-west-2.amazon.com
Repository revision: 79bbd51b1893b65626aeffb13ce1784906fc642d
Configured using:
'configure --without-x'
Configured features:
JPEG SOUND GPM NOTIFY LIBSELINUX LIBXML2 ZLIB
Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Messages
Minor modes in effect:
which-function-mode: t
projectile-mode: t
magit-auto-revert-mode: t
global-git-commit-mode: t
async-bytecomp-package-mode: t
global-hl-line-mode: t
savehist-mode: t
global-flycheck-mode: t
pyvenv-mode: t
shell-dirtrack-mode: t
global-auto-revert-mode: t
recentf-mode: t
ido-everywhere: t
diff-auto-refine-mode: t
erc-list-mode: t
erc-menu-mode: t
erc-autojoin-mode: t
erc-ring-mode: t
erc-networks-mode: t
erc-pcomplete-mode: t
erc-track-mode: t
erc-match-mode: t
erc-button-mode: t
erc-fill-mode: t
erc-stamp-mode: t
erc-netsplit-mode: t
erc-irccontrols-mode: t
erc-noncommands-mode: t
erc-move-to-prompt-mode: t
erc-readonly-mode: t
override-global-mode: t
tooltip-mode: t
global-eldoc-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent messages:
reference to free variable ‘Opening’
Mark set [2 times]
Auto-saving...done
Mark set [3 times]
C-M-y is undefined
Mark set [2 times]
Saving file /local/home/erichan/homedir/.emacs.d/init.el...
Wrote /local/home/erichan/homedir/.emacs.d/init.el
No obsolete buffers; did nothing.
No projects needed to be removed.
Load-path shadows:
/home/erichan/.emacs.d/elpa/let-alist-1.0.5/let-alist hides
/home/erichan/git-repositories/3rd-party/emacs/lisp/emacs-lisp/let-alist
Features:
(shadow sort mail-extr emacsbug view rect align eieio-opt speedbar
sb-image ezimage dframe apropos conf-mode perl-mode bug-reference
magit-imenu which-func ruler-mode fringe scroll-bar company-oddmuse
company-keywords company-etags company-gtags company-dabbrev-code
company-files company-cmake company-xcode company-clang company-eclim
company-css company-nxml company-bbdb yasnippet find-dired
twb-find-dired wdired magit-extras flyspell markdown-mode noutline
outline dabbrev image vc vc-dispatcher misearch multi-isearch sh-script
smie executable tabify imenu man projectile ert ewoc debug jka-compr
git-rebase ediff-merg ediff-wind ediff-diff ediff-mult ediff-help
ediff-init ediff-util ediff magit-bookmark magit-obsolete magit-blame
magit-stash magit-bisect magit-remote magit-commit epa magit-sequence
magit-notes magit-worktree magit-tag magit-merge magit-branch
magit-reset magit-collab ghub let-alist magit-files magit-refs
magit-status magit magit-repos magit-apply magit-wip magit-log
magit-diff smerge-mode magit-core magit-autorevert magit-process
magit-margin magit-mode git-commit magit-git magit-section magit-utils
crm magit-popup log-edit pcvs-util add-log with-editor async-bytecomp
term disp-table ehelp server smtpmail sendmail dired-aux async tempo
ispell company-dabbrev company-template color tar-mode autoload lisp-mnt
mm-archive message rfc822 mml mml-sec mailabbrev gmm-utils mailheader
mm-decode mm-bodies mm-encode url-handlers network-stream nsm starttls
url-http mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-cache
url-auth epg term/xterm xterm hl-line savehist work-log-mode flycheck
elisp-slime-nav bookmark edit-list highlight-indentation flymake company
elpy find-file-in-project ivy delsel ivy-overlay ffap windmove pyvenv
esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups
eshell esh-module esh-mode esh-util elpy-shell elpy-profile elpy-django
s elpy-refactor python tramp-sh tramp tramp-compat tramp-loaddefs
trampver ucs-normalize shell json map files-x etags xref project
cus-edit cus-start cus-load browse-kill-ring advice eww mm-url gnus
gnus-ems nnheader mail-utils url-queue url url-proxy url-privacy
url-expand url-methods url-history url-cookie url-domsuf url-util
url-parse url-vars mailcap shr dom browse-url ws-butler warnings
dired-subtree dired-hacks-utils dash wat derived autorevert filenotify
recentf tree-widget ido vc-git diff-mode ibuf-ext ibuffer ibuf-macs
dired-x dired grep compile find-func rotate cl face-remap edmacro kmacro
tls gnutls erc-list erc-menu erc-join erc-ring erc-networks
erc-pcomplete pcomplete comint ansi-color ring erc-track erc-match
erc-button wid-edit erc-fill erc-stamp erc-netsplit erc-goodies erc
erc-backend erc-compat format-spec auth-source cl-seq eieio eieio-core
gnus-util time-date mm-util help-fns mail-prsvr password-cache thingatpt
pp use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key cl-macs easy-mmode
use-package-core regexp-opt subr-x finder-inf info tool-bar package
epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode
easymenu cconv cl-loaddefs pcase cl-lib rx mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list
newcomment elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu
font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
charscript case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp
files text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote inotify multi-tty
make-network-process emacs)
Memory information:
((conses 16 1591445 212915)
(symbols 48 64477 1)
(miscs 40 8675 3312)
(strings 32 234194 47131)
(string-bytes 1 7941405)
(vectors 16 91893)
(vector-slots 8 2065070 95757)
(floats 8 841 5025)
(intervals 56 136277 5394)
(buffers 976 362)
(heap 1024 85439 6462))
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
2018-05-02 2:33 bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing Eric Hanchrow
@ 2018-05-02 14:52 ` Eli Zaretskii
2018-05-02 22:12 ` Glenn Morris
2019-09-15 1:06 ` Stefan Kangas
1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2018-05-02 14:52 UTC (permalink / raw)
To: Eric Hanchrow; +Cc: 31339
> From: Eric Hanchrow <eric.hanchrow@gmail.com>
> Date: Wed, 02 May 2018 02:33:39 +0000
>
> I typed "M-x package-list-packages", and saw complaints about ...
>
> Opening TLS connection to ‘melpa.org’...
> Opening TLS connection with ‘gnutls-cli --x509cafile
> /etc/pki/tls/certs/ca-bundle.crt -p 443 melpa.org’...failed
> Opening TLS connection with ‘gnutls-cli --x509cafile
> /etc/pki/tls/certs/ca-bundle.crt -p 443 melpa.org --protocols ssl3’...failed
> Opening TLS connection with ‘openssl s_client -connect melpa.org:443
> -CAfile /etc/pki/tls/certs/ca-bundle.crt -no_ssl2 -ign_eof’...failed
> Opening TLS connection to ‘melpa.org’...failed
> Package refresh done
> Failed to download ‘melpa’ archive.
>
> I eventually realized that the problem was simply due to my not having a
> gnutls-cli executable! But it took me longer to realize that than it
> should have. OK, I confess; it took me _two years_ to realize that
> (seriously). I'd just assumed that the problem was some subtle certificate
> mismatch or something that I'd never understand, and I put up with it.
>
> Would it be possible to emit a message describing _why_ gnutls-cli failed?
Actually, we deprecated tls.el and gnutls-cli, and we now ask users to
build Emacs with the GnuTLS library, which enables these features
internally. I don't think investing efforts in improving a deprecated
feature would be a good investment of our resources.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
2018-05-02 14:52 ` Eli Zaretskii
@ 2018-05-02 22:12 ` Glenn Morris
2019-05-13 19:38 ` Lars Ingebrigtsen
0 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2018-05-02 22:12 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 31339, Eric Hanchrow
Eli Zaretskii wrote:
> Actually, we deprecated tls.el and gnutls-cli, and we now ask users to
> build Emacs with the GnuTLS library, which enables these features
> internally.
I'm aware that configure now complains if libgnutls is not found.
What was done to deprecate tls.el, which is eg still not marked obsolete?
Were any of the proposals in
http://lists.gnu.org/r/emacs-devel/2016-07/msg00227.html
enacted? Eg it still seems to use ssl3.
Does an end-user who does not compile Emacs themselves receive any
notification about avoiding tls.el?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
2018-05-02 22:12 ` Glenn Morris
@ 2019-05-13 19:38 ` Lars Ingebrigtsen
2019-05-13 20:00 ` Glenn Morris
2019-05-13 20:02 ` npostavs
0 siblings, 2 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2019-05-13 19:38 UTC (permalink / raw)
To: Glenn Morris; +Cc: 31339, Eric Hanchrow
Glenn Morris <rgm@gnu.org> writes:
> Does an end-user who does not compile Emacs themselves receive any
> notification about avoiding tls.el?
Hm... It's in lisp/obsolete. Does Emacs have a general method to warn
about requiring files in that directory?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
2019-05-13 19:38 ` Lars Ingebrigtsen
@ 2019-05-13 20:00 ` Glenn Morris
2019-05-13 20:11 ` Lars Ingebrigtsen
2019-05-13 20:02 ` npostavs
1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2019-05-13 20:00 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 31339, Eric Hanchrow
Lars Ingebrigtsen wrote:
> Glenn Morris <rgm@gnu.org> writes:
>
>> Does an end-user who does not compile Emacs themselves receive any
>> notification about avoiding tls.el?
>
> Hm... It's in lisp/obsolete. Does Emacs have a general method to warn
> about requiring files in that directory?
Yes.
But the comment you are replying to predates tls.el being in lisp/obsolete.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
2019-05-13 19:38 ` Lars Ingebrigtsen
2019-05-13 20:00 ` Glenn Morris
@ 2019-05-13 20:02 ` npostavs
1 sibling, 0 replies; 8+ messages in thread
From: npostavs @ 2019-05-13 20:02 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 31339, Eric Hanchrow
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Glenn Morris <rgm@gnu.org> writes:
>
>> Does an end-user who does not compile Emacs themselves receive any
>> notification about avoiding tls.el?
>
> Hm... It's in lisp/obsolete.
Note: it wasn't when Glenn posted that. See Bug#31457 "27.0.50; Move
starttls.el and tls.el to lisp/obsolete/".
> Does Emacs have a general method to warn
> about requiring files in that directory?
Emacs does warn about requiring files from obsolete. Users loading
tls.el will now get this in *Messages*:
Package tls is obsolete!
It's not super visible though, opening a connection with tls.el produces
several other messages too, so it looks something like this:
Opening TLS connection to ‘example.com’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 example.com’...
Package tls is obsolete!
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 example.com’...done
Opening TLS connection to ‘example.com’...done
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing
2018-05-02 2:33 bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing Eric Hanchrow
2018-05-02 14:52 ` Eli Zaretskii
@ 2019-09-15 1:06 ` Stefan Kangas
1 sibling, 0 replies; 8+ messages in thread
From: Stefan Kangas @ 2019-09-15 1:06 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 31339, Eric Hanchrow
tags 31339 + wontfix
close 31339
quit
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Glenn Morris <rgm@gnu.org> writes:
>
>> Yes.
>> But the comment you are replying to predates tls.el being in lisp/obsolete.
>
> Ah, OK. But then perhaps this bug report can be closed now if that
> warning is sufficient?
Agreed, and --
Eli Zaretskii <eliz@gnu.org> writes:
> Actually, we deprecated tls.el and gnutls-cli, and we now ask users to
> build Emacs with the GnuTLS library, which enables these features
> internally. I don't think investing efforts in improving a deprecated
> feature would be a good investment of our resources.
So I'm closing this as wontfix.
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-09-15 1:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-02 2:33 bug#31339: 25.3.50; package-list-packages does not provide useful error when gnutls-cli is missing Eric Hanchrow
2018-05-02 14:52 ` Eli Zaretskii
2018-05-02 22:12 ` Glenn Morris
2019-05-13 19:38 ` Lars Ingebrigtsen
2019-05-13 20:00 ` Glenn Morris
2019-05-13 20:11 ` Lars Ingebrigtsen
2019-05-13 20:02 ` npostavs
2019-09-15 1:06 ` Stefan Kangas
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).