FS#39045 - [konversation] Missing dependency on qt5-tools

Attached to Project: Arch Linux
Opened by Mike Goodwin (xenithorb) - Tuesday, 25 February 2014, 19:13 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 25 April 2014, 12:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Immediate symptom is that conversation installed by default can not run scripts. I first noticed by trying /exec cmd uname -a, and then various other konversation scripts such as /sysinfo (those failed silently.)

Without qtchooser installed and running /exec cmd echo:

File "/usr/share/apps/konversation/scripts/cmd", line 55, in <module>
konversation.dbus.info(i18n("The command executed successfully, but did not return any output or only whitespace."))
File "/usr/share/apps/konversation/scripting_support/python/konversation/dbus.py", line 52, in info
_dispatch('info', _prefix(message, prefix))
File "/usr/share/apps/konversation/scripting_support/python/konversation/dbus.py", line 87, in _dispatch
subprocess.call(_dbus_command + args)
File "/usr/lib/python3.3/subprocess.py", line 523, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.3/subprocess.py", line 817, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.3/subprocess.py", line 1441, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'qdbus'

With qtchooser installed and running /exec cmd echo in the client:

qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directory

Checked for the right package:

xenith@arch-vm ~ :( $ pkgfile /usr/lib/qt/bin/qdbus
extra/qt5-tool

After installing qt5-tool all konversation scripts work as intended.

Problem:

Neither qtchooser nor qt5-tool are dependencies of konversation, and they are needed for basic functionality.


Additional info:
* package version(s)

xenith@arch-vm ~ $ pacman -Qi konversation qt5-tools qtchooser
Name : konversation
Version : 1.5-1
Description : A user friendly IRC client for KDE
Architecture : x86_64
URL : http://konversation.kde.org
Licenses : GPL2 FDL
Groups : None
Provides : None
Depends On : kdebase-runtime kdepimlibs
Optional Deps : python: python scripting support [installed]
kdebase-konsole: open a terminal in konversation [installed]
qca-ossl: Diffie-Hellman key exchange and Blowfish ECB/CBC support [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 13410.00 KiB
Packager : Tom Gundersen <teg@jklm.no>
Build Date : Sat Jan 18 18:10:18 2014
Install Date : Mon Feb 24 12:27:43 2014
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature

Name : qt5-tools
Version : 5.2.1-1
Description : A cross-platform application and UI framework (Development Tools, QtHelp)
Architecture : x86_64
URL : http://qt-project.org/
Licenses : GPL3 LGPL FDL custom
Groups : qt qt5
Provides : None
Depends On : qt5-webkit desktop-file-utils qt5-translations hicolor-icon-theme xdg-utils
Optional Deps : qt5-doc: documentation
Required By : None
Optional For : None
Conflicts With : qt
Replaces : None
Installed Size : 16769.00 KiB
Packager : Andrea Scarpino <andrea@archlinux.org>
Build Date : Wed Feb 5 13:35:21 2014
Install Date : Tue Feb 25 14:10:26 2014
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature

Name : qtchooser
Version : 39-1
Description : Wrap the other Qt tools by searching for different instances of Qt on the system
Architecture : x86_64
URL : http://qt.gitorious.org/qt/qtchooser
Licenses : GPL
Groups : None
Provides : None
Depends On : gcc-libs
Optional Deps : None
Required By : qt5-base
Optional For : qt4
Conflicts With : None
Replaces : None
Installed Size : 30.00 KiB
Packager : Andrea Scarpino <andrea@archlinux.org>
Build Date : Tue Dec 17 06:16:19 2013
Install Date : Tue Feb 25 14:04:39 2014
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature


* config and/or log files etc.

xenith@arch-vm ~ :( $ find / -name qdbus \( -type f -or -type l \) 2>/dev/null -ls
970 60 -rwxr-xr-x 1 root root 60784 Dec 11 10:03 /usr/lib/qt4/bin/qdbus
1067038 60 -rwxr-xr-x 1 root root 60680 Feb 5 13:35 /usr/lib/qt/bin/qdbus
832738 0 lrwxrwxrwx 1 root root 9 Dec 17 06:16 /usr/bin/qdbus -> qtchooser
xenith@arch-vm ~ :( $ find / -name qdbus \( -type f -or -type l \) 2>/dev/null | xargs -n1 pacman -Qo
/usr/lib/qt4/bin/qdbus is owned by qt4 4.8.5-7
/usr/lib/qt/bin/qdbus is owned by qt5-tools 5.2.1-1
/usr/bin/qdbus is owned by qtchooser 39-1


Steps to reproduce:

Install konversation 1.5-1 after installing kde-meta. Attempt to run a script within the IRC client such as /exec cmd, /exec sysinfo, etc.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 25 April 2014, 12:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  konversation 1.5-2
Comment by Andrea Scarpino (BaSh) - Wednesday, 26 February 2014, 07:25 GMT
This chould be not easy to fix as adding qtchooser to optdepends.

QtChooser uses Qt5 by default, so even if you add it as optdepends, you need to tell users to change it's config to use Qt4 instead (see https://wiki.archlinux.org/index.php/Qt#Default_Qt_Toolkit)

Loading...