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

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

> Hello,
>
> On Tue 24 Jun 2025 at 04:46pm -07, Xiyue Deng wrote:
>
>> 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.
>
> Very interesting, something like this might be indeed possible.
>

Locally tested with a custom built Emacs using Provides/Breaks/Replaces
for Bookworm backport to be working: it tries to remove elpa-eglot when
upgrading to the locally built Emacs.

I have updated my branch mentioned in Bug#1103033 accordingly.
Hopefully upstream will accept the new public interfaces soon so that
the branch can be considered to be merged.

> -- 
> Sean Whitton

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

iQJGBAEBCgAwFiEEiKQfd6o81mjI+LWALell7WOCXJMFAmhchg4SHG1hbnBoaXpA
Z21haWwuY29tAAoJEC3pZe1jglyTqYoP/1WBI1pBI2hmVTZjNhQm0xxQ21huCAzH
5OO+gF5DR1KETbrdTlgXGeQB2g5ak32R+Hqz/eP8/RZ6SaTBAxUYXi7gSL+o5mV1
z/zsEY1UUZ37vB94Auys2vhWTwsRSkuA4eXzMmsK7aTVoMEFtw8aDBv614w4GILh
0IUmmuM+b2GHSagfcEFLiqpIxXxfjgqnuYt+OaAOkmLBhJREmjMZt/CsYnH/5gc/
uWu2RtH8qPIMaVwdazSgYrS2eBOWC0bek7WWLR89Bn/9EalsESukPuWbXAUdSI8d
OQFrDKXVotS33+Y/W+wOe6AKi48JqymTVewUwDFeF50n+yWFE7oDDLDZqJfHhXUt
J+tsNg45N9+EGZx4eR/h0rpN2eqx+WVEq1xzwMpYNZxY+vZo+NWwIRxx1PIHJz7v
fqGv6+VFSqASNPg94E/O9dHWav/U8n6h2kgpi2VqFnp/cB8imCsuIrlrp2WGWu+R
1AKPEvhmjFck+9r4sJtdwI7LChD7hN3PGmJEQZp9yq9bphdg6vnIo7PZxsaXvb9W
G6MKNRLa8t8J0qWUxVEIKechBtj5XdlT6b4ozLVGwlTVDXOe8iO2xUE4PsWkU0b6
AOs4UpRPt39hPBhmEUu7HmTejPkXypTJtuZObXpksQ/gDoWIgJ70tP3hwoT6j/kM
5DtQxqdED7qG
=q6Jf
-----END PGP SIGNATURE-----