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

Re: Need your input for keymap configuration



> > Replace this part in the  console-data.config  file.  (/var/lib/dpkg/info/console-data.config).
> 
> Thanks for posting it, but it still fails on me :(  Atleast it's a different error: no keymaps described
> for architecture powerpc/mac
     i assume this ^^^^^^^^^^^  is correct!?
       
> Was there another part of the source I was supposed to patch but forgot to...?  I just pasted in the
> code you posted into the "sub guess_arch{}" function (replacing the other code)....

 I think the error "no keymaps described" comes from an bad space at the end of powerpc/mac_

Please test this: (please test it also on m68k!!!)


#!/usr/bin/perl -w

my $arch = `dpkg --print-installation-architecture`;
chomp $arch;

if (($arch eq 'powerpc') || ($arch eq 'm68k')) {
       my $subarch;
       if ($arch eq 'powerpc') {
            my $line = `grep ^machine /proc/cpuinfo`;
            abort ($defs, "No \"machine\" field in /proc/cpuinfo") if $line eq '';
            $subarch = lc substr ($line, 11);
        } elsif ($arch eq 'm68k') {
            my $line = `grep ^Model: /proc/hardware`;
            abort ($defs, "No \"Model\" field in /proc/hardware") if $line eq '';
            $subarch = lc substr ($line, 8);
        }
        $subarch =~ s/ .*//;
        chop($subarch);
        $subarch = 'mac'        if $subarch =~ m/^macintosh|powermac|powerbook|power|imac|powermac1/;
        $subarch = 'mvme'       if $subarch eq 'motorola';

        $arch = "$arch/$subarch";

	print "Arch ist: $arch \n\n";   # remove this line after testing
}


MfG,


   Hartmut


Reply to: