Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 76065) by debbugs.gnu.org; 6 Feb 2025 16:07:47 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 06 11:07:47 2025 Received: from localhost ([127.0.0.1]:59169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tg4Pr-0005zL-B1 for submit <at> debbugs.gnu.org; Thu, 06 Feb 2025 11:07:47 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:59599) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <pkryger@HIDDEN>) id 1tg4Po-0005z3-Hh for 76065 <at> debbugs.gnu.org; Thu, 06 Feb 2025 11:07:46 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-436202dd730so7761935e9.2 for <76065 <at> debbugs.gnu.org>; Thu, 06 Feb 2025 08:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738858058; x=1739462858; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=aP77Sz/hWEpDYo/3Hn3tcGJojoD8boz9IYki3HBcNRY=; b=Pabl4jielVHMlw8+5jWNR4wGuwCqN5raqj8EaDDnxiGhf9A8T73Lx/ztv9AjY4XGaZ Oq3XgyewnoIDXK15x6cEkqsz6C+RSZo8OIJFuM4SQyVl/rdtJ3QjWZRnpwEv2mLCqglV zD1aZqR/06Nu++D3uT4qvZWSQV9046HL2Oj4vho0beHAF+Vt8tXUVQ3TK6iBxcMgWDpD 0ji4sn7B9LXvAJqWbtqVHoQOJyRgING4CSutYHxUtGSk5Qb25dpwX+x3pxN3lTKtsnKE 49001SxcmOLojV1gfHbJN0oN4dwE6XagrCpSNokcoBVDcemHTwQ6B9JljigUe7TfQks3 UVxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738858058; x=1739462858; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aP77Sz/hWEpDYo/3Hn3tcGJojoD8boz9IYki3HBcNRY=; b=LceceKujLYAiZVygWBgJa0udgRKBKrDhMOF3o1Qftt5Q/SiVYysCAlnHPtvqRiA35B Eo9EVaVZMiyyW4uv3B4YszyZmYC86J9zkrPPHEwPNaLlVjQLeqUYRcMlMwaAYHuowTUG pz4+tiuw4Eyxa7UONhUHeMnzQYZas/gLy8tMnaq4rZJkbtXO+TQNRgZXDLa1D3gPrpi/ YYhA28Er8cgcPITt6J63iiLBye0DwOgWsR9vql87MwHbse3/nNyxZs26EnQEbasW9aDD 9fES1ahUfL/2kAvb1pmdrmitAjQ4vgn9it/XTNo509DzwuUYWkfeXhGTpvJWaQjO2jpQ GAvA== X-Gm-Message-State: AOJu0YxXdYB/3JTZEHzhBlHPDP7RU7uBg7NvPmd/RcSMWZ/5NFhug0BB Uyey2Sx96shcRSI+fc9k7mwThuNhOL5a3LmLBCGhVL/JyN8vfODiC8lzog== X-Gm-Gg: ASbGncs6xWhN1ZZKlMm7Jl8KrublAAh+KCGj9aiNbkDPq5piSy0wdtWP3lQHlAEZ2zH fbQ+xudvdhRPm8YhVlEZYMW6b/FZt4VJNtCKsEKlPJryy31nBFKeqFDQ5CdLFomsjcBVepqgvAm rVqwM1Co0nEO/OXa4Zb4vdedZ5xK349IrLBWYW2aczOlQl6TVo6WagJbOdC5yilv2LxtuiiEWqV 1JRnoLBo0wNiKogNphMAstSBLxmwqWwgXJ71Iy3JAy1L9l7N1iFwJpXgvE9Z5VrUD6gKmJhSQaa B0ZjQdvuFOgJdjFD+i6Y44mTXjTqxxhSWjBL1wKfNsJESkxbNp7bSfWMvg== X-Google-Smtp-Source: AGHT+IG+33aiY0LqslORFUYdMErk3qMUHcM6qbDo5dFyiMLSMl63khlBLCtw0nbhXauXRKPm9QLqsw== X-Received: by 2002:a5d:6489:0:b0:385:f6c7:90c6 with SMTP id ffacd0b85a97d-38db4874759mr5356350f8f.20.1738858057363; Thu, 06 Feb 2025 08:07:37 -0800 (PST) Received: from Przemyslaws-MacBook-Air.local ([2a00:23c4:f513:d201:a90d:a547:884c:58ec]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dbde1dcddsm2059739f8f.82.2025.02.06.08.07.36 for <76065 <at> debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2025 08:07:36 -0800 (PST) From: =?utf-8?Q?Przemys=C5=82aw_Kryger?= <pkryger@HIDDEN> To: 76065 <at> debbugs.gnu.org Subject: 31.0.50; When package is installed with 'package-vc-install' it has default summary Date: Thu, 06 Feb 2025 16:07:32 +0000 Message-ID: <m2ed0buke3.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76065 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) For what it's worth, I can force VC installed packages descriptions to be generated with the following workaround: (defun pk/package-vc-erase-summary (args) "Set summary slot in (car ARGS) to nil." (when-let* ((pkg-desc (car args)) ((package-desc-p pkg-desc)) ((equal package--default-summary (oref pkg-desc summary)))) (oset pkg-desc summary nil)) args) (with-eval-after-load 'package-vc (advice-add 'package-vc--generate-description-file :filter-args #'pk/package-vc-erase-summary))
bug-gnu-emacs@HIDDEN
:bug#76065
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 5 Feb 2025 01:48:53 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 04 20:48:53 2025 Received: from localhost ([127.0.0.1]:47356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tfUX6-0007Vp-FG for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 20:48:53 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36522) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <pkryger@HIDDEN>) id 1tfNe6-0004Hp-PB for submit <at> debbugs.gnu.org; Tue, 04 Feb 2025 13:27:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pkryger@HIDDEN>) id 1tfNdu-0007Bc-TG for bug-gnu-emacs@HIDDEN; Tue, 04 Feb 2025 13:27:28 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <pkryger@HIDDEN>) id 1tfNds-0003VK-BI for bug-gnu-emacs@HIDDEN; Tue, 04 Feb 2025 13:27:26 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-436202dd7f6so68660545e9.0 for <bug-gnu-emacs@HIDDEN>; Tue, 04 Feb 2025 10:27:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738693641; x=1739298441; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=8a89jER879RjSBJ4OBi4Es5MDqGeyCEYU4do4msStZs=; b=aQ+JJVNjo43fkWAVZWlfxMM5Nk8etSl6JiLlx8TpkbeFYsuYufM4qz6xzqGqeGhcYu 9Rg7UI96x+R0KYPyA3EdkVeTGIClFMUnOsPG2RglVV9QL2IpfRXhZ11RBltAYRgV/7Ur C0j647iJ78Eh8f1BggnwmWcOsI4DPW4FLhfd7Pmc5EwbVOxihutaDUETCbJhbEXsBL9c pcIgM7EtO1/IWcG/+6efedVmY14CcafFTSXWKNqdJm35cb24axoWQG/EUSgjXOAMYQ41 +SLNO9AtwFWbKNeKPtMFbAO9ExwedMtaFZRToTFCD2kHOuAWmq3UhZbKbRtXrM5I/Jg+ hg9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738693641; x=1739298441; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8a89jER879RjSBJ4OBi4Es5MDqGeyCEYU4do4msStZs=; b=kEdvY2xQDBTR3gH1RaGninw/aZV/v/S7aIWuTfTZR0OfXN0WCBCtc947r8Ie/NOmON slBFNJdn93L9wB0xPN7h3G9MV9FL/hR7nodeElqNV1ktFDBdzP+Wcz6XDPdAZtkyrlmh K00FOniIhNTX5JpfqmRDaI07orHWVggIwoGT8PdOd3u4stfVt9V/CtwiCep9QjrRpWAf 22ETd48jYWAelL+WyBt/u9+S2bfpPrc4WAhYnglpK/wKDn8k3RpibPzzTZ/D1o/FbX37 4+a0pnAziAWhPNN5Wiw3JA38jqqo7xN4RYQa47LxLlp3Oxkhyv31KXmHAk9H7G2lM/+B 4o5A== X-Gm-Message-State: AOJu0YwxjETPR0cZz92Zu/zxDqEQynCFaU8Ee745cmtu+ag/4KtUavx9 7pB9/qOM4HJIlXfPzPWWd79sQhSj0jXcf9nnv7axP3MHOhZNpsGYLJ445A== X-Gm-Gg: ASbGncs/zs/s5PeRal1HDEr7HJL2pERYeOqSAju1XZJFvhozfQbLElBD46V8KYWC9l4 WdZ95X093gehBsNwjEHJt+m/CTG5lN4ksrvsAErYGFBYd8scoWTXNCE6OHj+8C10F2pWSX75BKR GE9tDX1eY5mUUpw3CDxkqjQY0TmafdFtqQUAZskiTSMgsKsNHeLAiSd454pAnR291/eepgbitAh QeYAXIAxZ5BtjQjnxCqfylxeyDCEv/Yr4CUeuOfx8BsXFPJolwKYJSlv1H3BM31SLnH/bGWt6NR 7msGIEwwAiMgpC+gA9KmOiDarvOv/7iX5Do2Pm/208H11IzO75AHEpzCS7YlFfXwgQ0bvUTVEw= = X-Google-Smtp-Source: AGHT+IFKn7G2DyOCv1rskXqRI1IUZMybUoS9o5z1VmqQ7HO55VEGmFB+ih/2ISdSFFla3CPiZ5VasQ== X-Received: by 2002:a05:600c:470c:b0:434:fddf:5bfa with SMTP id 5b1f17b1804b1-438dc3bb395mr236893565e9.2.1738693641075; Tue, 04 Feb 2025 10:27:21 -0800 (PST) Received: from 9cd00ae34454 (host31-52-96-183.range31-52.btcentralplus.com. [31.52.96.183]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38db1923d3dsm869725f8f.80.2025.02.04.10.27.20 for <bug-gnu-emacs@HIDDEN> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Feb 2025 10:27:20 -0800 (PST) From: Przemyslaw Kryger <pkryger@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; When package is installed with 'package-vc-install' it has default summary X-Debbugs-Cc: Date: Tue, 04 Feb 2025 18:27:19 +0000 Message-ID: <34gt4lbs.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=pkryger@HIDDEN; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 04 Feb 2025 20:48:50 -0500 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) --=-=-= Content-Type: text/plain On a freshly installed Emacs (no user configuration whatsoever): 1. 'emacs -Q' 2. Install a package providing package name and spec by evaling the followinw in '*scratch*' (using 'ace-window' for the sake of arguments): (package-vc-install (cons 'ace-window (list :url "https://github.com/abo-abo/ace-window.git"))) 3. Eval the following to get the package summary: (package-desc-summary (cadr (assq 'ace-window package-alist))) ;; "No description available." 4. Eval the following to get the contents of generated 'ace-window-pkg.el' file: (with-temp-buffer (insert-file-contents (expand-file-name "ace-window-pkg.el" (package-desc-dir (cadr (assq 'ace-window package-alist))))) (goto-char (point-min)) (read (current-buffer))) ;; (define-package "ace-window" "0.10.0" "No description available." '((avy "0.5.0")) :kind vc :commit "77115afc1b0b9f633084cf7479c767988106c196") The function 'package-vc-install-from-checkout' is affected as well, again starting with a freshly installed Emacs with no configuration: 1. 'cd ~' 2. 'git clone https://github.com/abo-abo/ace-window.git' 3. 'emacs -Q' 4. Eval the following (package-vc-install-from-checkout "~/ace-window" "ace-window") 5. Eval the following to get the package summary: (package-desc-summary (cadr (assq 'ace-window package-alist))) ;; "No description available." 5. Eval the following to get the contents of generated 'ace-window-pkg.el' file: (with-temp-buffer (insert-file-contents (expand-file-name "ace-window-pkg.el" "~")) (goto-char (point-min)) (read (current-buffer))) ;; (define-package "ace-window" "0.10.0" "No description available." '((avy "0.5.0")) :kind vc :commit "77115afc1b0b9f633084cf7479c767988106c196") I can reproduce the same behaviour on Emacs 29.4 Mac port as well. I think the issue stems from how function 'package-vc--generate-description-file' detects that it needs to generate a new description (as opposed to re-using the one in passed argument PGK-DESC). I have applied the attached patch and after installing the package (either with 'package-vc-install' or with 'package-vc-install-from-checkout') I can see description being properly generated. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-summary-in-packages-installed-with-package-vc-fu.patch From af4a5cf3ef576d2acf5efc53dd563664c3c23869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Kryger?= <pkryger@HIDDEN> Date: Tue, 4 Feb 2025 18:18:06 +0000 Subject: [PATCH] Fix summary in packages installed with package-vc functions * emacs-list/package-vc.el: (package-vc--generate-description-file): Use `package--default-summary` to determine when a summary for a newly installed package should be generated. --- lisp/emacs-lisp/package-vc.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index a18841fb64d..ec8418faf69 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -272,10 +272,14 @@ asynchronously." "Generate a package description file for PKG-DESC and write it to PKG-FILE." (let ((name (package-desc-name pkg-desc))) ;; Infer the subject if missing. - (unless (package-desc-summary pkg-desc) + (when (or (null (package-desc-summary pkg-desc)) + (equal (package-desc-summary pkg-desc) + package--default-summary)) (setf (package-desc-summary pkg-desc) (let ((main-file (package-vc--main-file pkg-desc))) - (or (package-desc-summary pkg-desc) + (or (and-let* ((summary (package-desc-summary pkg-desc)) + ((not (equal summary package--default-summary)))) + summary) (and-let* ((pkg (cadr (assq name package-archive-contents)))) (package-desc-summary pkg)) (and main-file (file-exists-p main-file) -- 2.47.1 --=-=-= Content-Type: text/plain Emacs didn't crash. In GNU Emacs 31.0.50 (build 1, aarch64-unknown-linux-gnu) System Description: Debian GNU/Linux 12 (bookworm) Configured using: 'configure --prefix=/nix/store/4jhcb89gfm6if89074lcha3zb04gibgx-emacs-snapshot --disable-build-details --with-modules --with-x=no --with-ns=no --with-xpm=no --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no' Configured features: GMP GNUTLS LIBXML2 MODULES NOTIFY INOTIFY PDUMPER SECCOMP SOUND SQLITE3 THREADS TREE_SITTER Important settings: locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: xterm-mouse-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (cus-edit cus-start cus-load wid-edit rfc2104 cl-extra gnutls network-stream nsm mailalias smtpmail textsec uni-scripts url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs icons json map url-vars idna-mapping ucs-normalize uni-confusable textsec-check thingatpt ispell rx help-mode tool-bar pp shadow regexp-opt sort mail-extr emacsbug message mailcap yank-media puny dired dnd dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils xt-mouse term/xterm xterm byte-opt gv bytecomp byte-compile disp-table rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 abbrev obarray oclosure cl-preloaded button loaddefs theme-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 inotify multi-tty make-network-process tty-child-frames emacs) Memory information: ((conses 16 200474 35320) (symbols 48 9592 2) (strings 32 37755 1150) (string-bytes 1 686599) (vectors 16 35572) (vector-slots 8 415602 35621) (floats 8 46 280) (intervals 56 455 24) (buffers 992 14)) --=-=-=--
Przemyslaw Kryger <pkryger@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#76065
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.