From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#21314: 24.5; Missing documentation for `package-unsigned-archives' variable Date: Fri, 21 Aug 2015 13:12:24 -0300 Message-ID: <877foor57b.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440174565 11711 80.91.229.3 (21 Aug 2015 16:29:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Aug 2015 16:29:25 +0000 (UTC) To: 21314@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 21 18:29:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZSpBo-00061k-OM for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2015 18:29:12 +0200 Original-Received: from localhost ([::1]:42780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpBn-00052M-Mo for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Aug 2015 12:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpBj-00051j-P6 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSpBe-0005fU-M5 for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:29:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpBe-0005fQ-Jy for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZSpBe-0004A9-FD for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Aug 2015 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21314 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144017450115952 (code B ref -1); Fri, 21 Aug 2015 16:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2015 16:28:21 +0000 Original-Received: from localhost ([127.0.0.1]:34703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSpAz-00049D-B0 for submit@debbugs.gnu.org; Fri, 21 Aug 2015 12:28:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55013) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZSpAx-000496-FL for submit@debbugs.gnu.org; Fri, 21 Aug 2015 12:28:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSpAV-00055U-Cz for submit@debbugs.gnu.org; Fri, 21 Aug 2015 12:28:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSpAV-0004Kl-44 for submit@debbugs.gnu.org; Fri, 21 Aug 2015 12:27:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSovg-0003Lq-3O for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:12:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSovb-0005c9-TX for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:12:32 -0400 Original-Received: from mail-ig0-x22f.google.com ([2607:f8b0:4001:c05::22f]:34535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSovb-0005bG-PF for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2015 12:12:27 -0400 Original-Received: by igui7 with SMTP id i7so21259111igu.1 for ; Fri, 21 Aug 2015 09:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=mLA4y4JDaybTTp/pd7XHrOrNZGVD5XGa4Uu5+td8kac=; b=noRvPOgnceNkzcVsF2QtjKl8TVYYOAtRp3Jh+Ua1bIk5tvlp4AfP3tACaw5rKowLeI IFTeiI+/KUMkQbhRNbsZ3ppfFiuB+QFHPs+pIvy+6EcVd/bBo0CzduLgA1DssTwKFDaq hrLxIK51GPUd7t9sErh9O9UyB3tS7Ed9dj1JtRiCN7QPCJntpfZXXDgZ2DBIBRw1hmm2 I4NTrDU9oycYAaA1UtMC5ju6Lh+PW2tKL0jRkjTX4OX6HCUPNQtnck5G0arxfHqSTeWw OgW9jc1XYWYVgYF+aI73kMTXEEOb7HA+pH6zSrNL1YGQjMadzxvJqSVsvKPLFYehiTBZ FACQ== X-Received: by 10.50.138.232 with SMTP id qt8mr3568392igb.21.1440173546636; Fri, 21 Aug 2015 09:12:26 -0700 (PDT) Original-Received: from moondust.localdomain.nodomain.none (hlfxns0163w-142177116113.pppoe-dynamic.High-Speed.ns.bellaliant.net. [142.177.116.113]) by smtp.gmail.com with ESMTPSA id o66sm6288759ioo.5.2015.08.21.09.12.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Aug 2015 09:12:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105675 Archived-At: The functionality in package.el has been working well for me with Gnu ELPA for some time. My configuration was this: (package-initialize) (setq package-check-signature t) I decided to try out navi-mode from Melpa Stable. Following the instructions at Melpa [1], my configuration became: (package-initialize) (setq package-check-signature t) (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) However, Melpa Stable does not appear to be a signed archive. (No mention of signing is made on the Melpa site, as far as I could see.) M-x list-packages RET with this configuration gives the rather uninformative error message: Failed to download `melpa-stable' archive. (Perhaps this error message could be more detailed?) Setting debug-on-error, I see this: Debugger entered--Lisp error: (error "Unsigned archive `melpa-stable'") signal(error ("Unsigned archive `melpa-stable'")) error("Unsigned archive `%s'" "melpa-stable") package--download-one-archive(("melpa-stable" . "https://stable.melpa= .org/packages/") "archive-contents") As a workaround, I tried: (package-initialize) (setq package-check-signature nil) (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) This _does_ work, but I don't want to turn off the checking of signatures for all archives. In (info "(emacs) Package Installation"), I read: If you use some archives that do not sign their packages, you can add them to the list =E2=80=98package-unsigned-archives=E2=80=99. This sounds promising, but it is the only mention of `package-unsigned-archives' in the manual. (At least, there is just the one entry in the index.) And the docstring only says: List of archives where we do not check for package signatures. The documentation fails to describe what representation of the archive must be added to this list. Just its name? It's URL? A symbol representing the archive? A reference to some object representing the archive? I tried the following: (package-initialize) (setq package-check-signature t) (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t) (add-to-list 'package-unsigned-archives '"melpa-stable") And also: (add-to-list 'package-unsigned-archives '("melpa-stable")) (setq package-unsigned-archives (quote ("melpa-stable"))) But in all three cases, I get the same error as I do when I don't try to set this variable. FWIW I also get the error with Emacs -Q: $ emacs -Q M-x package-initialize RET M-: (setq package-check-signature t) RET M-: (add-to-list 'package-archives '("melpa-stable" . "http://stable.me= lpa.org/packages/") t) RET M-: (add-to-list 'package-unsigned-archives '"melpa-stable") RET M-: (setq debug-on-error t) RET M-x list-packages RET Please document the correct way to use the `package-unsigned-archives' variable. Thanks. [1] http://stable.melpa.org/#/getting-started. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.15) of 2015-08-18 on moondust Windowing system distributor `Fedora Project', version 11.0.11603000 System Description: Fedora release 21 (Twenty One) Configured using: `configure --prefix=3D/home/nlj/local/ --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3 -ggdb''