Re: [tin-bugs] BUG REPORT tin 2.6.3 release 20231224 ("Banff")
In article <mailman.2128.1706832900.1791.tin-bugs@tin.org> you wrote:
Version: tin 2.6.3 release 20231224 ("Banff") Jan 22 2024 00:00:00 Platform: OS-Name = "linux-gnu" Compiler: CC = "gcc" CFLAGS = "-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" CPP = "gcc -E" CPPFLAGS = "-D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED" Linker and Libraries: LD = "gcc" LDFLAGS = "-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes" LIBS = "-lssl -lcrypto -lncursesw -ltinfo -lpcre2-8 -lgsasl -licuuc" Characteristics: +MIME_BREAK_LONG_LINES -MIME_STRICT_CHARSET +CHARSET_CONVERSION +MULTIBYTE_ABLE -NO_LOCALE +USE_LONG_ARTICLE_NUMBERS BOX1 : Linux 6.6.12-200.fc39.x86_64 (x86_64)
Please enter _detailed_ bug report, gripe or comment: I'm experiencing a weird issue on Fedora 39 Workstation (GNOME). It's as if the arrow keys and 'q' key send some extra codes not recognized by tin or its keyboard input library.
The issues I can reproduce are: 1. "Bad command. Type 'h' for help." is displayed almost all the time. 2. Using the left or right arrow key to enter/leave groups brings up "Do you want to abort this operation? (y/N)" message, but only if you pressed some other key earlier. Entering/leaving the same group works. 3. Trying to quit using 'q' key doesn't work. Repeated pressing of 'q' brings up "Save configuration before continuing? (Y/n)" message.
Originally reported downstream to me: https://bugzilla.redhat.com/show_bug.cgi?id=2251437
Any clues how to debug this?
Does it also show up in a previous Fedora release? (with packaged tin version from Fedora 38 and/or tin 2.6.3 build from Fedora 39 src-rpm). If not - what changed (besides the tin version)? Does it also show up with a previous tin release? If not, are the same (curses/termcap/... releated) configure options used? Does it show up in all terminals used? i.e. xterm vs. xfce4-terminal vs. ... If not, does the output from stty -a differ in the terminals?
From Fedoras tin.spec: | --enable-ncurses \ | --with-screen=ncursesw \ | --enable-locale \
From tins doc/INSTALL: | --enable-curses (default: off) [...] | This option is deprecated, use --with-screen=ncurses (see above) instead.
-> drop "--enable-ncurses". (same for --with-pcre2-config=/usr/bin/pcre2-config --without-pcre; if you give --with-pcre2-config you don't need --without-pcre. BTW. --enable-color and --enable-locale are the defaults and can be omitted).
Hello, Urs. Thanks for the quick response! On Friday, 02 February 2024 at 11:25, Urs Janßen wrote:
In article <mailman.2128.1706832900.1791.tin-bugs@tin.org> you wrote: [...]
The issues I can reproduce are: 1. "Bad command. Type 'h' for help." is displayed almost all the time. 2. Using the left or right arrow key to enter/leave groups brings up "Do you want to abort this operation? (y/N)" message, but only if you pressed some other key earlier. Entering/leaving the same group works. 3. Trying to quit using 'q' key doesn't work. Repeated pressing of 'q' brings up "Save configuration before continuing? (Y/n)" message.
Originally reported downstream to me: https://bugzilla.redhat.com/show_bug.cgi?id=2251437
Any clues how to debug this?
Does it also show up in a previous Fedora release? (with packaged tin version from Fedora 38 and/or tin 2.6.3 build from Fedora 39 src-rpm). If not - what changed (besides the tin version)?
No. tin works correctly on F38. A lot has changed, actually: gcc: 13.0.1 => 13.1.1 byacc: 2.0.20221106 => 2.0.20230521 gettext: 0.21.1 => 0.22 gnupg2: 2.4.0 => 2.4.3 icu: 72.1 => 73.2 make: 4.4 => 4.4.1 ncurses: 6.4-2.20230114 => 6.4-5.20230520 openssl: 3.0.7 => 3.0.8 There's a new GNOME version, as well (44 => 45).
Does it also show up with a previous tin release? If not, are the same (curses/termcap/... releated) configure options used?
Yes, the issue occurs with 2.6.2 as well.
Does it show up in all terminals used? i.e. xterm vs. xfce4-terminal vs. ... If not, does the output from stty -a differ in the terminals?
According to the original reporter:
Almost works in "konsole" terminal -- everything works as expected, left arrow works, almost OK but also show that "Do you want to abort current operation?" when focus is switched off that konsole window. However, in konsole it is just an annoyance -- that message disappears when focus is switched back to that window and everything continues to work as expected. In Gnome (gnome-terminal) or Mate (mate-terminal) it is totally unusable.
I don't have my F39 machine at hand at the moment, but I think I tried in xterm and it was the same. I'll check again and confirm.
From Fedoras tin.spec: | --enable-ncurses \ | --with-screen=ncursesw \ | --enable-locale \
From tins doc/INSTALL: | --enable-curses (default: off) [...] | This option is deprecated, use --with-screen=ncurses (see above) instead.
-> drop "--enable-ncurses".
(same for --with-pcre2-config=/usr/bin/pcre2-config --without-pcre; if you give --with-pcre2-config you don't need --without-pcre. BTW. --enable-color and --enable-locale are the defaults and can be omitted).
Ok, I'll adjust the configure call and see if that helps. What about "--enable-prototypes" option? Thanks! Regards, Dominik -- Fedora https://fedoraproject.org There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
participants (2)
-
Dominik 'Rathann' Mierzejewski -
Urs Janßen