Re: gedit: problematic 'gnome-text-editor' alternative

Amin Bandali <[email protected]>
Newsgroups gmane.linux.ubuntu.devel,gmane.linux.debian.devel.gtk-gnome
Message-ID <[email protected]>
Robie Basak writes:

> On Thu, Jan 18, 2024 at 07:02:19AM -0500, Amin Bandali wrote:
>> We received https://bugs.debian.org/1057184 last month about gedit's
>> 'gnome-text-editor' alternative becoming problematic now that there is
>> an actual gnome-text-editor package/binary.
>
> It sounds like this is being looked at backwards. If the
> /usr/bin/gnome-text-editor name was already being used by packages using the
> alternatives system, then a gnome-text-editor package arrived that
> stepped on the name, then it's the latter package's bug that it collides
> without at a minimum declaring a Conflicts against those existing
> packages. It probably shouldn't just step on that name without
> coordinating with the maintainers of those packages.
>
> It's probably just an oversight, but I think it's important to consider
> it from this perspective. A package doesn't just get to take over a slot
> in the namespace that is already used for some purpose because an
> upstream decided to start using it.
>
> Therefore the bug should probably be reassigned to gnome-text-editor as
> it introduced a serious policy violation (section 10.1 "Two different
> packages must not install programs with different functionality but with
> the same filenames").

Thanks for your reply, Robie, and for offering that perspective.

To clarify, both gedit and gnome-text-editor are maintained by the
same people - the Debian GNOME team - and we are in agreement about
the severity of this.  It's just that the obscure alternative was
totally forgotten about - I believe it dates back at least 20 years,
way before gnome-text-editor was a project of its own.

We think the best way forward would be to remove the conflicting
alternative from gedit, rather than change gnome-text-editor to ship
its binary with a different name (or to declare it conflicting with
gedit, which would not be a desirable outcome and not conforming with
the policy anyway).

My main hope with this thread was to get feedback about the specific
approach for removing the alternative.  I think simply checking that
the alternative exists in postinst configure and removing it would be
enough.  I also made its removal in prerm more clearly conditional.

https://salsa.debian.org/gnome-team/gedit/-/merge_requests/11

Having tested a few different scenarios locally, I believe it works
well.  So, I've proposed it for review, and plan to upload to unstable
in the coming days if there's no further feedback or objections.

Thanks,
-a

-- 
ubuntu-devel mailing list
[email protected]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel
signature.asc (application/pgp-signature, 865 B)
-----BEGIN PGP SIGNATURE-----

iQJKBAEBCgA0FiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAmWxHo8WHGJhbmRhbGlA
Y2Fub25pY2FsLmNvbQAKCRCLRKDNx7lW8qmcD/98/vGr9F4KRarxSwnksRMKs9Kw
KI4BMdbnPB2d7u1ZLQ3cyDCFP/XMcEmkkTeg54M4E+CsqUo5MUR7IsRaTfkWn4OH
65yDqKYDoe+WeGr1HslAfa11WULc46DZomLoTYUOB9AZnAOfBT8gm04NAQEIHrZh
s/6k8C/l/FM7yXZSfw6FogruNd2NUFVMHp0MR8oQFqnKH9XzVZJdVrx9I8lYP/j/
0AfgJGWxzYtd/XCUfyiLlzpsk+rUB0yXXw/BODOpQOfmvTkq1cJMHy3xd/5nB24J
q7z4ITDRUKX+yPZdZFaU+SyKBYKtFUKbB4pwpW69iBNmYf5yO+R3wBRnRVhmyLrI
7s4yi+rl7Ysr+t/+5GsfhCS1jfair8MiCcWniZY78TT6fV4A/K1j7Z0gBKXmpqQT
C6gxcq9rmJOxLXhSWEnW47J2nqyGFvVYQuqfhpM6OEDc1XwXbOoRw3JAGSDbnoHM
ZCTpMaU87wjUA8GN871p1WHZoYcSeexqivmiNBA0AJs1nVRBon7fHxY4eGEJljiB
dH91v4FKvZX1AQKqI8I/T2+REN7y+p3jhoNt/wSuBm9vLbwOl1n4e6UZtZrjMCL1
0RsImNZQGCFAqwfE9SBYPZCAuUtNATMUesyY5Uhc8Ci0e8p/laOuShfX00s117QL
tpSSJFYMj46WUStEww==
=exIR
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.