[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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 <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: