RE: [Moblin Dev] Patch to fix network-manager bug
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//targets//fs/etc > cat /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 /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
RE: Error while creating image using Moblin
Shrikrishna khose wrote: > I am following instructions from this link > http://ianlawrence.info/random-stuff/mobile-linux-image-creati > on-made-easy > > and getting following error while creating ubuntu-mobile > image using Moblin image creator. > > OSError: Internal error while attempting to run: > /usr/bin/apt-get -y --force-yes -o > Dir::State=/targets/N800/fs/var/lib/apt -o > Dir::State::status=/targets/N800/fs/var/lib/dpkg/status -o > Dir::Cache=/var/cache/apt -o > Dir::Etc::Sourcelist=/targets/N800/fs/etc/apt/sources.list -o > Dir::Etc::main=/targets/N800/fs/etc/apt/apt.conf -o > Dir::Etc::parts=/targets/N800/fs/etc/apt/apt.conf.d -o > DPkg::Options::=--root=/targets/N800/fs -o > DPkg::Run-Directory=/targets/N800/fs install -f > Target path: /home/shrikrishna/moblin/image/targets/N800/fs > > Also I can see few more errors : > 1) > Setting up network-manager (0.6.5-0ubuntu9) ... > * Restarting network connection manager NetworkManager > /usr/bin/tput: invalid option -- 2 > usage: tput [-V] [-S] [-T term] capname > dpkg: error processing network-manager (--configure): > subprocess post-installation script returned error exit status 1 > dpkg: dependency problems prevent configuration of > network-manager-gnome: This is a current known issue. We are working on getting a fix in to the network-manager package which should fix this. Hopefully it will be fixed tomorrow. A workaround exists for now. Install the core package. Then manually install the network-manager package using apt-get. "apt-get install network-manager". You can do this by starting a terminal in the target. Once you have done that, then install the Fset that you wanted to install. John -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Error while creating image using Moblin
Hi: I am following instructions from this link http://ianlawrence.info/random-stuff/mobile-linux-image-creation-made-easy and getting following error while creating ubuntu-mobile image using Moblin image creator. OSError: Internal error while attempting to run: /usr/bin/apt-get -y --force-yes -o Dir::State=/targets/N800/fs/var/lib/apt -o Dir::State::status=/targets/N800/fs/var/lib/dpkg/status -o Dir::Cache=/var/cache/apt -o Dir::Etc::Sourcelist=/targets/N800/fs/etc/apt/sources.list -o Dir::Etc::main=/targets/N800/fs/etc/apt/apt.conf -o Dir::Etc::parts=/targets/N800/fs/etc/apt/apt.conf.d -o DPkg::Options::=--root=/targets/N800/fs -o DPkg::Run-Directory=/targets/N800/fs install -f Target path: /home/shrikrishna/moblin/image/targets/N800/fs Also I can see few more errors : 1) Setting up network-manager (0.6.5-0ubuntu9) ... * Restarting network connection manager NetworkManager /usr/bin/tput: invalid option -- 2 usage: tput [-V] [-S] [-T term] capname dpkg: error processing network-manager (--configure): subprocess post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of network-manager-gnome: network-manager-gnome depends on network-manager (>= 0.6.5); however: Package network-manager is not configured yet. dpkg: error processing network-manager-gnome (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of ubuntu-mobile: ubuntu-mobile depends on network-manager-gnome; however: Package network-manager-gnome is not configured yet. dpkg: error processing ubuntu-mobile (--configure): dependency problems - leaving unconfigured E: Sub-process /usr/bin/dpkg returned an error code (1) Error in chroot. Result: 100 Command was: chroot /home/shrikrishna/moblin/image /usr/bin/apt-get -y --force-yes -o Dir::State=/targets/N800/fs/var/lib/apt -o Dir::State::status=/targets/N800/fs/var/lib/dpkg/status -o Dir::Cache=/var/cache/apt -o Dir::Etc::Sourcelist=/targets/N800/fs/etc/apt/sources.list -o Dir::Etc::main=/targets/N800/fs/etc/apt/apt.conf -o Dir::Etc::parts=/targets/N800/fs/etc/apt/apt.conf.d -o DPkg::Options::=--root=/targets/N800/fs -o DPkg::Run-Directory=/targets/N800/fs install -f Completed 'apt-get install -f' successfully Will try 'apt-get install' in 15 seconds Traceback (most recent call last): File "/usr/share/pdk/lib/gui.py", line 327, in on_install_fset self.current_target().installFset(fset, fsets = platform.fset, debug = debug) File "/usr/share/pdk/lib/Project.py", line 532, in installFset self.install("/targets/%s/fs" % (self.name), package_set) File "/usr/share/pdk/lib/Project.py", line 540, in install FileSystem.install(self.project, "/targets/%s/fs" % (self.name), packages) File "/usr/share/pdk/lib/Project.py", line 111, in install raise OSError("Internal error while attempting to run: %s" % command) OSError: Internal error while attempting to run: /usr/bin/apt-get -y --force-yes -o Dir::State=/targets/N800/fs/var/lib/apt -o Dir::State::status=/targets/N800/fs/var/lib/dpkg/status -o Dir::Cache=/var/cache/apt -o Dir::Etc::Sourcelist=/targets/N800/fs/etc/apt/sources.list -o Dir::Etc::main=/targets/N800/fs/etc/apt/apt.conf -o Dir::Etc::parts=/targets/N800/fs/etc/apt/apt.conf.d -o DPkg::Options::=--root=/targets/N800/fs -o DPkg::Run-Directory=/targets/N800/fs install -f Locals by frame, innermost last 2) Errors were encountered while processing: network-manager network-manager-gnome ubuntu-mobile E: Sub-process /usr/bin/dpkg returned an error code (1) Error in chroot. Result: 100 Command was: chroot /home/shrikrishna/moblin/image /usr/bin/apt-get -y --force-yes -o Dir::State=/targets/N800/fs/var/lib/apt -o Dir::State::status=/targets/N800/fs/var/lib/dpkg/status -o Dir::Cache=/var/cache/apt -o Dir::Etc::Sourcelist=/targets/N800/fs/etc/apt/sources.list -o Dir::Etc::main=/targets/N800/fs/etc/apt/apt.conf -o Dir::Etc::parts=/targets/N800/fs/etc/apt/apt.conf.d -o DPkg::Options::=--root=/targets/N800/fs -o DPkg::Run-Directory=/targets/N800/fs install usplash-theme-ubuntu libglib2.0-0 ume-config-samsung-q1-ultra libatk1.0-0 grub libdbus-1-3 gstreamer0..10-ffmpeg telepathy-mission-control python-gconf vbetool galculator ubuntu-mobile mousepad libgnomevfs2-0 linux-generic moblin-keyboard-manager libcairo2 libtelepathy-glib0 matchbox-window-manager python ubuntu-minimal python-dbus libdbus-glib-1-2 libgstreamer0.10-0 gstreamer0.10-plugins-ugly python-cairo xorg gstreamer0.10-x libgtk2.0-0 gstreamer-dbus-media-service xserver-xorg-input-evtouch pm-utils gnome-icon-theme gconf2 telepathy-core libavahi-glib1 dbus gnome-nettool libpango1.0-0 python-gst0.10 libbluetooth2 3) Setting up xfonts-100dpi (1:1.0.0-3) ... FATAL: Could not load /lib/modules/2.6.20-16-generic/modules.dep: No such file or directory fmt: invalid width: `47089' fmt: invalid width: `47089' Setting up xfonts-75dpi (1:1.0.0-3) ... FATAL: Could not load /lib/mod
RE: Patch to fix network-manager bug
Brandt, Todd E wrote: > 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. This is all well and good. But to me the main problem is that "network-manager" is not using invoke-rc.d well enough. If invoke-rc.d won't start the service then I think that we should not be restarting the dbus services. Enclosed is a patch to "network-manager" which fixes this. I am not sure who could test and apply this patch. I have tested it on my system and it works. Maybe Alexander Sack can apply the patch. John honor-policy-rc.d.patch Description: honor-policy-rc.d.patch -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
IRC meeting tomorrow Thursday at 1600 UTC
Hi, this is your regular reminder that we are having an IRC meeting tomorrow Thursday at 1600 UTC. Please make sure to post status updates for your specifications as well as any agenda items to this list before 1400 UTC tomorrow. -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: support for python home plugin yet?
On Tue, Sep 04, 2007, Rodrigo Belem wrote: > On 9/4/07, Kyle Nitzsche <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Can one write a home plugin with python yet? > > > > (I'd like to experiment with replacing the mobile-basic-flash plugin.) > > > > If so, any tips on where to put the required files? > > > > The following link describes where put the files > http://maemo.org/community/wiki/HildonDesktopPluginHowto And some examples here: https://stage.maemo.org/svn/maemo/projects/haf/branches/maemo-af-desktop/example-plugins/ -- Johan Bilien <[EMAIL PROTECTED]> -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: BLTK & PowerTOP
On 9/5/07, Jay CHETTY <[EMAIL PROTECTED]> wrote: > 1. BLTK can be found at http://sourceforge.net/projects/BLTK I am not sure of guidelines for new packages being added at this point in the release cycle. Would you be packaging it? > 2. Regarding PowerTOP, just wanted to know if there was a reason for not > including the latest version (1.8) as I was planning to use it. As Tollef mentioned, the reason is upstream version freeze. Are there any compelling reasons to upgrade? Regards, Amit -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: BLTK & PowerTOP
1. BLTK can be found at http://sourceforge.net/projects/BLTK 2. Regarding PowerTOP, just wanted to know if there was a reason for not including the latest version (1.8) as I was planning to use it. Thanks +Jay On Wed, 2007-09-05 at 16:18 +0200, Tollef Fog Heen wrote: > * Jay CHETTY > > | 1. I was wondering if it's a good idea to include BLTK (Battery Life > | Tool Kit) in Ubuntu's gutsy apt repo of debian packages? > > Possibly; this is the first I have heard of it. Could you give us a > reference to where it can be found? > > | 2. I also noticed that the PowerTOP version in Ubuntu-mobile is not > | upto date. The latest version is 1.8 but Ubuntu has 1.7. > > Are there any good reasons to upgrade to 1.8? We are in upstream > version freeze now, so any new upstream versions have to have > exceptions approved before being uploaded. > > -- > Tollef Fog Heen > UNIX is user friendly, it's just picky about who its friends are > -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: Considerations about the user applications
On Wed, 2007-09-05 at 15:48 +0100, Matthew Garrett wrote: > > I'm a bit confused on this. Doesn't Contact on Pimlico support so called > > embedded EDS utilizing dbus as communication mechnism under the hood? > > Yes, but as far as I know GPE currently doesn't GPE's PIM suite uses sqlite. Ross -- Ross Burton mail: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] www: http://www.burtonini.com./ PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF signature.asc Description: This is a digitally signed message part -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: Considerations about the user applications
On Wed, Sep 05, 2007 at 10:39:50PM +0800, Zhu, Peter J wrote: > Adilson Oliveira wrote: > > Currently, this is our main issue. I agree about the EDS of course, > > as I > > said, I just want to have a plan B. > > > I'm a bit confused on this. Doesn't Contact on Pimlico support so called > embedded EDS utilizing dbus as communication mechnism under the hood? Yes, but as far as I know GPE currently doesn't -- Matthew Garrett | [EMAIL PROTECTED] -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: support for python home plugin yet?
Thanks for your comments Rodrigo! No, my description in the wiki page (https://help.ubuntu.com/community/UMEGuide/ApplicationDevelopment/AnatomyOfUMEPythonApplication) of where to put an application's files does not represent a new standard/requirement for UME. The wiki page describes the way I got it to work. When you do it this way, the app displays in the UME Applications > Extras menu. (It would be great if a UME person could also take a look at the wiki page and comment on my approach.) One slight correction to what your email said: " in your tutorial you install everything into /usr/share/, so is this a new standard for ume and one we should adapt to? " Actually, the wiki says to put the python file there but to put the .desktop file in /usr/share/applications, which I found (by trial and error) works as described above. The link you gave (http://maemo.org/community/wiki/HildonDesktopPluginHowto) is good stuff, and obviously getting a Python IDE going is great! However, I'm not sure whether it applies directly to what I want to accomplish. --I'd like to write a home plugin in Python that displays by default in the home area at startup. --I'd like to know exactly what the .desktop file should look like (the example in the link you provided shows a desktop file for a C plugin) --And, I'd like to know exactly where the files should go (the python file and the .desktop file) in UME --Mostly, I want to be able to explain precisely what a developer needs to know to get this done, so any help with these details will be greatly appreciated! I've tried putting the python file in /usr/lib/hildon-desktop and putting the .desktop file in /usr/share/applications/hildon-home, but that doesn't seem to work. Perhaps my .desktop file is wrong. I've tried using Type=default, Type=python and various permutations of X-Path and Exec (with a shell command to call python and pas it the.py file) to no avail. Cheers, Kyle Rodrigo Belem wrote: On 9/4/07, Kyle Nitzsche <[EMAIL PROTECTED]> wrote: Hi, Can one write a home plugin with python yet? (I'd like to experiment with replacing the mobile-basic-flash plugin.) If so, any tips on where to put the required files? The following link describes where put the files http://maemo.org/community/wiki/HildonDesktopPluginHowto You can get the python-hildondesktop package and the pyphantom python plugin IDE at http://pyphantom.garage.maemo.org/ currently this is just a plugin ide, but we would like to be used as an IDE for python application development. I have some questions about https://help.ubuntu.com/community/UMEGuide/ApplicationDevelopment/AnatomyOfUMEPythonApplication in pyphantom we install into different locations, for example we install python files into /usr/lib/hildon-desktop/ and .desktop files into /usr/share/applications/ in your tutorial you install everything into /usr/share/, so is this a new standard for ume and one we should adapt to? -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
RE: Considerations about the user applications
Adilson Oliveira wrote: > Matthew Garrett wrote: >> On Mon, Sep 03, 2007 at 04:22:17PM -0300, Adilson Oliveira wrote: >> >>> 3) PIM - We already have Pimlico there but it's not catching up as >>> fast as we wanted to so I'm thinking about add GPE to the pot. They >>> are already available to Maemo so, it should not be hard to do it. >> >> Beyond the lack of an editing widget in the current version of >> contacts, are there any other issues? Not making use of EDS sounds >> like a net loss for interoperability. >> > > Currently, this is our main issue. I agree about the EDS of course, > as I > said, I just want to have a plan B. > I'm a bit confused on this. Doesn't Contact on Pimlico support so called embedded EDS utilizing dbus as communication mechnism under the hood? Thanks, Peter -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: Considerations about the user applications
Matthew Garrett wrote: > On Mon, Sep 03, 2007 at 04:22:17PM -0300, Adilson Oliveira wrote: > >> 3) PIM - We already have Pimlico there but it's not catching up as fast >> as we wanted to so I'm thinking about add GPE to the pot. They are >> already available to Maemo so, it should not be hard to do it. > > Beyond the lack of an editing widget in the current version of contacts, > are there any other issues? Not making use of EDS sounds like a net loss > for interoperability. > Currently, this is our main issue. I agree about the EDS of course, as I said, I just want to have a plan B. []s Adilson. -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: BLTK & PowerTOP
* Jay CHETTY | 1. I was wondering if it's a good idea to include BLTK (Battery Life | Tool Kit) in Ubuntu's gutsy apt repo of debian packages? Possibly; this is the first I have heard of it. Could you give us a reference to where it can be found? | 2. I also noticed that the PowerTOP version in Ubuntu-mobile is not | upto date. The latest version is 1.8 but Ubuntu has 1.7. Are there any good reasons to upgrade to 1.8? We are in upstream version freeze now, so any new upstream versions have to have exceptions approved before being uploaded. -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
Re: Considerations about the user applications
On Mon, Sep 03, 2007 at 04:22:17PM -0300, Adilson Oliveira wrote: > 3) PIM - We already have Pimlico there but it's not catching up as fast > as we wanted to so I'm thinking about add GPE to the pot. They are > already available to Maemo so, it should not be hard to do it. Beyond the lack of an editing widget in the current version of contacts, are there any other issues? Not making use of EDS sounds like a net loss for interoperability. -- Matthew Garrett | [EMAIL PROTECTED] -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
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 <><> lsbfix.patch Description: lsbfix.patch -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile