The Following 3 Users Say Thank You to SubCore For This Useful Post: | ||
![]() |
2009-10-28
, 13:14
|
Posts: 323 |
Thanked: 118 times |
Joined on Nov 2007
@ Australia
|
#132
|
![]() |
2009-10-28
, 13:16
|
|
Posts: 850 |
Thanked: 626 times |
Joined on Sep 2009
@ Vienna, Austria
|
#133
|
![]() |
2009-10-28
, 15:29
|
|
Posts: 81 |
Thanked: 62 times |
Joined on Aug 2009
@ Nagoya, Japan
|
#134
|
![]() |
2009-10-28
, 16:09
|
|
Posts: 2,355 |
Thanked: 5,249 times |
Joined on Jan 2009
@ Barcelona
|
#135
|
![]() |
2009-10-28
, 16:17
|
|
Posts: 2,535 |
Thanked: 6,681 times |
Joined on Mar 2008
@ UK
|
#136
|
Sorry, I remember reading in the BOF notes that the autobuilder would be modified to autooptify packages?
The Following 8 Users Say Thank You to Jaffa For This Useful Post: | ||
![]() |
2009-10-28
, 16:52
|
Posts: 452 |
Thanked: 522 times |
Joined on Nov 2007
|
#137
|
vim 7.2.0-maemo5 is entirely optified, you have a bug in your calculation method or are including out-of-date packages.
![]() |
2009-10-28
, 17:28
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#138
|
Which is why the conclusion at the BOF was that the buildbot would run maemo-optify on everything at some point in the future, unless the developer specifically told it not to, or the package already installed into /opt.
A concern though is does this mean significant rewrites of current apps, rather than the great and "quick" ports of current apps we were expecting?
A lot of great apps already on Maemo and Linux. Shame if this becomes an obstacle to proliferation of apps to Maemo 5.
![]() |
2009-10-29
, 07:12
|
|
Posts: 1,012 |
Thanked: 817 times |
Joined on Jul 2007
@ France
|
#139
|
import commands
import os
import hildon
import gtk
details = ''
less = ''
r = commands.getoutput("/usr/bin/dpkg --get-selections")
packages = r.rsplit('\n')
for index,package in enumerate(packages):
print 'Processing packages ',index,' on ',len(packages)
#print package.split('\t')
s = package.split('\t')
if s[(len(s)-1)] == 'install':
pkg_files = commands.getoutput("/usr/bin/dpkg -L "+s[0]).split('\n')
pkg_size = 0
for pkg_file in pkg_files:
#pkg_size = 0
if ('/opt' not in pkg_file) or ('/home' not in pkg_file):
try:
st = os.stat(pkg_file)
if st.st_blocks > 0:
details = details + '\n'+ s[0]+':'+pkg_file+':'+str(st.st_size/1024)+'Kb'
pkg_size = pkg_size + st.st_size
except:
pass
less = less + '\n' + s[0] + ' : '+str(pkg_size/1024)+'Kb'
print less
w = hildon.Window()
p = hildon.PannableArea()
t = hildon.TextView()
p.add(t)
w.add(p)
total = less+'\n\n\n'+details
t.get_buffer().set_text(total)
w.show_all()
gtk.main()
![]() |
2009-10-29
, 08:43
|
|
Posts: 3,404 |
Thanked: 4,474 times |
Joined on Oct 2005
@ Germany
|
#140
|
just build your package as you normally would, then use this: http://maemo.org/packages/view/maemo-optify/
The Following 3 Users Say Thank You to pycage For This Useful Post: | ||
vim_7.2-0maemo5_armel.deb 2598 17940035 0
from nathan's .txt
it seems like he just looked at the wrong column when listing the worst offenders, the data is correct.