Hi Dandan, I've just attached a slightly modified version of the patch which can be applied directly to the lsb-base package's files after they've already been installed on a target (this happens automatically when you create a target).
First create a target, then before you install any fsets, run these commands: > cd /usr/src/projects/<your project>/targets/<your target>/fs/etc > cat <download path>/lsb-target-fix.patch | patch This will patch the file: /etc/lsb-base-logging.sh, which is the installed version of the file lsbfix.patch fixes (the lsb-base install just changes the name from lsb-base-logging-ubuntu.sh to lsb-base-logging.sh and copies it to /etc) In order to apply lsbfix.patch you have to get the lib-base package source: > apt-get source lib-base > cd lsb-3.1 > cat <download path>/lsbfix.patch | patch -p1 Then you would rebuild the lsb-base package and install it on the target. Lsbfix.patch was just meant to be used upstream, sorry for the confusion. -----Original Message----- From: Hong, Dandan Sent: Wednesday, September 05, 2007 6:33 PM To: Brandt, Todd E Subject: RE: [Moblin Dev] Patch to fix network-manager bug Hi,Todd I am a new QA ,who reported the bug 105 at moblin bugzilla.I'm very delighted to your patch.But there is a problem that I don't know how to use the patch,in order to test it.Would you give me some information?Thank you very much. Best wishes. Hong,Dandan. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandt, Todd E Sent: Wednesday, September 05, 2007 7:29 PM To: ubuntu-mobile@lists.ubuntu.com; [EMAIL PROTECTED] Subject: [Moblin Dev] Patch to fix network-manager bug 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
lsb-target-fix.patch
Description: lsb-target-fix.patch
-- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile