Debian Bug report logs -
#273590
init.d script is noisy if LANG is set in /etc/environment twice
Reported by: "Nikita V. Youshchenko" <yoush@cs.msu.su>
Date: Mon, 27 Sep 2004 08:33:01 UTC
Severity: critical
Tags: patch
Merged with 292112
Fixed in version console-tools/1:0.2.3dbs-56
Done: Steve Langasek <vorlon@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Alastair McKinstry <mckinstry@debian.org>:
Bug#273590; Package console-common.
(full text, mbox, link).
Acknowledgement sent to "Nikita V. Youshchenko" <yoush@cs.msu.su>:
New Bug report received and forwarded. Copy sent to Alastair McKinstry <mckinstry@debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: console-common
Version: 0.7.47
Severity: minor
I've seen on several systems a strange message during boot:
/etc/init.d/keymap.sh: line 1: ru_RU.KOI8-R: command not found
I found that the reason is that installation system added LANG= line to
/etc/environment twice. Then, the following code
for var in LANG LC_ALL LC_CTYPE; do
value=$(egrep "^[^#]*${var}=" /etc/environment | cut -d= -f2)
eval $var=$value
done
caused "eval LANG=ru_RU.KOI8-R ru_RU.KOI8-R" to run.
Although it's not corrent to have to LANG= lines in /etc/environment, I
think it is a good idea to add '| head -n1' to value=... line to avoid
such cases.
Same situation is in /etc/init.d/console-screen.sh
-- System Information:
Debian Release: 3.0
APT prefers testing
APT policy: (620, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-k7-smp
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R
Versions of packages console-common depends on:
ii console-data 2002.12.04dbs-45sarge Keymaps, fonts, charset maps, fall
ii console-tools 1:0.2.3dbs-55 Linux console and font utilities
ii debconf 1.4.30.5 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
-- debconf information excluded
Information forwarded to debian-bugs-dist@lists.debian.org, Alastair McKinstry <mckinstry@debian.org>:
Bug#273590; Package console-common.
(full text, mbox, link).
Acknowledgement sent to Colin Watson <cjwatson@debian.org>:
Extra info received and forwarded to list. Copy sent to Alastair McKinstry <mckinstry@debian.org>.
(full text, mbox, link).
Message #10 received at 273590@bugs.debian.org (full text, mbox, reply):
tag 273590 patch
thanks
On Mon, Sep 27, 2004 at 12:11:32PM +0400, Nikita V. Youshchenko wrote:
> Package: console-common
> Version: 0.7.47
> Severity: minor
>
> I've seen on several systems a strange message during boot:
>
> /etc/init.d/keymap.sh: line 1: ru_RU.KOI8-R: command not found
>
> I found that the reason is that installation system added LANG= line to
> /etc/environment twice. Then, the following code
>
> for var in LANG LC_ALL LC_CTYPE; do
> value=$(egrep "^[^#]*${var}=" /etc/environment | cut -d= -f2)
> eval $var=$value
> done
>
> caused "eval LANG=ru_RU.KOI8-R ru_RU.KOI8-R" to run.
>
> Although it's not corrent to have to LANG= lines in /etc/environment, I
> think it is a good idea to add '| head -n1' to value=... line to avoid
> such cases.
I'd suggest '| tail -n1' instead, so that the semantics match those of
the shell.
> Same situation is in /etc/init.d/console-screen.sh
Indeed. Ubuntu patches here:
http://patches.ubuntulinux.org/patches/console-common.273590.diff
http://patches.ubuntulinux.org/patches/console-tools.273590.diff
Cheers,
--
Colin Watson [cjwatson@debian.org]
Tags added: patch
Request was from Colin Watson <cjwatson@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Severity set to `critical'.
Request was from Konstantinos Margaritis <markos@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Message sent on to "Nikita V. Youshchenko" <yoush@cs.msu.su>:
Bug#273590.
(full text, mbox, link).
Message #19 received at 273590-submitter@bugs.debian.org (full text, mbox, reply):
severity 273590 critical
thanks
I can definitely say that the appearance of double LANG (and LANGUAGE)
entries in /etc/environment completely breaks Greek in 2nd stage
installation (as pointed also in a recent mail in debian-boot list by
Christian Perrier). This is definitely an RC bug as it renders the
installer totally unusable in the Greek language.
Actually, the bug is language agnostic, but other languages that need
font setup use their own systems (like console-cyrillic and jfbterm)
which do not really care for this bug. Greek, however, depends solely
on console-tools to setup the console font and if that breaks,
well...
Removing the double lines, corrects this problem, and the Ubuntu
patches should be applied so that console-tools read only one pair,
but still there is the problem of where do these extra entries come
from. I'm looking into it myself right now...
Konstantinos
Reply sent to Alastair McKinstry <mckinstry@debian.org>:
You have taken responsibility.
(full text, mbox, link).
Notification sent to "Nikita V. Youshchenko" <yoush@cs.msu.su>:
Bug acknowledged by developer.
(full text, mbox, link).
Message #26 received at 273590-close@bugs.debian.org (full text, mbox, reply):
Source: console-tools
Source-Version: 1:0.2.3dbs-56
We believe that the bug you reported is fixed in the latest version of
console-tools, which is due to be installed in the Debian FTP archive:
console-tools-dev_0.2.3dbs-56_i386.deb
to pool/main/c/console-tools/console-tools-dev_0.2.3dbs-56_i386.deb
console-tools_0.2.3dbs-56.dsc
to pool/main/c/console-tools/console-tools_0.2.3dbs-56.dsc
console-tools_0.2.3dbs-56.tar.gz
to pool/main/c/console-tools/console-tools_0.2.3dbs-56.tar.gz
console-tools_0.2.3dbs-56_i386.deb
to pool/main/c/console-tools/console-tools_0.2.3dbs-56_i386.deb
kbd-compat_0.2.3dbs-56_all.deb
to pool/main/c/console-tools/kbd-compat_0.2.3dbs-56_all.deb
libconsole_0.2.3dbs-56_i386.deb
to pool/main/c/console-tools/libconsole_0.2.3dbs-56_i386.deb
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 273590@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alastair McKinstry <mckinstry@debian.org> (supplier of updated console-tools 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@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Sat, 5 Feb 2005 10:07:48 +0000
Source: console-tools
Binary: kbd-compat console-tools-dev libconsole console-tools
Architecture: source all i386
Version: 1:0.2.3dbs-56
Distribution: unstable
Urgency: low
Maintainer: Alastair McKinstry <mckinstry@debian.org>
Changed-By: Alastair McKinstry <mckinstry@debian.org>
Description:
console-tools - Linux console and font utilities
console-tools-dev - Development files for Linux console and font manipulation
kbd-compat - Wrappers around console-tools for backward compatibility with `kb
libconsole - Shared libraries for Linux console and font manipulation
Closes: 263580 267012 273590 274454 279974 283536 284705 288665 292112
Changes:
console-tools (1:0.2.3dbs-56) unstable; urgency=low
.
* Dropped console_ioctls.4 man page; its a duplicate of the console_ioctl.4
man page in manpages package.
* Fixed typo in splitfont.1 man page. Thanks to Nicolas Francois.
Closes: #274454.
* Fix fgconsole man page to show 'next-available' instead of
'show-available'. Closes: #267012.
* Fix for Caps-lock unicode/ascii breakage. Thanks to Darren Salt.
Closes: #263580.
* Fix race condition where SIGCHLD breaks system calls wih EINTR.
Patch thanks to Sergei Ivanov. Closes: #279974.
* Typos, in console-tools config. Closes: #283536, #288665.
* debian/console-screen.sh: Don't generate errors when
LANG/LC_ALL/LC_CTYPE is set more than once in /etc/environment.
Thanks to Ubuntu and Nikita V. Youshchenko. Closes: #273590, #292112.
* Patch to allow cross-building from NIIBE Yutaka. Closes: #284705.
Files:
c7af5e19bd4541d3420bdb46cb5fd4c7 643 base important console-tools_0.2.3dbs-56.dsc
e71ead24644d3d6c77563540df0800bd 1470398 base important console-tools_0.2.3dbs-56.tar.gz
eca7577b29627d85afcc88493116c7b7 42694 utils optional kbd-compat_0.2.3dbs-56_all.deb
8a5524bcc0b6d861b6464dc6f6694739 295520 utils important console-tools_0.2.3dbs-56_i386.deb
0d5515c75fd6f9c86e60d56176ecadd5 127694 libs important libconsole_0.2.3dbs-56_i386.deb
444d86d560a1e72d441785d970e2b18b 84044 devel optional console-tools-dev_0.2.3dbs-56_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iD8DBQFCBJ8iQTK/kCo4XFcRAtYFAJ41bDrMCjNSYHBcszRr5OZvRViUBQCggish
Z5tfoeTECsvLKnjaf+RaChA=
=gQ9h
-----END PGP SIGNATURE-----
Bug reopened, originator not changed.
Request was from Adrian Bunk <bunk@stusta.de>
to control@bugs.debian.org.
(full text, mbox, link).
Tags added: sarge
Request was from Adrian Bunk <bunk@stusta.de>
to control@bugs.debian.org.
(full text, mbox, link).
Tags removed: sarge
Request was from Steve Langasek <vorlon@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Bug closed, send any further explanations to "Nikita V. Youshchenko" <yoush@cs.msu.su>
Request was from Steve Langasek <vorlon@debian.org>
to control@bugs.debian.org.
(full text, mbox, link).
Bug unarchived.
Request was from Stefano Zacchiroli <zack@debian.org>
to control@bugs.debian.org.
(Sun, 10 Apr 2011 08:44:06 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 09 May 2011 07:33:41 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:
Wed Oct 11 12:06:54 2017;
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.