GNU bug report logs -
#78222
package-vc-from-checkout generates incorrect package summaries
Previous Next
Reported by: JD Smith <jdtsmith <at> gmail.com>
Date: Sat, 3 May 2025 00:18:02 UTC
Severity: normal
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
JD Smith <jdtsmith <at> gmail.com> writes:
>> On May 16, 2025, at 11:29 AM, Philip Kaludercic <philipk <at> posteo.net> wrote:
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>>>> 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.
>>>
>>
>> What version of Emacs are you on? Ever since bug#76065 we are testing
>> if the description matches the default description, in which we add a
>> special case for re-checking the package description if the current
>> description matches `package--default-summary'.
>
> I'm on the Emacs-30 branch. I don't see a version number in package-vc.el, but it lists:
>
> ;;; package-vc.el --- Manage packages from VC checkouts -*- lexical-binding: t; -*-
> ;; Copyright (C) 2022-2025 Free Software Foundation, Inc.
>
> Last commit d63b27a416b.
That is enough information, the fix I mentioned was applied onto the
master branch. Do you want to build the master branch yourself and
check if the bug has been resolved, or should we just close the bug
directly as a duplicate?
This bug report was last modified 49 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.