GNU bug report logs - #78222
package-vc-from-checkout generates incorrect package summaries

Previous Next

Package: emacs;

Reported by: JD Smith <jdtsmith <at> gmail.com>

Date: Sat, 3 May 2025 00:18:02 UTC

Severity: normal

To reply to this bug, email your comments to 78222 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78222; Package emacs. (Sat, 03 May 2025 00:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to JD Smith <jdtsmith <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 03 May 2025 00:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: JD Smith <jdtsmith <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: package-vc-from-checkout generates incorrect package summaries
Date: Fri, 2 May 2025 20:16:52 -0400
`package-vc-install-from-checkout' fails to generate correct package summaries in the package files it generates, always using "No description available."  

The issue is as follows:

    • `package-vc-install-from-checkout' uses `package-desc-create' to create a description structure based on the directory name of the installed package.
    • This constructor includes a default `summary' slot of `package--default-summary' ("No description available.")
    • During unpacking, `package-vc--generate-description-file' is called with this pre-populated description structure.
    • It notices the existence of the (default) `package-desc-summary', and simply skips reading the main package file to derive the summary from its header line.

The solution may be to alter the test logic in  `package-vc--generate-description-file', or let-bind `package--default-summary=nil' during structure creation.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78222; Package emacs. (Sat, 10 May 2025 10:32:02 GMT) Full text and rfc822 format available.

Message #8 received at 78222 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: JD Smith <jdtsmith <at> gmail.com>, Philip Kaludercic <philipk <at> posteo.net>
Cc: 78222 <at> debbugs.gnu.org
Subject: Re: bug#78222: package-vc-from-checkout generates incorrect package
 summaries
Date: Sat, 10 May 2025 13:30:39 +0300
> From: JD Smith <jdtsmith <at> gmail.com>
> Date: Fri, 2 May 2025 20:16:52 -0400
> 
> `package-vc-install-from-checkout' fails to generate correct package summaries in the package files it generates, always using "No description available."  
> 
> The issue is as follows:
> 
>     • `package-vc-install-from-checkout' uses `package-desc-create' to create a description structure based on the directory name of the installed package.
>     • This constructor includes a default `summary' slot of `package--default-summary' ("No description available.")
>     • During unpacking, `package-vc--generate-description-file' is called with this pre-populated description structure.
>     • It notices the existence of the (default) `package-desc-summary', and simply skips reading the main package file to derive the summary from its header line.
> 
> The solution may be to alter the test logic in  `package-vc--generate-description-file', or let-bind `package--default-summary=nil' during structure creation.

Philip, any comments or suggestions?




This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.