FS#17865 - [deluge] UI requires python-chardet

Attached to Project: Arch Linux
Opened by Andrew Eikum (ColdPie) - Saturday, 16 January 2010, 18:03 GMT
Last edited by Ionut Biru (wonder) - Friday, 05 February 2010, 23:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Package 'deluge' was upgraded to 1.2.0-1 recently. After upgrading the deluge client fails to launch, complaining that the chardet package is missing. Installing python-chardet allows deluge to launch again.

According to the deluge changelog, this dependency was added in 1.1.8:
http://dev.deluge-torrent.org/wiki/ChangeLog
This task depends upon

Closed by  Ionut Biru (wonder)
Friday, 05 February 2010, 23:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  moved python-chardet to depends as is used by both Uis
Comment by PiousMinion (PiousMinion) - Sunday, 17 January 2010, 10:50 GMT
No method currently exists to determine and install the other UI dependencies.

A package named "deluge" which does not allow you to run "deluge" is faulty.

As it is difficult to separate the client and server for deluge, I reccomend a meta-package. e.g. rename this package deluge-daemon and make a new empty package which requires deluge-daemon and the other UI deps.

Comment by Johannes Jordan (FoPref) - Sunday, 17 January 2010, 20:44 GMT
As python-chardet is only available in Community repository, that one would have to be moved to extra as well.

Comment by Kevin (anonymous_user) - Monday, 18 January 2010, 01:21 GMT Comment by Ionut Biru (wonder) - Tuesday, 19 January 2010, 02:01 GMT
you said that there is no method. the method is just in front of your eyes.
after installing deluge package you'll see all optional dependency

Optional Deps :
python-notify: libnotify notifications
python-chardet: needed for UIs
pygtk: needed for gtk ui
librsvg: needed for gtk ui
python-mako: needed for web ui

want gtk gui, install python-chardet, pygtk and librsvg. want only web install python-mako and python-chardet.
i'm not going to add again all optional depedency to depends just because nobody reads pacman output.

if you want split packages, patches welcomed as i'm not goint to use mv,cp stuff around because is not kiss.
Comment by Andrew Eikum (ColdPie) - Tuesday, 19 January 2010, 14:31 GMT
I always read pacman output. If there had been the output you show, then I wouldn't have made this bug. Maybe this is a bug in makepkg or something, because I would expect optdepends info to print after reinstalling. I also doubt it was there during the upgrade. It's definitely not in /var/log/pacman.log.

[root@archand andrew]# pacman -S deluge
warning: deluge-1.2.0-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): deluge-1.2.0-1

Total Download Size: 0.00 MB
Total Installed Size: 11.09 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading deluge [#####################] 100%
>>> Deluge's daemon is running default with the "deluge" user. The default download directory is /srv/deluge/.
You can change the user by editing /etc/conf.d/deluge
[root@archand andrew]#
Comment by Ionut Biru (wonder) - Tuesday, 19 January 2010, 14:43 GMT
definitely it was after updating from 1.1.9 to 1.2.0 because pacman will print them if there are changes to it and on first installation.
Comment by Andrew Eikum (ColdPie) - Tuesday, 19 January 2010, 15:00 GMT
You're right, sorry for my mistake. Bug can be closed in my opinion, as I agree it's handled appropriately.

A few gripes, then, about optdepends:
I can't see any reason _not_ to print the whole message during every upgrade and reinstall, perhaps highlighting changed optdepends lines. It's easy to imagine scenarios when the optdepends message doesn't change, but what functionality in the new release is enabled by an optional package does. Or perhaps the feature wasn't wanted by a user before, but is wanted after using the package for some time. Always printing optdepends would remind them. In addition, it doesn't print into pacman.log (along with a few other message types), which I consider to be very wrong and unhelpful.

Perhaps a bug against makepkg would be appropriate here instead. I'll dig through mailing lists to see if I can find some discussion about the above.
Comment by Gaurish Sharma (gary4gar) - Tuesday, 19 January 2010, 15:02 GMT
Please add "python-chardet" as required dependency for deluge else it won't run. Installing this package "python-chardet" fixed the problem for me.
Comment by PiousMinion (PiousMinion) - Wednesday, 20 January 2010, 00:06 GMT
I still think renaming the package to deluge-daemon and making new, empty packages named deluge-gtk, deluge-web, etc that depend on deluge-daemon and the other deps.

It seems none of the other comments have addressed this simple solution.
Thank you for your consideration.
Comment by Hilton Medeiros (hilton) - Friday, 29 January 2010, 12:31 GMT
I don't think it is a simple solution to add 3 more packages for this.
I just bumped in the Arch Way 2.0 in the wiki (http://wiki.archlinux.org/index.php/The_Arch_Way_v2.0):

Expedient:
"The simple, elegant and versatile system must offer expedience where practical, but expedience can and will be sacrificed in favor of any of the above. It must be sacrificed whenever implementation simplicity is jeopardized."

Wise words.
Comment by Eric Toombs (ewtoombs) - Saturday, 30 January 2010, 20:46 GMT
quoting Hilton:
> I just bumped in the Arch Way 2.0

Really? how does your head feel? lol

Loading...