From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 25 12:39:19 2022 Received: (at submit) by debbugs.gnu.org; 25 Jan 2022 17:39:20 +0000 Received: from localhost ([127.0.0.1]:49967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCPmp-0002LZ-88 for submit@debbugs.gnu.org; Tue, 25 Jan 2022 12:39:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:34514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCPmj-0002LE-U3 for submit@debbugs.gnu.org; Tue, 25 Jan 2022 12:39:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCPmj-0000fx-DY for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 12:39:13 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53185) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCPmg-0000np-E9 for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 12:39:13 -0500 Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id DD894E0009 for ; Tue, 25 Jan 2022 17:39:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1643132343; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=Jfe0eY5oAV2tEVlCLMkyL7A3JPkuiI5xI6XXhcvXCes=; b=bQ3gUSuqDnh8G7dwQ56hEHphWPkJ1gTTuUSVLW1GbM0X7OaAetnnNz1GpR/UJgWWUUqJ44 F4u4754n+h9ULuLCBE8IBabGFvnetsv+FTXm3e4OPZH4HIgbtMRmrgj0Z9r5eQ5iXr10Ny +e1fgDOZ4rllEB4FsG9l74o6AXwIFEEVsM1gqPPyAjv9dLMh03YXJqXidX7EwtYeFTKUZx gnXWUIoOgoGuCMMxLrRBBy+x5UN5STyVmpgdFmVMO+o3AGaCGPcQOMu/VuHnWa3vrlayWp d4ziI54SAwG8EGhDVksOr16Es4R5PvJr+hNoEmDYrYg2RO7yt8hKeyb8eGeKHA== Received: from matt by naz with local (Exim 4.95) (envelope-from ) id 1nCPmV-000CTy-At for bug-gnu-emacs@gnu.org; Tue, 25 Jan 2022 09:38:59 -0800 From: Matt Armstrong To: bug-gnu-emacs@gnu.org Subject: 29.0.50; package-reinstall fails to initialize (enough of) package.el Date: Tue, 25 Jan 2022 09:38:54 -0800 Message-ID: <87zgnjzpe9.fsf@rfc20.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.196; envelope-from=matt@rfc20.org; helo=relay4-d.mail.gandi.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LONGWORDS=2.035, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.8 (/) The `package-reinstall' function is broken when called before package.el is initialized, or more precisely, before `package-load-all-descriptors' has been called. It looks like most of the other top level functions in package.el attempt to handle this case, and do it successfully. I had trouble formulating an emacs -Q repro because Emacs must be in a "quick start" state, which requires installation of at least one package and then restarting Emacs. I could not figure out how to do that simply and hermetically without a lot of infrastructure (like a separate user on a Linux system, or a VM, or https://github.com/plexus/chemacs2). Stefan's commit dde33727b2ace3ce417d97475d074f0a82b7c2b8 on 2019-01-22 introduced this function and called it in several places but not `package-reinstall'. +(defun package--alist () + "Return `package-alist', after computing it if needed." + (or package-alist + (progn (package-load-all-descriptors) + package-alist))) I found this bug after removing a long standing call to `package-initialize` from my init.el, then calling this function of mine: (defun my-reinstall-packages () "Re-install all Emacs packages that are installed presently." (interactive) (dolist (package-name package-activated-list) (message (format "Reinstalling %s" package-name)) (package-reinstall package-name))) I confirmed this bug is in Emacs 27 through master. In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-01-13 built on naz Repository revision: 53dba3202205b5fab078a47da77be4140b7f93b1 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: bug-reference-prog-mode: t global-git-commit-mode: t magit-auto-revert-mode: t auto-revert-mode: t pyvenv-mode: t msb-mode: t display-time-mode: t shell-dirtrack-mode: t auto-insert-mode: t keyfreq-autosave-mode: t keyfreq-mode: t icomplete-mode: t savehist-mode: t vertico-mode: t which-key-mode: t electric-pair-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/env/elisp/ol-notmuch hides /home/matt/.config/emacs/elpa/ol-notmuch-20210530.2054/ol-notmuch /home/matt/.config/emacs/elpa/transient-20220121.1603/transient hides /home/matt/git/emacs-build/lisp/transient Features: (shadow sort mail-extr emacsbug sendmail notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash coolj notmuch-query icalendar diary-lib diary-loaddefs notmuch-tag notmuch-lib notmuch-compat hl-line mm-view mml-smime smime dig goto-addr bug-reference magit-extras magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit log-edit message yank-media rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert autorevert magit-margin magit-transient magit-process with-editor magit-mode transient comp comp-cstr magit-git magit-section meson-mode dabbrev markdown-mode color vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs vc eglot array filenotify jsonrpc ert ewoc debug backtrace tabify imenu dired-aux dired dired-loaddefs mule-util jka-compr magit-utils crm dash copyright sh-script smie executable misearch multi-isearch pylint company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-template company-cmake company-bbdb yasnippet highlight-indentation flymake-proc flymake warnings thingatpt company-capf company pcase help-fns radix-tree elpy elpy-rpc pyvenv eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util elpy-shell elpy-profile elpy-django s elpy-refactor ido grep compile etags fileloop generator xref project cus-edit cus-start cus-load wid-edit make-mode man protbuf cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git diff-mode vc-dispatcher bookmark text-property-search pp face-remap msb time clang-format xml server dirtrack ob-ruby ob-python python tramp-sh tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell parse-time ls-lisp ob-dot org-protocol org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date org-keys oc org-loaddefs find-func cal-menu calendar cal-loaddefs ol-notmuch ol rx org-compat org-macs format-spec skeleton autoinsert advice keyfreq icomplete edmacro kmacro savehist vertico orderless modus-operandi-theme modus-themes which-key cl-extra help-mode elec-pair use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv cl-loaddefs cl-lib info iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 648085 59613) (symbols 48 38951 83) (strings 32 141858 8213) (string-bytes 1 5316259) (vectors 16 70636) (vector-slots 8 1253041 72408) (floats 8 437 990) (intervals 56 21885 480) (buffers 992 61)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 25 14:54:53 2022 Received: (at 53527) by debbugs.gnu.org; 25 Jan 2022 19:54:53 +0000 Received: from localhost ([127.0.0.1]:50217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCRu1-00028K-Gk for submit@debbugs.gnu.org; Tue, 25 Jan 2022 14:54:53 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:57129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCRty-000283-7Z for 53527@debbugs.gnu.org; Tue, 25 Jan 2022 14:54:52 -0500 Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 73DA51C0003 for <53527@debbugs.gnu.org>; Tue, 25 Jan 2022 19:54:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1643140483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=3GgHUcialr50kODk+s+iwt1YaxnTwapMHHZN+JRLoAc=; b=AUE+y026HR1av755thMVHLcBfhjXydwFA7dM2kEvDNu04GqIpbUnUR3ZaVBJLFtjafWkwA gvpZBaajYasF3/Z6JhynLLEwUKDUE8Bu1PoOXkjOmbJtq2RarQ8Wo1VHgKoL2Cu8zXXcOF 8PSwmm+TZ8wRF5JQls9Kl45Ukd73JtyrM49enNB9to9D2CYi17ZPuflploQQ+77VAOdFWu jkVvCTiDyhnuENccYrSRUCbLvhFnQ181aP6WCQpiNNi2YbBcp7wHAIJzaAIfysoUunN4Lt +VAN7JyQGl5x6L39sR9UzvW1BeFCbOyJMjbGyPo7rH9KrIDhSvJgGV4jGnZnhQ== Received: from matt by naz with local (Exim 4.95) (envelope-from ) id 1nCRto-000ESY-9l for 53527@debbugs.gnu.org; Tue, 25 Jan 2022 11:54:40 -0800 From: Matt Armstrong To: 53527@debbugs.gnu.org Subject: Re: bug#53527: 29.0.50; package-reinstall fails to initialize (enough of) package.el In-Reply-To: <87zgnjzpe9.fsf@rfc20.org> References: <87zgnjzpe9.fsf@rfc20.org> Date: Tue, 25 Jan 2022 11:54:40 -0800 Message-ID: <87ee4vr3pb.fsf@rfc20.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53527 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain tags 53527 + patch quit This is one way to fix it. Another would have been to call `package--alist' instead of reference `package-alist' in `package-reinstall'. ...but that wouldn't have been an optimization, since `package-install' inevitably calls `package--archives-initialize' anyway. This patch just makes it happen earlier. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-calling-package-reinstall-just-after-quick-initi.patch Content-Description: Patch to fix Bug#53527 >From fdf15b2985d237a70277362ad0b7d771f20c5f38 Mon Sep 17 00:00:00 2001 From: Matt Armstrong Date: Tue, 25 Jan 2022 11:22:10 -0800 Subject: [PATCH] Fix calling `package-reinstall' just after quick initialization. * lisp/emacs-lisp/package.el (package-reinstall): call `package--archives-initialize', just like `package-install' does. This populates `package-alist', and so fixes calling `package-reinstall' as the first thing done after package "quick init". (Bug#53527) --- lisp/emacs-lisp/package.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 7679ba2fae..6a8692c983 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -2379,10 +2379,14 @@ package-reinstall "Reinstall package PKG. PKG should be either a symbol, the package name, or a `package-desc' object." - (interactive (list (intern (completing-read - "Reinstall package: " - (mapcar #'symbol-name - (mapcar #'car package-alist)))))) + (interactive + (progn + (package--archives-initialize) + (list (intern (completing-read + "Reinstall package: " + (mapcar #'symbol-name + (mapcar #'car package-alist))))))) + (package--archives-initialize) (package-delete (if (package-desc-p pkg) pkg (cadr (assq pkg package-alist))) 'force 'nosave) -- 2.34.1 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 25 15:07:42 2022 Received: (at control) by debbugs.gnu.org; 25 Jan 2022 20:07:42 +0000 Received: from localhost ([127.0.0.1]:50227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCS6Q-0002U3-1h for submit@debbugs.gnu.org; Tue, 25 Jan 2022 15:07:42 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:40683) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCS6N-0002Ti-1U for control@debbugs.gnu.org; Tue, 25 Jan 2022 15:07:41 -0500 Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 5EEAE1C0003 for ; Tue, 25 Jan 2022 20:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1643141252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=QrjMtjN1u3tOVhUNjeuhxGHW8NYGwCQ12VvsU5DeHc4=; b=KY49V5uF7FYjV2n0V6nXNbjeFfFkzJrYa0qwa0FyWht1PsrghqSliQX0ReV6jCG2Z0bAiL MQ189gDYrCzOVoymCp5piBYAIxLhli10MNftGp8dAGDsktMaAeyktZ7ul0cRpOkhAjcNdr YNtfJDw7tLoicXHL/qUMukHXoQF/r08NufUxgO1fpcqvpPiffy945Y2APqQsmJwhFuCVzT oM63aS7Rp/xw7k6tgBdUDcXDr8D0C6e2xScQv8mFIvzS+x8nEDrbKGdg0JhvZoYoKAVS8m p5Dhi0cAt0OWNICXlU+3TyvGuwc8FCHvQJjbbVORDACoCnp+xV31JzRyg8QLCg== Received: from matt by naz with local (Exim 4.95) (envelope-from ) id 1nCS6D-000IDs-Tx for control@debbugs.gnu.org; Tue, 25 Jan 2022 12:07:29 -0800 From: Matt Armstrong To: control@debbugs.gnu.org Subject: control message for bug #53527 Date: Tue, 25 Jan 2022 12:07:29 -0800 Message-ID: <87ilu7tw8u.fsf@rfc20.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) found 53527 28.0 tags 53527 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 08 09:34:00 2022 Received: (at 53527) by debbugs.gnu.org; 8 Sep 2022 13:34:00 +0000 Received: from localhost ([127.0.0.1]:57711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHfL-00009b-RY for submit@debbugs.gnu.org; Thu, 08 Sep 2022 09:34:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHfK-00009L-0z for 53527@debbugs.gnu.org; Thu, 08 Sep 2022 09:33:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=/Ug+jI7wWBbFN+L+1RXVemZiwKAFPLHAhnj4Y/rOULY=; b=NOJ0qnFmPTI38yA5XqZnQzvnSI 1CN1p81laX0hPSuCWmBU/LlGPADMMuJZsFUldGlltyfXtty83mhN+vA3Os2CuzUx8vy/WmAJrpIP0 yBYzn/Z/df6ouNi0DfIEvP3QEQUjKWjt2Ig5xao2J8sNII/Hik2NvUGTlKWFB0xfz0KU=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWHfA-0002v6-PW; Thu, 08 Sep 2022 15:33:51 +0200 From: Lars Ingebrigtsen To: Matt Armstrong Subject: Re: bug#53527: 29.0.50; package-reinstall fails to initialize (enough of) package.el In-Reply-To: <87ee4vr3pb.fsf@rfc20.org> (Matt Armstrong's message of "Tue, 25 Jan 2022 11:54:40 -0800") References: <87zgnjzpe9.fsf@rfc20.org> <87ee4vr3pb.fsf@rfc20.org> X-Now-Playing: Body =?utf-8?Q?Me=CF=80a's?= _The Work Is Slow_: "Money Tree" Date: Thu, 08 Sep 2022 15:33:48 +0200 Message-ID: <87edwm0z43.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Matt Armstrong writes: > * lisp/emacs-lisp/package.el (package-reinstall): call > `package--archives-initialize', just like `package-install' does. > This populates `package-alist', and so fixes calling > `package-reinstall [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53527 Cc: 53527@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Matt Armstrong writes: > * lisp/emacs-lisp/package.el (package-reinstall): call > `package--archives-initialize', just like `package-install' does. > This populates `package-alist', and so fixes calling > `package-reinstall' as the first thing done after package "quick > init". (Bug#53527) It seems like this patch was missed; sorry. The change looks reasonable to me, but just double-checking before applying it -- is it still needed on the current trunk? I vaguely seem to remember there being some other work done in this area recently, but I may well be mistaken. From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 08 09:34:03 2022 Received: (at control) by debbugs.gnu.org; 8 Sep 2022 13:34:03 +0000 Received: from localhost ([127.0.0.1]:57715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHfP-0000A4-58 for submit@debbugs.gnu.org; Thu, 08 Sep 2022 09:34:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWHfO-00009S-6F for control@debbugs.gnu.org; Thu, 08 Sep 2022 09:34:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ytOMRVrSgukmYpTDfk0xzrTgroxz9yllCCELH8JI8cs=; b=UxvxKFdMAv6RlyZA4Dr3LStnBB DLr/s3H4Ucw201R7Ipk0vIPef7wtw22V/tjeBmMVkTx7fTr3+RXeg3VdLSmiOEffOx7O06Qu7zwXi Q5HzS6aA8r5AwpgBD3r4lNmn1Wy8EshxAe8EBskTKtTskhntgIrUuvEugPwUlwbvHfAY=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWHfG-0002vE-En for control@debbugs.gnu.org; Thu, 08 Sep 2022 15:33:56 +0200 Date: Thu, 08 Sep 2022 15:33:54 +0200 Message-Id: <87czc60z3x.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53527 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 53527 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 53527 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 00:31:44 2022 Received: (at 53527) by debbugs.gnu.org; 6 Oct 2022 04:31:44 +0000 Received: from localhost ([127.0.0.1]:58501 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogIXw-00006C-9p for submit@debbugs.gnu.org; Thu, 06 Oct 2022 00:31:44 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:60303) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogIXt-00005x-OK for 53527@debbugs.gnu.org; Thu, 06 Oct 2022 00:31:42 -0400 Received: (Authenticated sender: matt@rfc20.org) by mail.gandi.net (Postfix) with ESMTPSA id 2BAF5E0002; Thu, 6 Oct 2022 04:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rfc20.org; s=gm1; t=1665030695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VqsvF3wquEAFWw0yDipXGmG3znGAwZMpWhwhVxqxr1o=; b=DQRhFr6TZCf31y6ZpeQsjMeOeJoB7/8iTw2+s7pRL/rPWQ4SNgE9mMID5uGF4SmS+1OrWw r9qWQfdusGUQzZHSph4yJdBdee+sIaOw165qVx5b5GORcTRE2MiKD3u5snWUvu17C1TwRg rr37u741NiXXMmyC8GQ5rj7ShV8tyiHfLIh0RzFXZrA/W7ewLp/INCEwjO5y2c5a0LC4FP EdThwqRM+BH6ep8RuH2JcRoHkswJrTEYrwsPb4OGC0WUg8EGT0Anqx1RI/zcd5cok8T3CD yoODhGXgNVW72xV3BSnY+yrqf8reCLGb/YO2a+82b0NchYZ9sqHhfxjRo4dbXg== Received: from matt by naz with local (Exim 4.96) (envelope-from ) id 1ogIXh-002uv7-0R; Wed, 05 Oct 2022 21:31:29 -0700 From: Matt Armstrong To: Lars Ingebrigtsen Subject: Re: bug#53527: 29.0.50; package-reinstall fails to initialize (enough of) package.el In-Reply-To: <87edwm0z43.fsf@gnus.org> References: <87zgnjzpe9.fsf@rfc20.org> <87ee4vr3pb.fsf@rfc20.org> <87edwm0z43.fsf@gnus.org> Date: Wed, 05 Oct 2022 21:31:28 -0700 Message-ID: <87v8oxd13z.fsf@rfc20.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53527 Cc: 53527@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Lars Ingebrigtsen writes: > Matt Armstrong writes: > >> * lisp/emacs-lisp/package.el (package-reinstall): call >> `package--archives-initialize', just like `package-install' does. >> This populates `package-alist', and so fixes calling >> `package-reinstall' as the first thing done after package "quick >> init". (Bug#53527) > > It seems like this patch was missed; sorry. > > The change looks reasonable to me, but just double-checking before > applying it -- is it still needed on the current trunk? I vaguely seem > to remember there being some other work done in this area recently, but > I may well be mistaken. Hey Lars, I just verified that the bug is still there on current master, and that my patch fixes it. Looking at the git log there are a few commits to package.el related to fixes, but none directly related to this issue. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 08:08:53 2022 Received: (at 53527) by debbugs.gnu.org; 6 Oct 2022 12:08:53 +0000 Received: from localhost ([127.0.0.1]:59206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogPgK-0004TZ-VE for submit@debbugs.gnu.org; Thu, 06 Oct 2022 08:08:53 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogPgE-0004TB-RC for 53527@debbugs.gnu.org; Thu, 06 Oct 2022 08:08:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YOJFQm7kSdoqLCoIDx1GZKgtpvZY1cLYtxu4PygYYjg=; b=WEhCcVSQIk3aD0WGsVRGWwCfXL g6BfnjGeExjSMYNbX+/iMoxpWOAWaJ8eQbRqI7nI2tuceRqUqmtbnLy2fYjSz/IZdYjy0/E+shVZf H5G9KHOixHALGy3jRQtx0jHTEAnKdHmaLj9aYiaQsCNJi4GHeyEohTjThlCSZZyrE62U=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogPg5-0002Wu-O2; Thu, 06 Oct 2022 14:08:39 +0200 From: Lars Ingebrigtsen To: Matt Armstrong Subject: Re: bug#53527: 29.0.50; package-reinstall fails to initialize (enough of) package.el In-Reply-To: <87v8oxd13z.fsf@rfc20.org> (Matt Armstrong's message of "Wed, 05 Oct 2022 21:31:28 -0700") References: <87zgnjzpe9.fsf@rfc20.org> <87ee4vr3pb.fsf@rfc20.org> <87edwm0z43.fsf@gnus.org> <87v8oxd13z.fsf@rfc20.org> X-Now-Playing: Alan Vega's _Collision Drive_: "Magdalena 82" Date: Thu, 06 Oct 2022 14:08:37 +0200 Message-ID: <875ygx17ei.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Matt Armstrong writes: > Hey Lars, I just verified that the bug is still there on current master, > and that my patch fixes it. Looking at the git log there are a few > commits to package.el related to fixes, but none direc [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53527 Cc: 53527@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Matt Armstrong writes: > Hey Lars, I just verified that the bug is still there on current master, > and that my patch fixes it. Looking at the git log there are a few > commits to package.el related to fixes, but none directly related to > this issue. Thanks for checking -- I've now pushed your patch to Emacs 29. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 08:09:14 2022 Received: (at control) by debbugs.gnu.org; 6 Oct 2022 12:09:14 +0000 Received: from localhost ([127.0.0.1]:59209 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogPgR-0004Tq-Bz for submit@debbugs.gnu.org; Thu, 06 Oct 2022 08:09:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogPgN-0004TQ-OZ for control@debbugs.gnu.org; Thu, 06 Oct 2022 08:08:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0hV8Q5R1yDSwQd7g1MyFpPlmbS6D4dk5TqNRHDsak7c=; b=NkdaFkqNOMy/p5gOKKrJVi/GI/ NQqio8E8m5k0wu5NLQ8K1v2/9WLJr5BTy3XOa+Cv4XTYERobBSjR3WEQapeKuXo962prQ8NLUcw8G NWvb9TNS63yJay0ypLcu8bsc8pTI88V4NH5wyxUbgp/Q2CmWc54n5TEZ6UYburbOWjyk=; Received: from [84.212.220.105] (helo=downe) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ogPgF-0002X9-WD for control@debbugs.gnu.org; Thu, 06 Oct 2022 14:08:50 +0200 Date: Thu, 06 Oct 2022 14:08:47 +0200 Message-Id: <874jwh17e8.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53527 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 53527 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 53527 29.1 quit From unknown Mon Aug 11 21:12:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Nov 2022 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator