maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken (https://talk.maemo.org/showthread.php?t=83562)

marmistrz 2012-04-11 08:51

[Help Needed] Porting applaucherd from MeeGo to Fremantle to speed up app start time and diminish the amount of RAM taken
 
1 Attachment(s)
New post

I changed this post as MeeCoLay can launch MeeGo applauncherd apps. But this way Maemo can't benefit from applauncherd features: shared libraries among many programs - the libraries aren't duplicated in ram, faster app startup time. Comparing to WebOS or MeeGo the apps on N900 start up really slowly.

In the last posts I posted what problems I experience. I'm using latest applauncherd source from gitorious (I removed some of the Nokia libs absent in fremantle from the helper script)
Old post:

Hi
One of the missing libraries which is required by many apps (Food Additives, MeeDocs) is applauncherd. (libmdeclarativecache.so, exactly)
I'm trying to port some of the deps first. I'd like to use the maemo-optify tool, but I've got a small problem: I can't see any dh_gencontrol or something.
It's the imporant part of the debian/rules file (from aegis-builder, but there are similiar rules in other pkgs), I'm attaching the full file
Code:

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

INSTALL_TARGETS := $(foreach pkg,$(DEB_ALL_PACKAGES),install/$(pkg))
MAKEBUILDDIR_TARGETS := $(foreach pkg,$(DEB_ALL_PACKAGES),makebuilddir/$(pkg))

# scratchbox currently supports only compat level 5, and
# got this rule file only working on compat 4. This uses
# "debian/*.files" and "dh_movefiles". On compat 7, this
# special target can be removed and package should use
# only "debian/*.install" files (no "debian/*.files"!).

# single package does not use debian/tmp on compat 4
#$(INSTALL_TARGETS)::
#        dh_movefiles -p$(notdir $@)

clean::
        -rm debian/configure-stamp

$(MAKEBUILDDIR_TARGETS):: debian/configure-stamp

debian/configure-stamp:
        [ ! -f Makefile ] || $(MAKE) distclean
        autoreconf -i -f -s
        touch $@

where should maemo-optify command be put?
Thanks in advance
marmistrz

rainisto 2012-04-11 12:48

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
hardfp vs softfp, apps won't run without recompilation. So your wasting your time.

For open source projects its just easier to remove booster/declarative cache from the sources. As applauncher really doesn't do anything than start apps a few hundred milliseconds faster, so it can be safely removed from all apps.

marmistrz 2012-04-11 13:11

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by rainisto (Post 1190730)
hardfp vs softfp, apps won't run without recompilation. So your wasting your time.

For open source projects its just easier to remove booster/declarative cache from the sources. As applauncher really doesn't do anything than start apps a few hundred milliseconds faster, so it can be safely removed from all apps.

The problem isn't surely that serious, as some MeeGo apps run unmodified on N900 - Kaboom! Trial for example: http://talk.maemo.org/showpost.php?p...87&postcount=9

I wanna recompile the applauncher to let most apps run without recompile. (some apps aren't open)

Where should I put maemo-optify in such a debian/rules?

ivgalvez 2012-04-11 13:30

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Flash Player was apparently using softfp2hardfp emulation in Harmattan, maybe it's the same case for Kaboom.

marmistrz 2012-04-11 14:06

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by ivgalvez (Post 1190741)
Flash Player was apparently using softfp2hardfp emulation in Harmattan, maybe it's the same case for Kaboom.

Maybe, but at least there will be a subset of MeeGo apps which will run smoothly, as there's with preenv

AWasisto 2012-04-11 14:50

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Maybe we can make 'preenv-like' software from here without porting any MeeGo's components.

marmistrz 2012-04-11 16:11

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Quote:

Originally Posted by AWasisto (Post 1190779)
Maybe we can make 'preenv-like' software from here without porting any MeeGo's components.

Maybe...
I found this approach usable
Code:

override_dh_gencontrol:
        dh_gencontrol
        maemo-optify

Works with arename, will try with aegis-builder

marmistrz 2012-04-12 12:06

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
Is there a possibility to use some library temporarily?

Icy Tower requires newer libstdc++.so.6
I've got some approach in /opt/meecolay/lib (libstdc++6 4.4.0 or newer)
Is it possible to execute this way: normally use the stock libstdc++6 for /usr/lib, but for this single app use the one from /opt/meecolay/lib?

EDIT: I tried using the preenv approach, but the libstdc++6 isn't reloaded.

ammyt 2012-04-15 08:17

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
This looks like a nice experiment marmistrz, any updates?

marmistrz 2012-04-15 09:56

Re: [Help needed] Porting applaucherd from MeeGo to Fremantle to run MeeGo apps on N900.
 
aegis-builder and libcreds2 already compiled.
The problem now is that some libraries which applauncher build-depends on are closed-src pkgs such as liblocationextras.

I don't know whether these libs will work w/o recompilation.
Would disassembly and reassembly make sense?

They may also require newer libstdc++6.


It'd be nice if someone would be able to compile the harmattan's ones. I'm talking with one maemo.org user, AapoRantalainen, about gcc-4.6 but this may be not fully compatible

EDIT: I'll download the pkgs and try to make something of it.


All times are GMT. The time now is 07:22.

vBulletin® Version 3.8.8