[Bug 211392] New: Better error message instead of "the ncurses frontend is installed but does not work"
https://bugzilla.novell.com/show_bug.cgi?id=211392 Summary: Better error message instead of "the ncurses frontend is installed but does not work" Product: openSUSE 10.2 Version: Alpha 5 Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: jsrain@novell.com If parts of yast2 or its dependencies are not correctly installed, yast2 currently reports: warning: the ncurses frontend is installed but does not work You need to install yast2-ncurses to use the YaST2 text mode interface This is misleading because - The message "does not work" is not detailed enough - "You need to install yast2-ncurses" is not always correct because yast2-ncurses might be installed just fine Suggestions: - The script uses ldconfig to determine if the frontend is correctly installed, show the ldconfig errors in addition to the "does not work" text - Change the message "You need to install yast2-ncurses" to something like "You need to install yast2-ncurses and its dependencies" or "You need to verify yast2-ncurses" or give a hint about "rpm -V yast2-ncurses" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 ------- Comment #1 from andreas.hanke@gmx-topmail.de 2006-10-10 14:48 MST ------- To reproduce: % rm /usr/lib*/libyui.so.2 % yast2 warning: the qt frontend is installed but does not work warning: the ncurses frontend is installed but does not work You need to install yast2-ncurses to use the YaST2 text mode interface I would prefer a message like: % rm /usr/lib*/libyui.so.2 % yast2 warning: the qt frontend is installed but does not work libyui.so.2 => not found warning: the ncurses frontend is installed but does not work libyui.so.2 => not found You need to install yast2-ncurses to use the YaST2 text mode interface The attached patch implements that - in a ruther ugly way, it is meant to demonstrate what I mean. The reason is, with the current implementation, the user never reaches a point where he can see what's wrong. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 ------- Comment #2 from andreas.hanke@gmx-topmail.de 2006-10-10 14:49 MST ------- Created an attachment (id=101167) --> (https://bugzilla.novell.com/attachment.cgi?id=101167&action=view) Demonstration patch -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #101167|0 |1 is obsolete| | ------- Comment #3 from andreas.hanke@gmx-topmail.de 2006-10-10 20:09 MST ------- Created an attachment (id=101183) --> (https://bugzilla.novell.com/attachment.cgi?id=101183&action=view) Maybe nicer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 ------- Comment #4 from andreas.hanke@gmx-topmail.de 2006-10-10 23:49 MST ------- The other part is the message in /sbin/yast2, line 189. The current message "You need to install yast2-ncurses to use the YaST2 text mode interface" is appropriate under the assumption that the user can only reach this point if he is in text mode and yast2-ncurses does not work. But that assumption is not correct, the user can as well reach this point if he is in graphical mode and none of either yast2-ncurses or yast2-qt works. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 aj@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |yast2-maintainers@suse.de |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 locilka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |mvidner@novell.com ------- Comment #5 from locilka@novell.com 2006-10-16 02:15 MST ------- rpm -qf /usr/lib/YaST2/bin/yast2-funcs -> yast2 mvidner did the very last entry there :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 mvidner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #6 from mvidner@novell.com 2006-10-16 03:26 MST ------- Comment 3: good idea, applied. Comment 4: I'd like to redirect the output of the entire script to xmessage in such situations, but I haven't found out how exactly -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 ------- Comment #7 from mvidner@novell.com 2006-10-25 08:08 MST ------- OK, the key is "exec &> >(xmessage)", but it doesnt seem to work with kdesu/gnomesu. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392 mvidner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #8 from mvidner@novell.com 2007-04-12 08:40 MST ------- Anyway, submitted in yast2-2.15.27. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=211392#c9
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=211392#c10
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=211392#c11
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=211392
Steffen Winterfeldt
https://bugzilla.novell.com/show_bug.cgi?id=211392#c12
Aaron Bockover
https://bugzilla.novell.com/show_bug.cgi?id=211392#c13
--- Comment #13 from Martin Vidner
- Change the message "You need to install yast2-ncurses" to something like "You need to install yast2-ncurses and its dependencies" or "You need to verify yast2-ncurses" or give a hint about "rpm -V yast2-ncurses"
I overlooked that originally. This patch should be better. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=211392#c14
Martin Vidner
participants (1)
-
bugzilla_noreply@novell.com