Re: emacs 1:30.1+1-5~bpo12+1 should conflict with: elpa-eglot, elpa-project (?)

Xiyue Deng <[email protected]> Tue, 24 Jun 2025 16:46:14 -0700
Newsgroups gmane.linux.debian.backports.general
Message-ID <[email protected]>
Sean Whitton <[email protected]> writes:

> Hello,
>
> On Sat 21 Jun 2025 at 05:36pm +02, Micha Lenk wrote:
>
>> Hi Sean,
>>
>>
>>
>> Am 20. Juni 2025 18:08:31 MESZ schrieb Stefano Zacchiroli <[email protected]>:
>>>Heya, after upgrading (a while ago) to the Emacs backported version in
>>>subject, I've faced a number of issues with IDE-like features, which
>>>took me a while to understand and fix. The symptom was eglot failing to
>>>start (due to undefined variables). The fix was to remove the separate
>>>packages elpa-eglot and elpa-project, making happy their now integrated
>>>counterparts in Emacs core. I haven't investigated this any deeper than
>>>this, but I thoughts you might want to hear about this and consider the
>>>adding an explicit Conflict from Emacs to these two packages (at least),
>>>to avoid similar issues for other users.
>>
>> In March you helped with backporting dh-elpa, so, do you have by chance some
>> knowledge or advice how to cope with that situation best?
>
> This is a longstanding problem with Emacs addons in Debian.  The
> separately packaged versions always override the ones in Emacs core.
> Our solution for now is just to keep the separately packaged versions
> up-to-date.
>

As we are working on Bug#1103033, I wonder whether it's possible for
Emacs to replace those eternal packages if the built-in packages are of
higher versions.

I wonder whether it's doable by using provides/breaks/replaces.  Take
eglot as an example: currently bookworm has 1.9-2.  Say if Emacs has the
following:

,----
| Provides: elpa-eglot (= 1.15)
| Breaks: elpa-eglot (<< 1.15)  # Or maybe Conflicts?
| Replaces: elpa-eglot (<< 1.15)
`----

it would hopefully uninstall elpa-eglot 1.9-2 from bookworm when
upgrading Emacs.

> -- 
> Sean Whitton

-- 
Regards,
Xiyue Deng
signature.asc (application/pgp-signature, 857 B)
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmhbOMYSHG1hbnBoaXpA
Z21haWwuY29tAAoJEC3pZe1jglyTn4sP/0vmtLpXS42qUVLXrJLIJIjGWk3hiE4U
2PLvTYKCQqxx895MPNj1Y1fmqwztsFNvYLiVQSPS/F0RjCy+/wYgxiosRLyTW7Nr
4oEuR1jQiy5P20vTLLVZKpilG1JDKHFBAI7NpHbpyJ0MM89BYD5tSduxMDSbmxaS
8yxygV+zmjTDY3frRYTEbFvc7EhiPvUV5jx/i27Jul+vLt3LIlNAzKjLJpf49/bG
qXjGW16fKMmRRfiu64vacyJjJK4X8TzogPF2hGP3tabYYs5Vqrc9T2CMiNjwji0N
Kn6ghKAGxPC+nlSdeeSeNQ3oo+uUnLDdKE4EZB3EGA/idFeo+aQqWfB4H5+65xZZ
8Sks6DfO99NddYbDSlcUSwncN6ZGblpGGB47RQ2GLSB2zi5ZnBUN+it2znegp01V
ircc5BIbeUgerqdTX0+CL5Nm0IkNaA4PBQ+TXnhTXwaQbF7x5isNODC5oM056/LO
c75RvkNGI/eAmSo3VXooLBcKy4mQIFBS1M4qXIXQfA1f4aJBZpCCiyy79VhPSpE0
oAQCV3RjcJWGChUKQR02H8NTyRwqu6CLUED/22w80ozRBOPdxzo66Zr5aSkWTMJe
IGYxKUY4tSJOmMInYAK4gT4t588MXXNyAwjN+2cI0cBq51UJGGFD6rz90UlkOKvV
TWwzgoqrPHj1
=58RX
-----END PGP SIGNATURE-----