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.
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 #
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]#
There is no alternatives-display, sorry.