This is a patch to the lsb-base package. It's the cause of the error in
the network-manager installation with moblin-image-creator. 

 

Basically when you install the ubuntu mobile fset, it tries to install
the ubuntu-mobile meta package which points to network-manager and
network-manager-gnome. When network-manager is installed it runs a post
install script that restarts the NetworkManager service. This script
calls the log_daemon_msg function to print out a little message to the
effect of "restarting network manager service... ". Log_daemon_msg is a
function defined in /etc/lsb-base-logging.sh and it attempts to display
the message in a fancy way on the terminal screen. To do this it gathers
info on how many columns there are by calling "tput cols", which it just
assumes returns a valid number. This is the bug. For some reason, "tput
cols" returns -1 when it's called from apt-get from within a
moblin-image-creator target root. This ends up getting processed and
given back to tput as an argument later on and the "-" causes tput to
barf because it thinks the number is an option that doesn't exist. 

 

This patch adds a check to ensure that the column value is usable. The
script already defaults to 80 columns if "tput cols" returns nothing, so
I just expanded that case to include returns of 6 columns or less.

 

 

 

Todd Brandt  -  Intel Oregon

Linux for Mobile Internet Devices (MID)

 

2111 W NE 25th Ave Hillsboro, OR 97124

MS: JF1-235  Tel: (503) 264-4035

 

 

 

<<image002.jpg>>

<<image001.jpg>>

Attachment: lsbfix.patch
Description: lsbfix.patch

-- 
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile

Reply via email to