Debian Bug report logs - #915017
Different keybindings in nano and nano-udeb

version graph

Package: nano; Maintainer for nano is Jordi Mallach <jordi@debian.org>; Source for nano is src:nano (PTS, buildd, popcon).

Reported by: Steve McIntyre <steve@einval.com>

Date: Thu, 29 Nov 2018 14:27:01 UTC

Severity: normal

Tags: d-i

Found in version nano/3.2-1

Fixed in version nano/3.2-2

Done: Jordi Mallach <jordi@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Jordi Mallach <jordi@debian.org>:
Bug#915017; Package nano. (Thu, 29 Nov 2018 14:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Steve McIntyre <steve@einval.com>:
New Bug report received and forwarded. Copy sent to Jordi Mallach <jordi@debian.org>. (Thu, 29 Nov 2018 14:27:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Steve McIntyre <steve@einval.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Different keybindings in nano and nano-udeb
Date: Thu, 29 Nov 2018 14:24:58 +0000
Package: nano
Version: 3.2-1
Severity: normal
Tags: d-i

Hi,

We've just noticed in discussion in #debian-boot that the udeb version
of nano (as used by d-i) lists different keybindings to the normal
version in the archive. See

  https://www.kleine-koenig.org/tmp/nano.png

for the udeb version, and

  https://www.einval.com/~steve/tmp/nano-full.png

for the full version. In particular, the suggestion to use C-s to
"Save" seems to be a problem for people using d-i on a serial console.

-- System Information:
Debian Release: 9.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-8-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nano depends on:
ii  libc6         2.24-11+deb9u3
ii  libncursesw5  6.0+20161126-1+deb9u2
ii  libtinfo5     6.0+20161126-1+deb9u2
ii  zlib1g        1:1.2.8.dfsg-5

nano recommends no packages.

Versions of packages nano suggests:
pn  spell  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Jordi Mallach <jordi@debian.org>:
Bug#915017; Package nano. (Sun, 02 Dec 2018 15:03:08 GMT) (full text, mbox, link).


Acknowledgement sent to Benno Schulenberg <bensberg@telfort.nl>:
Extra info received and forwarded to list. Copy sent to Jordi Mallach <jordi@debian.org>. (Sun, 02 Dec 2018 15:03:08 GMT) (full text, mbox, link).


Message #10 received at 915017@bugs.debian.org (full text, mbox, reply):

From: Benno Schulenberg <bensberg@telfort.nl>
To: Steve McIntyre <steve@einval.com>, 915017@bugs.debian.org
Subject: Re: Bug#915017: Different keybindings in nano and nano-udeb
Date: Sun, 2 Dec 2018 15:47:45 +0100
Hello Steve,

Please describe in words what you are seeing in the udeb version,
and where you are seeing it (in the ^G help text, or in the two
"help lines" at the bottom of the terminal window?).  Sorry, I
won't be looking at screenshots.

I am not familiar with Debian.  Can you tell me which script or
recipe is used to build nano-udeb?  So that I stand a chance to
build a comparable version.

Benno




Information forwarded to debian-bugs-dist@lists.debian.org, Jordi Mallach <jordi@debian.org>:
Bug#915017; Package nano. (Tue, 04 Dec 2018 02:06:06 GMT) (full text, mbox, link).


Acknowledgement sent to Steve McIntyre <steve@einval.com>:
Extra info received and forwarded to list. Copy sent to Jordi Mallach <jordi@debian.org>. (Tue, 04 Dec 2018 02:06:07 GMT) (full text, mbox, link).


Message #15 received at 915017@bugs.debian.org (full text, mbox, reply):

From: Steve McIntyre <steve@einval.com>
To: Benno Schulenberg <bensberg@telfort.nl>
Cc: 915017@bugs.debian.org
Subject: Re: Bug#915017: Different keybindings in nano and nano-udeb
Date: Tue, 4 Dec 2018 02:03:33 +0000
Hi Benno,

On Sun, Dec 02, 2018 at 03:47:45PM +0100, Benno Schulenberg wrote:
>
>Please describe in words what you are seeing in the udeb version,
>and where you are seeing it (in the ^G help text, or in the two
>"help lines" at the bottom of the terminal window?).  Sorry, I
>won't be looking at screenshots.

I'm seeing this difference in the two help lines at the bottom. In the
minimal udeb version there are (ignoring reverse text...):

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^C Cur Pos   ^S Save
^X Exit      ^R Read File ^\ Replace   ^UnCut Text  ^_ Go To Line^Q Where Was

And in the full version I see:

^G Get Help  ^O Write Out ^W Where Is  ^K Cut Text  ^J Justify   ^C Cur Pos
^X Exit      ^R Read File ^\ Replace   ^UnCut Text  ^T To Spell  ^_ Go To Line

>I am not familiar with Debian.  Can you tell me which script or
>recipe is used to build nano-udeb?  So that I stand a chance to
>build a comparable version.

The script debian/rules is responsible for building three different
versions from a single source tree:

  https://salsa.debian.org/debian/nano/blob/master/debian/rules

I'm seeing the differences between the main build with

  CONFFLAGS = --bindir=/bin

and the udeb build with 

  CONFFLAGS_tiny = \
  		 --enable-tiny \
		 --disable-speller \
		 --disable-justify \
		 --disable-tabcomp \
		 --disable-nls \
		 --disable-wrapping \
		 --with-slang

Hmmm. I'm pondering if it's just the --disable-wrapping and
--disable-speller that are causing the differences here...

-- 
Steve McIntyre, Cambridge, UK.                                steve@einval.com
Welcome my son, welcome to the machine.




Information forwarded to debian-bugs-dist@lists.debian.org, Jordi Mallach <jordi@debian.org>:
Bug#915017; Package nano. (Sun, 09 Dec 2018 14:30:03 GMT) (full text, mbox, link).


Acknowledgement sent to Benno Schulenberg <bensberg@telfort.nl>:
Extra info received and forwarded to list. Copy sent to Jordi Mallach <jordi@debian.org>. (Sun, 09 Dec 2018 14:30:03 GMT) (full text, mbox, link).


Message #20 received at 915017@bugs.debian.org (full text, mbox, reply):

From: Benno Schulenberg <bensberg@telfort.nl>
To: Steve McIntyre <steve@einval.com>, 915017@bugs.debian.org
Cc: Jordi Mallach <jordi@debian.org>
Subject: Re: Bug#915017: Different shown keybindings in full nano and nano-udeb
Date: Sun, 9 Dec 2018 15:27:43 +0100
Hi Steve,

Op 04-12-18 om 03:03 schreef Steve McIntyre:
> I'm seeing this difference in the two help lines at the bottom.  [...]

Okay: the udeb version shows "^S Save" and "^Q Where Was" at the end
of the two help lines.

First, how realistic or probable is it that nowadays someone would
install Debian while connected with a terminal over a serial line?

Second, is it possible to detect that the current terminal is using
a real serial line?  If yes, then nano could suppress the showing of
^S and ^Q in that case.

> The script debian/rules is responsible for building three different
> versions from a single source tree:
> 
>   https://salsa.debian.org/debian/nano/blob/master/debian/rules

If I understand the rules script well, a udeb version is identical
to a tiny version (also in the installation part, they just remove
all documentation in a different way).

>   CONFFLAGS_tiny = \
>   		 --enable-tiny \
> 		 --disable-speller \
> 		 --disable-justify \
> 		 --disable-tabcomp \
> 		 --disable-nls \
> 		 --disable-wrapping \
> 		 --with-slang
> 
> Hmmm. I'm pondering if it's just the --disable-wrapping and
> --disable-speller that are causing the differences here...

No, the --disable-speller and --disable-wrapping and --disable-justify
and --disable-tabcomp are superfluous here: they are all comprised in
--enable-tiny.  The flags could thus be reduced to just: --enable-tiny
--disable-nls --with-slang.

If detection of a serial line is not possible, then maybe I could
suppress the showing of ^S and ^Q when --with-slang is used.  The
--with-slang option is used probably only by Debian, because its use
severely handicaps nano's keyboard handling.  If it is possible to
use ncurses, nobody should be using --with-slang.

(In fact, it would be better if the flags for the tiny version did
not include --with-slang.  It would still build a small binary, but
would be able to understand things like <Ctrl+Left/Right>.  Only the
udeb version should use --with-slang, *if* the installation environment
does not provide ncurses.)

Benno



Reply sent to Jordi Mallach <jordi@debian.org>:
You have taken responsibility. (Wed, 20 Feb 2019 11:54:06 GMT) (full text, mbox, link).


Notification sent to Steve McIntyre <steve@einval.com>:
Bug acknowledged by developer. (Wed, 20 Feb 2019 11:54:06 GMT) (full text, mbox, link).


Message #25 received at 915017-close@bugs.debian.org (full text, mbox, reply):

From: Jordi Mallach <jordi@debian.org>
To: 915017-close@bugs.debian.org
Subject: Bug#915017: fixed in nano 3.2-2
Date: Wed, 20 Feb 2019 11:51:40 +0000
Source: nano
Source-Version: 3.2-2

We believe that the bug you reported is fixed in the latest version of
nano, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 915017@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jordi Mallach <jordi@debian.org> (supplier of updated nano package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 20 Feb 2019 12:27:34 +0100
Source: nano
Architecture: source
Version: 3.2-2
Distribution: unstable
Urgency: medium
Maintainer: Jordi Mallach <jordi@debian.org>
Changed-By: Jordi Mallach <jordi@debian.org>
Closes: 915017
Changes:
 nano (3.2-2) unstable; urgency=medium
 .
   * The "#JoAcuso" release.
   * Add patch to avoid showing ^S and ^Q options in nano-tiny, as using
     those can cause problems on some d-i environments, like installs over
     serial console. Thanks, Benno! (Closes: #915017).
   * Update Standards-Version to 4.3.0, no changes needed.
Checksums-Sha1:
 37130ac13f2eba22cfff8ffc82fed2f577cf4e92 2237 nano_3.2-2.dsc
 18fccb975ae1e1e67403d805446d1d206ad3d1b5 29936 nano_3.2-2.debian.tar.xz
 3f8815f0e4cc55674e927588bdaaedb48f256aa1 6835 nano_3.2-2_source.buildinfo
Checksums-Sha256:
 7c937e61f47d9555368a3172b907817d8123390e467ae4ae1a33315016eea5d5 2237 nano_3.2-2.dsc
 1a93663ca21b12d22c8110ecdefe0dc62ebd34ce6625e5d5cc47d0a99540546a 29936 nano_3.2-2.debian.tar.xz
 45697f1b1577dc35094e7fe14f0f9757aec4d3daab4b623f28430957125f3ae9 6835 nano_3.2-2_source.buildinfo
Files:
 5e9e640276eafca926067f8ddec0e361 2237 editors optional nano_3.2-2.dsc
 928b91eeb8fc8fb99a3524afdaccfe3c 29936 editors optional nano_3.2-2.debian.tar.xz
 93589e5a347357b770881c096bea1d52 6835 editors optional nano_3.2-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE6BdUhsApKYN8KGoWJVAvb8vjywQFAlxtO0ARHGpvcmRpQGRl
Ymlhbi5vcmcACgkQJVAvb8vjywSFtBAAkwlMeyPgxV/MqfKIGAasIuU86L5Jn3f1
8RKLv2t+7PDqu6g7i6O+IW43Tufl2iHeNsNO1AFZjzRdD9LqxLfvwGXMQNIqY1b7
fmdBsZEc0Rh0HrCYgrNkx4ZW0/0KLDU9lII8LE+aJroqBH6cJbIiqBHYKlHxhbtg
cUzzD48Nny8aACw29zmjtIpyDUcjHO4F+6nubSF1wP5hiCWZpxQZVLOb2jEpHwPw
hqmo9A+zytyMifJVVtFj9eF6kE5EycoDQhap/9Wg/HG7BHGQqSb8ndnj95Vf0x1l
ChcpRFb+gxYkSgzOU+YWnPBiQYw6j7+1A8feLX+P7gi07GeqszYDGUehTMjAFaxl
jsKBLSNJkMLw3ugAn81BYJ/QMs4v3OPcwnsTDRcNurhdMPwKvdtHbLJpPNtQ25wB
PNlt2cRvrtlHenc/JRU/efmxHhXlckP/8ruTABKwaV6P8VvgUlsP4WUhTbfw55ND
XaTDeUuCzc1subSFmfOMYDen2Io9MP58JnII66Yddpfy2YlmkdgueUKTlbEXAzbT
NfJXMNeAI5Kjv8QsvFlI1Bd/0seRaTB5+M5Qb3Q58EdNGB/PvCjXoGBbLEGkcvN4
Cm7LjlwtM7vqLYJh+kCweFOBRrpBIb9Mj7ZxYOEiSASTS1701BtjNgpyI4HYXBcZ
OCGWdbhC+S0=
=nnEg
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 30 Mar 2019 07:25:46 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Feb 22 13:37:43 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.