GNU bug report logs -
#68761
[PATCH] Record dependencies in packages installed via package-vc
Previous Next
Reported by: Steven Allen <steven <at> stebalien.com>
Date: Sat, 27 Jan 2024 16:23:01 UTC
Severity: normal
Tags: patch
Done: Philip Kaludercic <philipk <at> posteo.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68761 in the body.
You can then email your comments to 68761 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Sat, 27 Jan 2024 16:23:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Steven Allen <steven <at> stebalien.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 27 Jan 2024 16:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The dependency list wasn't getting recorded in the package's `-pkg.el` file.
[Message part 2 (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Tue, 06 Feb 2024 20:06:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 68761 <at> debbugs.gnu.org (full text, mbox):
Steven Allen <steven <at> stebalien.com> writes:
> The dependency list wasn't getting recorded in the package's `-pkg.el` file.
Did you notice this because of some bug or what is the motivation for
this change? I'll certainly look into it, I just wanted some context.
>>From edc9f75958d5feb2a82c53879e9dde4c51921bb6 Mon Sep 17 00:00:00 2001
> From: Steven Allen <steven <at> stebalien.com>
> Date: Sat, 27 Jan 2024 08:17:08 -0800
> Subject: [PATCH] Record dependencies in packages installed via package-vc
>
> * lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Record a
> package's declared dependencies in the package's metadata ("-pkg.el").
> ---
> lisp/emacs-lisp/package-vc.el | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
> index db0cc515e46..fc402716dab 100644
> --- a/lisp/emacs-lisp/package-vc.el
> +++ b/lisp/emacs-lisp/package-vc.el
> @@ -532,6 +532,7 @@ package-vc--unpack-1
> (setq deps))))))
> (dolist (dep deps)
> (cl-callf version-to-list (cadr dep)))
> + (setf (package-desc-reqs pkg-desc) deps)
> (setf missing (package-vc-install-dependencies (delete-dups deps)))
> (setf missing (delq (assq (package-desc-name pkg-desc)
> missing)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Tue, 06 Feb 2024 20:16:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 68761 <at> debbugs.gnu.org (full text, mbox):
>> The dependency list wasn't getting recorded in the package's `-pkg.el` file.
>
> Did you notice this because of some bug or what is the motivation for
> this change? I'll certainly look into it, I just wanted some context.
I noticed this because I tried to remove "unused" dependencies
(package-autoremove) and ended up removing dependencies from my
package-vc packages.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Wed, 07 Feb 2024 07:19:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 68761 <at> debbugs.gnu.org (full text, mbox):
Steven Allen <steven <at> stebalien.com> writes:
>>> The dependency list wasn't getting recorded in the package's `-pkg.el` file.
>>
>> Did you notice this because of some bug or what is the motivation for
>> this change? I'll certainly look into it, I just wanted some context.
>
> I noticed this because I tried to remove "unused" dependencies
> (package-autoremove) and ended up removing dependencies from my
> package-vc packages.
That doesn't sound good. Your patch should resolve the issue, and I
would be inclined to propose applying it to the Emacs 29 branch, if the
maintainers don't object.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Wed, 07 Feb 2024 12:59:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 68761 <at> debbugs.gnu.org (full text, mbox):
> Cc: 68761 <at> debbugs.gnu.org
> From: Philip Kaludercic <philipk <at> posteo.net>
> Date: Wed, 07 Feb 2024 07:18:33 +0000
>
> Steven Allen <steven <at> stebalien.com> writes:
>
> >>> The dependency list wasn't getting recorded in the package's `-pkg.el` file.
> >>
> >> Did you notice this because of some bug or what is the motivation for
> >> this change? I'll certainly look into it, I just wanted some context.
> >
> > I noticed this because I tried to remove "unused" dependencies
> > (package-autoremove) and ended up removing dependencies from my
> > package-vc packages.
>
> That doesn't sound good. Your patch should resolve the issue, and I
> would be inclined to propose applying it to the Emacs 29 branch, if the
> maintainers don't object.
How serious is the problem? Since it's unlikely there will be any
more Emacs 29.x releases, except if we have some emergency, we should
try to keep the release branch as safe and undiverged from 29.2 as
possible.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Wed, 07 Feb 2024 17:09:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 68761 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Cc: 68761 <at> debbugs.gnu.org
>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Date: Wed, 07 Feb 2024 07:18:33 +0000
>>
>> Steven Allen <steven <at> stebalien.com> writes:
>>
>> >>> The dependency list wasn't getting recorded in the package's `-pkg.el` file.
>> >>
>> >> Did you notice this because of some bug or what is the motivation for
>> >> this change? I'll certainly look into it, I just wanted some context.
>> >
>> > I noticed this because I tried to remove "unused" dependencies
>> > (package-autoremove) and ended up removing dependencies from my
>> > package-vc packages.
>>
>> That doesn't sound good. Your patch should resolve the issue, and I
>> would be inclined to propose applying it to the Emacs 29 branch, if the
>> maintainers don't object.
>
> How serious is the problem? Since it's unlikely there will be any
> more Emacs 29.x releases, except if we have some emergency, we should
> try to keep the release branch as safe and undiverged from 29.2 as
> possible.
I wouldn't clarify it as an emergency, at most a regrettable
inconvenience.
Just to avoid confusion: What branch is the current release branch then?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Wed, 07 Feb 2024 17:20:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 68761 <at> debbugs.gnu.org (full text, mbox):
> From: Philip Kaludercic <philipk <at> posteo.net>
> Cc: steven <at> stebalien.com, 68761 <at> debbugs.gnu.org
> Date: Wed, 07 Feb 2024 17:07:43 +0000
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Cc: 68761 <at> debbugs.gnu.org
> >> From: Philip Kaludercic <philipk <at> posteo.net>
> >> Date: Wed, 07 Feb 2024 07:18:33 +0000
> >>
> >> Steven Allen <steven <at> stebalien.com> writes:
> >>
> >> >>> The dependency list wasn't getting recorded in the package's `-pkg.el` file.
> >> >>
> >> >> Did you notice this because of some bug or what is the motivation for
> >> >> this change? I'll certainly look into it, I just wanted some context.
> >> >
> >> > I noticed this because I tried to remove "unused" dependencies
> >> > (package-autoremove) and ended up removing dependencies from my
> >> > package-vc packages.
> >>
> >> That doesn't sound good. Your patch should resolve the issue, and I
> >> would be inclined to propose applying it to the Emacs 29 branch, if the
> >> maintainers don't object.
> >
> > How serious is the problem? Since it's unlikely there will be any
> > more Emacs 29.x releases, except if we have some emergency, we should
> > try to keep the release branch as safe and undiverged from 29.2 as
> > possible.
>
> I wouldn't clarify it as an emergency, at most a regrettable
> inconvenience.
Then I tend to think this should be installed on master.
> Just to avoid confusion: What branch is the current release branch then?
It's still emacs-29. When we start the release cycle of Emacs 30.1,
we will cut the emacs-30 branch.
The release branch is not closed to fixes, it just should receive only
very safe ones (like documentation fixes), or very urgent/serious
ones.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#68761
; Package
emacs
.
(Wed, 07 Feb 2024 18:43:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 68761 <at> debbugs.gnu.org (full text, mbox):
>> I wouldn't clarify it as an emergency, at most a regrettable
>> inconvenience.
>
> Then I tend to think this should be installed on master.
I agree. Users will only run into it if they:
1. Use `package-vc` (very new and has quite a few sharp edges).
2. Use the "package-autoremove" feature.
Given that nobody else has reported this, it's probably not causing too
many issues.
Reply sent
to
Philip Kaludercic <philipk <at> posteo.net>
:
You have taken responsibility.
(Sat, 10 Feb 2024 16:05:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Steven Allen <steven <at> stebalien.com>
:
bug acknowledged by developer.
(Sat, 10 Feb 2024 16:05:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 68761-done <at> debbugs.gnu.org (full text, mbox):
Steven Allen <steven <at> stebalien.com> writes:
>>> I wouldn't clarify it as an emergency, at most a regrettable
>>> inconvenience.
>>
>> Then I tend to think this should be installed on master.
>
> I agree. Users will only run into it if they:
>
> 1. Use `package-vc` (very new and has quite a few sharp edges).
> 2. Use the "package-autoremove" feature.
>
> Given that nobody else has reported this, it's probably not causing too
> many issues.
OK, I have applied the branch to master.
Thanks!
--
Philip Kaludercic
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 10 Mar 2024 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.