Bug#1138884: dh-elpa: simplify emacs-bundled addon handling
Sean Whitton <[email protected]> Tue, 07 Jul 2026 15:55:55 +0100
| Newsgroups | gmane.linux.debian.devel.emacsen |
|---|---|
| Message-ID | <87h5maonlw.fsf__3955.80918281979$1783436246$gmane$org@melete.silentflame.com> |
Xiyue Deng [02/Jul 6:15pm -07] wrote: > I have identified a case that this dependency handling is required for > correctly byte compiling transitive dependency on packages that need to > be newer than the built-in ones. When working on magit 4.6.0, which > requires transient 0.13 and compat 31.0, both of which are built-in > packages but the version required is higher than the ones bundled in > Emacs 30.2 and hence external newer packages are required. With dh-elpa > 2.1.9, the compilation of magit fails (full log attached). The first few > lines look like below: > > ,---- > | Checking /usr/share/emacs/site-lisp/elpa/magit-4.6.0... > | Compiling /usr/share/emacs/site-lisp/elpa/magit-4.6.0/git-commit.el... > | > | In toplevel form: > | git-commit.el:103:11: Error: Symbol’s function definition is void: static-when > | Compiling /usr/share/emacs/site-lisp/elpa/magit-4.6.0/git-rebase.el... > | > | In toplevel form: > | git-rebase.el:75:11: Error: transient--init-suffix-key is already defined as something else than a generic function > | ... > `---- > > This strongly suggests that the bundled older version of compat is > in-use which does not provide `static-when' yet. > > Initially I suspected that the command to do the byte compiling may be > at fault, more specifically the use of "--quick" may cause it to ignore > the external packages, but ruled it out after some experiments. I have > confirmed that using dh-elpa with the simplified dependency handling > magit 4.6.0 will succeed to byte compile. > > It would be good to have this reviewed and approved soon. Maybe we can > make an experimental upload soonish for testing? I'm not sure where it is. Could you just post patches? -- Sean Whitton
signature.asc
(application/pgp-signature, 869 B)
-----BEGIN PGP SIGNATURE----- iQJNBAEBCgA3FiEEm5FwB64DDjbk/CSLaVt65L8GYkAFAmpNE3sZHHNwd2hpdHRv bkBzcHdoaXR0b24ubmFtZQAKCRBpW3rkvwZiQGBEEACC17Z6+GEvPzctT7R8+Pn1 R2jrv7MHBvXiQO/IDkCRN7arp4Z3wvUK4+wu8tRwZuqH0wQ7incC3naoEaHM0gOD 0oLs7f4wVS3vC6pX6pOgs/sqRgFHmwxxO+Xf+qZnXCXeOPY2DG1Z+B+TVdU+OMUX mGf8g7rQ9HQrpcwxI8T8hU9wGWJlYU+a9r8csnOroEFFT+ClLOJMCA/L81efgMSk eTJ4kXP1xXM7dz9KiNMfI4vCwAZi1KRmhPbq51vzml8DP+EyC4Rz5doRdEFyYuXm Wi5EqIK8N/khZC2FmIWdMKBADtBnDTZpSwYF88OmASA9DYmu3gXMwVj9nEDDP1od k0u/HaYEwtR81ZvtIBzz0pXARbAGfFJgtaFUlrJYN8CBQZEmif6ba54tA+ADkzB9 Fk7CIp5Khy8Sbxa9CKhPzIgE1QmBQpI5DuxjVPLzhXblx2IV5+bJkaZtypczTFK/ 4P6Tnr9flgcy6RlUqSunFUuycvZ5xlh+YgQ4CZAwD1eHup3R1PDnfYwf/kNS4RvA mvd5OPdbNL8cddTAQqXc45h6hUZ9Z3CQRlZSX74OBstVSgBYXsdHNmOmf7/VlJMr hek84vsI9mCr/OP3soLsgmGbEYaKJ22x3UrHf9+JOOcXiIihOVBIBcOdaP8lqJXK RP4P9Q0cuwEga6qBdv3Z3Q== =X8zw -----END PGP SIGNATURE-----