Bug 15707 - kde4base-konsole is not present as an alternative for /usr/bin/xvt
Summary: kde4base-konsole is not present as an alternative for /usr/bin/xvt
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: alternatives (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 15705
  Show dependency tree
 
Reported: 2008-05-18 22:05 MSD by Ivan Zakharyaschev
Modified: 2019-01-06 04:23 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2008-05-18 22:05:12 MSD
kde4base-konsole-4.0.72-alt1

For some reason, /usr/lib/kde4bin/konsole is not seen as an alternative for
/usr/bin/xvt (although /etc/alternatives/packages.d/kde4-konsole declares this).
Steps to Reproduce:
1. install kde4base-konsole
2. alternatives-display /usr/bin/xvt
3.
Actual Results:  
/usr/lib/kde4bin/konsole is not one of the alternatives:

# alternatives-display /usr/bin/xvt
xvt - status is manual
 link currently points to /usr/bin/aterm
/usr/bin/xterm - priority 40
/usr/bin/urxvt - priority 60
/usr/bin/gnome-terminal - priority 40
/usr/bin/Eterm - priority 30
/usr/bin/konsole - priority 15
/usr/bin/aterm - priority 50
Current ``best" version is /usr/bin/urxvt.
# rpm -qf /usr/lib/kde4bin/konsole
kde4base-konsole-4.0.72-alt1
# 

Expected Results:  
/usr/lib/kde4bin/konsole is also in the list of alternatives.
Comment 1 Ivan Zakharyaschev 2008-05-18 22:19:57 MSD
It must be a problem of alternatives-0.3.3-alt1:

# cat /etc/alternatives/packages.d/kde4-konsole
/usr/bin/xvt /usr/lib/kde4bin/konsole        14
# l /usr/lib/kde4bin/konsole
-rwx--s--x 1 root utempter 3124 May  9 02:08 /usr/lib/kde4bin/konsole
# /usr/sbin/alternatives-helper --install kde4-konsole
# alternatives-display /usr/bin/xvt
xvt - status is manual
 link currently points to /usr/bin/aterm
/usr/bin/xterm - priority 40
/usr/bin/urxvt - priority 60
/usr/bin/gnome-terminal - priority 40
/usr/bin/Eterm - priority 30
/usr/bin/konsole - priority 15
/usr/bin/aterm - priority 50
Current ``best" version is /usr/bin/urxvt.
# rpm -qf /usr/sbin/alternatives-helper
alternatives-0.3.3-alt1
# 
Comment 2 at@altlinux.org 2008-05-19 05:14:59 MSD
There are still pieces of code that expect tab delimiter.  With this patch
things like start work a bit (more work is needed, and grep for column match is
bad idea anyway).


[root@people .in]# diff -up /usr/bin/alternatives-display{-,}
--- /usr/bin/alternatives-display-      2008-03-30 09:15:38 +0400
+++ /usr/bin/alternatives-display       2008-05-19 05:10:21 +0400
@@ -67,8 +67,8 @@ STATUS="auto"
 
 for name in $*
 do
-    grep -qs "^$name   " $auto_dir/* || print_fatal "$name is not alternative"
-    current=`get_list | egrep "$name   " | awk '{ print $2 }'`
+    grep -qs "^$name[[:space:]]" $auto_dir/* || print_fatal "$name is not
alternative"
+    current=`get_list | egrep "$name[[:space:]]" | awk '{ print $2 }'`
     files=`find $auto_dir/* -type l`
     [ "$files" ] && awk -v manual_file=$manual_file -v name=$name \
                         -v namepat="^$name     "   -v current=$current \
[root@people .in]# 
Comment 3 Dmitry V. Levin 2019-01-06 04:23:17 MSK
There is no alternatives-display, sorry.