FS#20144 - [gedit] add opt-dep of aspell-xxx to gedit package or some notificaton in a post install script

Attached to Project: Arch Linux
Opened by John (graysky) - Sunday, 11 July 2010, 12:40 GMT
Last edited by Jan de Groot (JGC) - Thursday, 20 January 2011, 20:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: gedit doesn't tell the user that it requires the aspell-<language> package in order to allow the user to select a dictionary for spelling.

For example:
$ pacman -Qi gedit
Name : gedit
Version : 2.30.3-1
URL : http://www.gnome.org
Licenses : GPL
Groups : gnome-extra
Provides : None
Depends On : gconf>=2.28.1 pygtksourceview2>=2.10.0 enchant>=1.5.0 desktop-file-utils
iso-codes>=3.10.1 libsm
Optional Deps : None
Required By : None
Conflicts With : None
Replaces : None
Installed Size : 17692.00 K
Packager : Jan de Groot <jgc@archlinux.org>
Architecture : x86_64
Build Date : Mon 21 Jun 2010 08:51:02 AM EDT
Install Date : Mon 05 Jul 2010 04:41:08 PM EDT
Install Reason : Explicitly installed
Install Script : Yes
Description : A text editor for GNOME

Additional info:
* package version(s): 2.30.3-1
* config and/or log files etc.: none needed


Steps to reproduce: install gedit, goto menu Tools>Set language which will display a blank list unless the user has also explicitly installed one or more aspell packages. Spell checking without a dictionary is an exercise in futility :)
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 20 January 2011, 20:59 GMT
Reason for closing:  Won't implement
Comment by Ionut Biru (wonder) - Sunday, 11 July 2010, 12:56 GMT
gedit depends on enchant and this can use aspell or huspell. so having aspell-<lang> optdepends is kinda useless
Comment by John (graysky) - Sunday, 11 July 2010, 13:23 GMT
I think that the gedit package needs to have some method to alert the user that the aspell package is needed; it can be in an install script or as an opt-dep. Having the info available to the user without the need to read it on a wiki page definitely aligned with Arch's emphasis on simplicity. I think the simplest method of achieving this is to put it with the package itself in some way rather than in a dep's package that is unfamiliar to the user group.

Plus, just having enchant installed didn't give gedit the ability to spell check (eg informing the user to install one of the two packages you mention). In my case, gedit came down with gnome-extras and gave me no such warning.
Comment by Jan de Groot (JGC) - Monday, 12 July 2010, 11:50 GMT
Enchant depends on aspell, which has a post_install message about requiring dictionaries for spell checking. The only way to "fix" this is by adding virtual provides to all enchant dictionaries and depending on that, but still the user has to choose one or more dictionaries to install.
Comment by John (graysky) - Monday, 12 July 2010, 20:05 GMT
I don't remember seeing that post_install but I installed the gnome packages over a year and a half ago :) Guess we can rely on a wiki page... what about adding a post_install to the gedit package?
Comment by Jan de Groot (JGC) - Monday, 12 July 2010, 20:12 GMT
Adding a post_install to gedit means adding a post_install message to every possible package that depends on a spellchecker.
Comment by John (graysky) - Monday, 12 July 2010, 20:40 GMT
Ah... well, perhaps a wiki page is the way to go then. Other ideas?

Loading...