<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>15707</bug_id>
          
          <creation_ts>2008-05-18 22:05:12 +0400</creation_ts>
          <short_desc>kde4base-konsole is not present as an alternative for /usr/bin/xvt</short_desc>
          <delta_ts>2019-01-06 04:23:17 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>alternatives</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15705</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>at</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
    
    <cc>zerg</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70194</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-05-18 22:05:12 +0400</bug_when>
    <thetext>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&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70196</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-05-18 22:19:57 +0400</bug_when>
    <thetext>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&quot; version is /usr/bin/urxvt.
# rpm -qf /usr/sbin/alternatives-helper
alternatives-0.3.3-alt1
# 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70210</commentid>
    <comment_count>2</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2008-05-19 05:14:59 +0400</bug_when>
    <thetext>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=&quot;auto&quot;
 
 for name in $*
 do
-    grep -qs &quot;^$name   &quot; $auto_dir/* || print_fatal &quot;$name is not alternative&quot;
-    current=`get_list | egrep &quot;$name   &quot; | awk &apos;{ print $2 }&apos;`
+    grep -qs &quot;^$name[[:space:]]&quot; $auto_dir/* || print_fatal &quot;$name is not
alternative&quot;
+    current=`get_list | egrep &quot;$name[[:space:]]&quot; | awk &apos;{ print $2 }&apos;`
     files=`find $auto_dir/* -type l`
     [ &quot;$files&quot; ] &amp;&amp; awk -v manual_file=$manual_file -v name=$name \
                         -v namepat=&quot;^$name     &quot;   -v current=$current \
[root@people .in]# 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>177165</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2019-01-06 04:23:17 +0300</bug_when>
    <thetext>There is no alternatives-display, sorry.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>