Dolphin servicemenu installation script depends ruby. Ruby is not installed as default

Bug #706900 reported by Sam Rog
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kde-baseapps (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: kdebase

Kubuntu 11.04 Alpha 1
KDE 4.5.95
Package: dolphin (4:4.5.95-0ubuntu1)
Alternate install CD, Daily build 23-Jan-2011.

The Dolphin has installation option: Dophin > Configure Dolphin > Services > Download New Services.

The Install/Download New services is using script /usr/bin/servicemenuinstallation. The script needs ruby to work.

When starting the Dolphin from the konsole there is an error message:

"/usr/bin/env: ruby: No such file or directory
dolphin(2098)/knewstuff (api): Command failed"

Fix: Install the ruby package.

This is same as the Archlinux bug: https://bugs.archlinux.org/task/18140
"dolphin in KDE 4.4 needs ruby in order to install new service menus with GHNS, otherwise it fails silently (it still fails most of the times anyway, but that's a different upstram issue). It should have ruby as an (opt?)depends."

Revision history for this message
Sam Rog (samrog131) wrote :

... and as the package dolphin has "Suggests: ruby" this bug report is invalid.

Changed in kdebase (Ubuntu):
status: New → Invalid
Revision history for this message
Harald Sitter (apachelogger) wrote :

I am not so sure about that. IMHO it should be promoted to recommends as it impairs the functionality of that feature... or make dolphin try run it at KCM start and if it fails hide the button, or patch dolphin to install ruby if the user tries to use the feature..

Many options on what it should be doing, but silently failing is plain wrong.

Changed in kdebase (Ubuntu):
status: Invalid → New
Revision history for this message
Removed by request (removed1836289) wrote :

Here's a python "port" of the servicemenuinstallation ruby script. This avoids the dependency on ruby altogether as Python is installed on all ubuntu systems and then some.

Note, it's mostly untested, and I've no idea what the hell is happening in the last three lines. If a dolphin dev could pick this up, it'd be great.
There's another deinstallation ruby script which is much shorter and can be easily ported as well.

Revision history for this message
Removed by request (removed1836289) wrote :

Update of last attachment to fully implement it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

affects: kdebase (Ubuntu) → kde-baseapps (Ubuntu)
Changed in kde-baseapps (Ubuntu):
status: New → Confirmed
Revision history for this message
Harald Sitter (apachelogger) wrote :

I do not think maintaining two scripts would be good. Certainly not if Ubuntu needs to maintain one, because that will doubtlessly go incompatible at some point and then probably cause all sorts of headaches :(

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in kde-baseapps (Ubuntu):
status: New → Confirmed
Revision history for this message
skierpage (skierpage) wrote :

This seems the only reason Ruby is required in Kubuntu. I filed upstream bug https://bugs.kde.org/show_bug.cgi?id=399229

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.