Hartmut Koptein wrote: > 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"; > } > > Test this for : /var/lib/dpkg/info/console-data.config
Okay, I think I might have figured it out (or atleast just half assed it :-) ) I put the code into the "guess_arch" function, and it spit out the same error code. I then modified line 638 (well, after trying a few others w/o success) from "'powerpc/pmac' => [ 'mac' ], " to "'powerpc/mac' => [ 'mac' ]" and it finished the configuration. HTH --Nelson Abramson