Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-10-02 Thread gregor herrmann
On Thu, 22 Sep 2016 18:31:17 +0200, Vincent Lefevre wrote:

> On 2016-09-22 18:42:21 +0300, Anton Zinoviev wrote:
> > On Thu, Sep 22, 2016 at 02:17:54PM +0200, Sven Joachim wrote:
> > > I'm pretty sure it is.  The list of keyboard models is generated by
> > > running "./kbdnames-maker KeyboardNames.pl" from the Keyboard/
> > > directory, and currently this command does not print anything.  I
> > > tracked the problem down to the removal of the current directory from
> > > @INC in perl, running "perl -I. kbdnames-maker KeyboardNames.pl" gives
> > > the long list of keyboard models again.
> > 
> > Conceivably, the fix will be trivial.  I don't know if the following 
> > will fix the bug and if this is the right thing to do, but it seems 
> > simple to change the first line
> > 
> > #!/usr/bin/perl
> > 
> > of Keyboard/kbdcompiler and Keyboard/kbdnames-maker to
> > 
> > #!/usr/bin/perl -I.
> 
> This solves the issue for the keyboard-configuration.config file.
> 
> This also introduces the following change in
> "/usr/share/console-setup/kbdnames-maker":
> 
> @@ -1,4 +1,4 @@
> -#!/usr/bin/perl
> +#!/usr/bin/perl -I.
>  
>  use warnings 'all';
>  use strict;

Here's a different patch which is longer but more targetted. It
prefixes the argument to kbdnames-maker and kbdcompiler with ./
everywhere I found them and also changes the fallback values in the
two scripts (although I'm not sure this second part is needed).

Comparing the build logs (and build duration :)) and the resulting
packages (with debdiff and diffoscope) looks promising.

I also installed console-setup_1.151_all.deb,
console-setup-linux_1.151_all.deb, and
keyboard-configuration_1.151_all.deb and it didn't change my
/etc/default/keyboard (or /var/cache/debconf/config.dat). [0]

HTH,
gregor


[0] What did change in /etc is:

diff --git a/console-setup/cached_setup_keyboard.sh 
b/console-setup/cached_setup_keyboard.sh
index dc50c88..5fc1fa1 100755
--- a/console-setup/cached_setup_keyboard.sh
+++ b/console-setup/cached_setup_keyboard.sh
@@ -10,4 +10,4 @@ kbd_mode '-u' < '/dev/tty3'
 kbd_mode '-u' < '/dev/tty4' 
 kbd_mode '-u' < '/dev/tty5' 
 kbd_mode '-u' < '/dev/tty6' 
-loadkeys '/tmp/tmpkbd.4jYCsa' > '/dev/null' 
+loadkeys '/tmp/tmpkbd.HiTF3M' > '/dev/null' 


-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Eric Clapton: Running On Faith
diff -Nru console-setup-1.150/CHANGES console-setup-1.151/CHANGES
--- console-setup-1.150/CHANGES 2016-09-21 09:16:22.0 +0200
+++ console-setup-1.151/CHANGES 2016-10-02 17:37:46.0 +0200
@@ -1,3 +1,12 @@
+console-setup (1.151) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+!!! With wrong number as the package FTBFS with 1.150+nmu1 !!!
+  * Fix "user configuration lost + error message from setupcon":
+(Closes: #838310)
+
+ -- gregor herrmann   Sun, 02 Oct 2016 17:37:46 +0200
+
 console-setup (1.150) unstable; urgency=medium
 
   [ Updated translations ]
diff -Nru console-setup-1.150/Keyboard/Makefile 
console-setup-1.151/Keyboard/Makefile
--- console-setup-1.150/Keyboard/Makefile   2016-05-19 05:01:09.0 
+0200
+++ console-setup-1.151/Keyboard/Makefile   2016-10-02 17:37:46.0 
+0200
@@ -17,12 +17,12 @@
 $./%.ekmap : model = $(notdir $(@:%.ekmap=%))
 $./%.ekmap :
(cd $(kbddir) && \
-   ./kbdcompiler $(model) KeyboardNames.pl $(xkbdir)) >$@
+   ./kbdcompiler $(model) ./KeyboardNames.pl $(xkbdir)) >$@
 
 $./%.ekbd : model = $(notdir $(@:%.ekbd=%))
 $./%.ekbd :
(cd $(kbddir) && \
-   ./kbdcompiler freebsd-$(model) KeyboardNames.pl $(xkbdir)) >$@
+   ./kbdcompiler freebsd-$(model) ./KeyboardNames.pl $(xkbdir)) >$@
 
 $./charmap_functions.sh : $(acmfiles)
$(kbddir)/make_charmap_functions $(kbddir)/../acm $(charmaps) >$@
diff -Nru console-setup-1.150/Keyboard/kbdcompiler 
console-setup-1.151/Keyboard/kbdcompiler
--- console-setup-1.150/Keyboard/kbdcompiler2016-05-19 05:01:09.0 
+0200
+++ console-setup-1.151/Keyboard/kbdcompiler2016-10-02 17:37:46.0 
+0200
@@ -11,7 +11,7 @@
 if ($ARGV[1]) {
$file = $ARGV[1];
 } else {
-   $file = 'KeyboardNames.pl';
+   $file = './KeyboardNames.pl';
 }
 do "$file";
 }
diff -Nru console-setup-1.150/Keyboard/kbdnames-maker 
console-setup-1.151/Keyboard/kbdnames-maker
--- console-setup-1.150/Keyboard/kbdnames-maker 2016-03-03 05:01:15.0 
+0100
+++ console-setup-1.151/Keyboard/kbdnames-maker 2016-10-02 17:37:46.0 
+0200
@@ -10,7 +10,7 @@
 if ($ARGV[0]) {
$file = $ARGV[0];
 } else {
-   $file = 'KeyboardNames.pl';
+   $file = './KeyboardNames.pl';
 }
 do "$file";
 }
diff -Nru console-setup-1.150/debian/changelog 

Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-23 Thread Anton Zinoviev
On Thu, Sep 22, 2016 at 06:31:17PM +0200, Vincent Lefevre wrote:
> 
> I suppose that this is OK if /usr/share/console-setup/kbdnames-maker
> is expected to be run with /usr/share/console-setup as the current
> working directory. Otherwise, I'm wondering... What is the goal of
> this script here?

http://bugs.debian.org/420914

Anton Zinoviev



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Vincent Lefevre
On 2016-09-22 18:42:21 +0300, Anton Zinoviev wrote:
> On Thu, Sep 22, 2016 at 02:17:54PM +0200, Sven Joachim wrote:
> > I'm pretty sure it is.  The list of keyboard models is generated by
> > running "./kbdnames-maker KeyboardNames.pl" from the Keyboard/
> > directory, and currently this command does not print anything.  I
> > tracked the problem down to the removal of the current directory from
> > @INC in perl, running "perl -I. kbdnames-maker KeyboardNames.pl" gives
> > the long list of keyboard models again.
> 
> I am adding to this bug a 'help' tag because the bug is grave and at the 
> moment I don't have updated Debian machine so I can not debug.  
> 
> Conceivably, the fix will be trivial.  I don't know if the following 
> will fix the bug and if this is the right thing to do, but it seems 
> simple to change the first line
> 
> #!/usr/bin/perl
> 
> of Keyboard/kbdcompiler and Keyboard/kbdnames-maker to
> 
> #!/usr/bin/perl -I.

This solves the issue for the keyboard-configuration.config file.

This also introduces the following change in
"/usr/share/console-setup/kbdnames-maker":

@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -I.
 
 use warnings 'all';
 use strict;

I suppose that this is OK if /usr/share/console-setup/kbdnames-maker
is expected to be run with /usr/share/console-setup as the current
working directory. Otherwise, I'm wondering... What is the goal of
this script here?

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Processed: Re: Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 838310 +help
Bug #838310 [keyboard-configuration] keyboard-configuration: user configuration 
lost + error message from setupcon
Added tag(s) help.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
838310: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838310
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Anton Zinoviev
tags 838310 +help
thanks

On Thu, Sep 22, 2016 at 02:17:54PM +0200, Sven Joachim wrote:
> 
> I'm pretty sure it is.  The list of keyboard models is generated by
> running "./kbdnames-maker KeyboardNames.pl" from the Keyboard/
> directory, and currently this command does not print anything.  I
> tracked the problem down to the removal of the current directory from
> @INC in perl, running "perl -I. kbdnames-maker KeyboardNames.pl" gives
> the long list of keyboard models again.

I am adding to this bug a 'help' tag because the bug is grave and at the 
moment I don't have updated Debian machine so I can not debug.  

Conceivably, the fix will be trivial.  I don't know if the following 
will fix the bug and if this is the right thing to do, but it seems 
simple to change the first line

#!/usr/bin/perl

of Keyboard/kbdcompiler and Keyboard/kbdnames-maker to

#!/usr/bin/perl -I.

Anton Zinoviev



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Sven Joachim
Control: user debian-p...@lists.debian.org
Control: usertags -1 perl-cwd-inc-removal

On 2016-09-22 12:45 +0200, Vincent Lefevre wrote:

> In the keyboard-configuration 1.148 binary package, one has:
>
> -rwxr-xr-x 1 1862421 2016-07-29 08:06:33 DEBIAN/config
>
> But in the 1.149 version:
>
> -rwxr-xr-x 1 48945 2016-09-18 17:53:38 DEBIAN/config
>
> The diff:
>
> --- keyboard-configuration_1.148_all/DEBIAN/config  2016-07-29 
> 08:06:33.0 +0200
> +++ keyboard-configuration_1.149_all/DEBIAN/config  2016-09-18 
> 17:53:38.0 +0200
> @@ -159,33732 +159,6 @@
>  
>  all_kbdnames () {
>   cat <<'EOF'
> -C*model*a4techKB21*A4Tech KB-21
> -C*model*a4techKBS8*A4Tech KBS-8
> -C*model*a4_rfkb23*A4Tech Wireless Desktop RFKB-23
> [...]
> -zh_TW*layout*sn*渥魯夫語
> -zh_TW*variant*sn**渥魯夫語
>  EOF
>  }
>  
>
> Couldn't this be the cause of the problem?

I'm pretty sure it is.  The list of keyboard models is generated by
running "./kbdnames-maker KeyboardNames.pl" from the Keyboard/
directory, and currently this command does not print anything.  I
tracked the problem down to the removal of the current directory from
@INC in perl, running "perl -I. kbdnames-maker KeyboardNames.pl" gives
the long list of keyboard models again.

HTH,
Sven



Processed: Re: Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Debian Bug Tracking System
Processing control commands:

> found -1 1.150
Bug #838310 [keyboard-configuration] keyboard-configuration: user configuration 
lost + error message from setupcon
Marked as found in versions console-setup/1.150.

-- 
838310: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=838310
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Vincent Lefevre
Control: found -1 1.150

On 2016-09-22 12:45:09 +0200, Vincent Lefevre wrote:
> In the keyboard-configuration 1.148 binary package, one has:
> 
> -rwxr-xr-x 1 1862421 2016-07-29 08:06:33 DEBIAN/config
> 
> But in the 1.149 version:
> 
> -rwxr-xr-x 1 48945 2016-09-18 17:53:38 DEBIAN/config

Version 1.150, which has just appeared in unstable, has the same
issue. And upgrading doesn't fix the problem.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Vincent Lefevre
In the keyboard-configuration 1.148 binary package, one has:

-rwxr-xr-x 1 1862421 2016-07-29 08:06:33 DEBIAN/config

But in the 1.149 version:

-rwxr-xr-x 1 48945 2016-09-18 17:53:38 DEBIAN/config

The diff:

--- keyboard-configuration_1.148_all/DEBIAN/config  2016-07-29 
08:06:33.0 +0200
+++ keyboard-configuration_1.149_all/DEBIAN/config  2016-09-18 
17:53:38.0 +0200
@@ -159,33732 +159,6 @@
 
 all_kbdnames () {
  cat <<'EOF'
-C*model*a4techKB21*A4Tech KB-21
-C*model*a4techKBS8*A4Tech KBS-8
-C*model*a4_rfkb23*A4Tech Wireless Desktop RFKB-23
[...]
-zh_TW*layout*sn*渥魯夫語
-zh_TW*variant*sn**渥魯夫語
 EOF
 }
 

Couldn't this be the cause of the problem?

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Vincent Lefevre
On 2016-09-22 11:10:45 +0200, Vincent Lefevre wrote:
> On 2016-09-22 01:29:12 +0300, Anton Zinoviev wrote:
> > On Mon, Sep 19, 2016 at 07:31:12PM +0200, Vincent Lefevre wrote:
> > > -XKBMODEL="pc105"
> > > +XKBMODEL=""
> > >  XKBLAYOUT="gb"
> > >  XKBVARIANT=""
> > >  XKBOPTIONS=""
> > 
> > This doesn't look as a file created by console-setup.
> 
> It is created by "dpkg-reconfigure keyboard-configuration".
[...]

I have a 3rd machine (which doesn't use systemd).

ypig:~> cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="gb"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

So, this is OK before the upgrade. Then, I upgraded only the
following with aptitude:

Preconfiguring packages ...
(Reading database ... 556584 files and directories currently installed.)
Preparing to unpack .../0-console-setup-linux_1.149_all.deb ...
Unpacking console-setup-linux (1.149) over (1.148) ...
Preparing to unpack .../1-console-setup_1.149_all.deb ...
Unpacking console-setup (1.149) over (1.148) ...
Preparing to unpack .../2-keyboard-configuration_1.149_all.deb ...
Unpacking keyboard-configuration (1.149) over (1.148) ...
Setting up keyboard-configuration (1.149) ...
Processing triggers for systemd (231-7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up console-setup-linux (1.149) ...
Setting up console-setup (1.149) ...

I got a question:

  Configuring keyboard-configuration

  The current keyboard layout in the configuration file
  /etc/default/keyboard is defined as XKBLAYOUT="gb" and
  XKBVARIANT="".

  Please choose whether you want to keep it. If you choose this
  option, no questions about the keyboard layout will be asked
  and the current configuration will be preserved.

  Keep the current keyboard layout in the configuration file?



I chose "Yes", so that I didn't expect any change. But now:

ypig:~> cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL=""
XKBLAYOUT="gb"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

which is wrong!!! And /var/cache/debconf/config.dat changed in the
same way as the other machines.

Note: I don't remember getting this question on the other machines,
but the effect was the same.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-22 Thread Vincent Lefevre
On 2016-09-22 01:29:12 +0300, Anton Zinoviev wrote:
> On Mon, Sep 19, 2016 at 07:31:12PM +0200, Vincent Lefevre wrote:
> > -XKBMODEL="pc105"
> > +XKBMODEL=""
> >  XKBLAYOUT="gb"
> >  XKBVARIANT=""
> >  XKBOPTIONS=""
> 
> This doesn't look as a file created by console-setup.

It is created by "dpkg-reconfigure keyboard-configuration".
If I start with the original /etc/default/keyboard file
(which was the file after the installation of the machine):


# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="gb"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"


I can reproduce the issue with:

  dpkg-reconfigure -fnoninteractive keyboard-configuration

I get:


# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL=""
XKBLAYOUT="gb"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"


> Because of the missing XKBMODEL, it looks like a file created by
> systemd-localed.service.
> 
> Would you experiment with the command
> 
> # localectl set-keymap 

This has no effect on /etc/default/keyboard.

> and
> 
> # localectl set-x11-keymap ...
> 
> and see if it corrupts /etc/default/keyboard.

This recreates /etc/default/keyboard, but with only 2 lines, e.g.

# localectl set-x11-keymap foo
# cat /etc/default/keyboard
XKBLAYOUT=foo
BACKSPACE=guess

> > I don't know the possible consequences, though. The
> > /usr/share/doc/keyboard-configuration/changelog.gz file just says:
> > 
> > console-setup (1.149) unstable; urgency=medium
> > 
> >   [ Updated translations ]
> >   * Danish (da.po) by Joe Hansen
> 
> If I am right that the file was corrupted by systemd-localed, then 
> /etc/default/keyboard must have been corrupted after the upgrade of 
> console-setup.  If this file was corrupted before the upgrade, then 
> console-setup would have repaired it.
> 
> > Note: I have
> > 
> > -rw-r--r-- 1 root root 145 2016-09-19 19:03:19 /etc/default/keyboard
> > 
> > Thus this file was modified when keyboard-configuration was upgraded
> > (and before this upgrade of the Linux kernel and the nvidia packages).
> 
> Do you know what other packages were upgraded after console-setup and 
> before the Linux kernel and nvidia?

Here's the aptitude log:

Aptitude 0.8.3: log report
Mon, Sep 19 2016 19:00:23 +0200

  IMPORTANT: this log only lists intended actions; actions which fail
  due to dpkg problems may not be completed.

Will install 94 packages, and remove 0 packages.
1169 kB of disk space will be freed

[HOLD, DEPENDENCIES] libegl-nvidia0:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libegl1-glvnd-nvidia:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libgl1-nvidia-glx:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libgldispatch0-nvidia:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libgles-nvidia1:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libgles-nvidia2:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libgles1-glvnd-nvidia:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libgles2-glvnd-nvidia:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libglx-nvidia0:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libglx0-glvnd-nvidia:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libnvidia-cfg1:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libnvidia-glcore:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libnvidia-ml1:amd64 361.45.18-2
[HOLD, DEPENDENCIES] libopengl0-glvnd-nvidia:amd64 361.45.18-2
[HOLD, DEPENDENCIES] linux-compiler-gcc-5-x86:amd64 4.7.2-1
[HOLD, DEPENDENCIES] linux-doc-4.7:amd64 4.7.2-1
[HOLD, DEPENDENCIES] linux-headers-4.7.0-1-amd64:amd64 4.7.2-1
[HOLD, DEPENDENCIES] linux-headers-4.7.0-1-common:amd64 4.7.2-1
[HOLD, DEPENDENCIES] linux-kbuild-4.7:amd64 4.7.2-1
[HOLD, DEPENDENCIES] linux-libc-dev:amd64 4.7.2-1
[HOLD, DEPENDENCIES] nvidia-alternative:amd64 361.45.18-2
[HOLD, DEPENDENCIES] nvidia-driver:amd64 361.45.18-2
[HOLD, DEPENDENCIES] nvidia-driver-libs:amd64 361.45.18-2
[HOLD, DEPENDENCIES] nvidia-kernel-support:amd64 361.45.18-2
[HOLD, DEPENDENCIES] nvidia-legacy-check:amd64 361.45.18-2
[HOLD, DEPENDENCIES] nvidia-vdpau-driver:amd64 361.45.18-2
[HOLD, DEPENDENCIES] xserver-xorg-video-nvidia:amd64 361.45.18-2
[HOLD] gcc-snapshot:amd64 20160508-1
[HOLD] libnvidia-eglcore:amd64 361.45.18-2
[HOLD] nvidia-driver-bin:amd64 361.45.18-2
[HOLD] nvidia-kernel-dkms:amd64 361.45.18-2
[UPGRADE] bash:amd64 4.3-15 -> 4.4-1
[UPGRADE] console-setup:amd64 1.148 -> 1.149
[UPGRADE] console-setup-linux:amd64 1.148 -> 1.149
[UPGRADE] fonts-noto:amd64 20160724-2 -> 20160724-3
[UPGRADE] fonts-noto-hinted:amd64 20160724-2 -> 20160724-3
[UPGRADE] fonts-noto-mono:amd64 20160724-2 -> 20160724-3
[UPGRADE] fonts-noto-unhinted:amd64 20160724-2 -> 20160724-3
[UPGRADE] fonts-opensymbol:amd64 2:102.7+LibO5.2.1-2 -> 2:102.7+LibO5.2.1-3
[UPGRADE] fop:amd64 1:2.1-3 -> 1:2.1-4
[UPGRADE] gedit:amd64 3.21.90-2 

Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-21 Thread Anton Zinoviev
On Mon, Sep 19, 2016 at 07:31:12PM +0200, Vincent Lefevre wrote:
> 
> Just after the upgrade of keyboard-configuration from 1.148 to 1.149,
> I could see that my previous configuration was lost. More precisely,
> config.dat changed in the following way:

When /etc/default/keyboard is ok, config.dat is ignored by console-setup 
(default values are set before asking questions).

> and /etc/default/keyboard changed in the following way:

If this file becomes corrupted during upgrade, then this is certainly a 
bad thing.
 
> -XKBMODEL="pc105"
> +XKBMODEL=""
>  XKBLAYOUT="gb"
>  XKBVARIANT=""
>  XKBOPTIONS=""

This doesn't look as a file created by console-setup.  Because of the 
missing XKBMODEL, it looks like a file created by systemd-localed.service.

Would you experiment with the command

# localectl set-keymap 

and

# localectl set-x11-keymap ...

and see if it corrupts /etc/default/keyboard.
 
> I don't know the possible consequences, though. The
> /usr/share/doc/keyboard-configuration/changelog.gz file just says:
> 
> console-setup (1.149) unstable; urgency=medium
> 
>   [ Updated translations ]
>   * Danish (da.po) by Joe Hansen

If I am right that the file was corrupted by systemd-localed, then 
/etc/default/keyboard must have been corrupted after the upgrade of 
console-setup.  If this file was corrupted before the upgrade, then 
console-setup would have repaired it.

> Note: I have
> 
> -rw-r--r-- 1 root root 145 2016-09-19 19:03:19 /etc/default/keyboard
> 
> Thus this file was modified when keyboard-configuration was upgraded
> (and before this upgrade of the Linux kernel and the nvidia packages).

Do you know what other packages were upgraded after console-setup and 
before the Linux kernel and nvidia?

> This error message is just a consequence of this bug.

Yes.  The error message was added in version 1.138 after I became aware 
that other packages modify the configuration file of console-setup.

Anton Zinoviev



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-19 Thread Vincent Lefevre
Same problem on another machine.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-19 Thread Vincent Lefevre
Some additional information. In "journalctl -b" output after reboot:

[...]
Sep 19 19:10:11 zira keyboard-setup.sh[401]: cannot open file /tmp/tmpkbd.qR4ecU
[...]
Sep 19 19:10:11 zira keyboard-setup.sh[401]: setupcon: The keyboard model is 
unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
[...]
Sep 19 19:10:11 zira console-setup.sh[631]: setupcon: The keyboard model is 
unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
[...]
Sep 19 19:10:11 zira console-setup.sh[631]: setupcon: The keyboard model is 
unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
Sep 19 19:10:11 zira console-setup.sh[631]: setupcon: The keyboard model is 
unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
Sep 19 19:10:11 zira console-setup.sh[631]: setupcon: The keyboard model is 
unknown, assuming 'pc105'. Keyboard may be configured incorrectly.
[...]

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#838310: keyboard-configuration: user configuration lost + error message from setupcon

2016-09-19 Thread Vincent Lefevre
Package: keyboard-configuration
Version: 1.149
Severity: grave
Justification: causes non-serious data loss

Just after the upgrade of keyboard-configuration from 1.148 to 1.149,
I could see that my previous configuration was lost. More precisely,
config.dat changed in the following way:

Index: config.dat
===
--- config.dat  (revision 92179)
+++ config.dat  (revision 92180)
@@ -512,7 +512,7 @@
 
 Name: keyboard-configuration/modelcode
 Template: keyboard-configuration/modelcode
-Value: pc105
+Value: 
 Owners: d-i, keyboard-configuration
 Flags: seen
 
@@ -549,6 +549,9 @@
 Template: keyboard-configuration/unsupported_config_layout
 Value: true
 Owners: d-i, keyboard-configuration
+Variables:
+ XKBLAYOUT = gb
+ XKBVARIANT = 
 
 Name: keyboard-configuration/unsupported_config_options
 Template: keyboard-configuration/unsupported_config_options
@@ -581,7 +584,7 @@
 
 Name: keyboard-configuration/xkb-keymap
 Template: keyboard-configuration/xkb-keymap
-Value: gb
+Value: us
 Owners: d-i, keyboard-configuration
 Flags: seen
 

and /etc/default/keyboard changed in the following way:

Index: etc/default/keyboard
===
--- etc/default/keyboard(revision 92179)
+++ etc/default/keyboard(revision 92180)
@@ -2,7 +2,7 @@
 
 # Consult the keyboard(5) manual page.
 
-XKBMODEL="pc105"
+XKBMODEL=""
 XKBLAYOUT="gb"
 XKBVARIANT=""
 XKBOPTIONS=""

I don't know the possible consequences, though. The
/usr/share/doc/keyboard-configuration/changelog.gz file just says:

console-setup (1.149) unstable; urgency=medium

  [ Updated translations ]
  * Danish (da.po) by Joe Hansen

 -- Christian Perrier   Sun, 18 Sep 2016 17:53:38 +0200

Moreover, I can see in the /var/log/apt/term.log file after an
upgrade of the Linux kernel and the nvidia packages:

[...]
Processing triggers for libc-bin (2.24-3) ...
Processing triggers for glx-alternative-nvidia (0.7.3) ...
Processing triggers for update-glx (0.7.3) ...
Processing triggers for glx-alternative-nvidia (0.7.3) ...
Processing triggers for libc-bin (2.24-3) ...
Processing triggers for initramfs-tools (0.125) ...
update-initramfs: Generating /boot/initrd.img-4.7.0-1-amd64
setupcon: The keyboard model is unknown, assuming 'pc105'. Keyboard may be 
configured incorrectly.
Log ended: 2016-09-19  19:08:59

Note: I have

-rw-r--r-- 1 root root 145 2016-09-19 19:03:19 /etc/default/keyboard

Thus this file was modified when keyboard-configuration was upgraded
(and before this upgrade of the Linux kernel and the nvidia packages).
This error message is just a consequence of this bug.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages keyboard-configuration depends on:
ii  debconf 1.5.59
ii  liblocale-gettext-perl  1.07-3

keyboard-configuration recommends no packages.

keyboard-configuration suggests no packages.

Versions of packages console-setup depends on:
ii  console-setup-linux  1.149
ii  debconf  1.5.59
ii  xkb-data 2.17-1

Versions of packages console-setup suggests:
ii  locales   2.24-3
ii  lsb-base  9.20160629

Versions of packages console-setup-linux depends on:
ii  init-system-helpers  1.44
ii  initscripts  2.88dsf-59.8
ii  kbd  2.0.3-2

Versions of packages console-setup-linux suggests:
ii  console-setup  1.149

Versions of packages keyboard-configuration is related to:
pn  console-common
pn  console-data  
pn  console-tools 
pn  gnome-control-center  
ii  kbd   2.0.3-2
ii  systemd   231-6

-- debconf information:
* keyboard-configuration/optionscode:
* keyboard-configuration/altgr: The default for the keyboard layout
  console-setup/fontface47: Fixed
  keyboard-configuration/unsupported_layout: true
  console-setup/framebuffer_only:
* keyboard-configuration/model: Generic 105-key (Intl) PC
  console-setup/fontsize: 8x16
  console-setup/guess_font:
* keyboard-configuration/store_defaults_in_debconf_db: true
  debian-installer/console-setup-udeb/title:
  console-setup/codeset47: # Latin1 and Latin5 - western Europe and Turkic 
languages
  keyboard-configuration/ctrl_alt_bksp: false
  keyboard-configuration/unsupported_config_options: true
  console-setup/use_system_font:
* keyboard-configuration/toggle: No toggling
* keyboard-configuration/layoutcode: gb
  keyboard-configuration/unsupported_options: true
* keyboard-configuration/variantcode:
* keyboard-configuration/variant: English (UK)
* keyboard-configuration/switch: