[opensuse-gnome] Interesting space saving trick for our packages...
Hello, I was spying on Fedoras GDM package and came across something interesting: ======== # strip unneeded translations from .mo files # ideally intltool (ha!) would do that for us # http://bugzilla.gnome.org/show_bug.cgi?id=474987 cd po grep -v ".*[.]desktop[.]in.*\|.*[.]server[.]in[.]in$\|.*[.]schemas[.]in$" POTFILES.in > POTFILES.keep mv POTFILES.keep POTFILES.in intltool-update --pot for p in *.po; do msgmerge $p %{name}.pot > $p.out msgfmt -o `basename $p .po`.gmo $p.out done ======== The bug mentions that for Evolution, the package shrinks by ~10%. If we're doing translations etc the same way as RH, it'd be worth looking at, since we could potentially fit more goodies on the LiveCD :-) Any takers? Cheers, Magnus -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Le mardi 28 octobre 2008, à 11:28 +1000, Magnus Boman a écrit :
The bug mentions that for Evolution, the package shrinks by ~10%.
Would be interesting to see if we get the same results; using lzma for our rpms might change this.
If we're doing translations etc the same way as RH, it'd be worth looking at, since we could potentially fit more goodies on the LiveCD :-) Any takers?
That'd be interesting, but I don't see us changing all of our spec files for this :-) Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Vuntz, On Wed, 2008-10-29 at 14:04 +0100, Vincent Untz wrote:
Le mardi 28 octobre 2008, à 11:28 +1000, Magnus Boman a écrit :
The bug mentions that for Evolution, the package shrinks by ~10%.
Would be interesting to see if we get the same results; using lzma for our rpms might change this.
If we're doing translations etc the same way as RH, it'd be worth looking at, since we could potentially fit more goodies on the LiveCD :-) Any takers?
That'd be interesting, but I don't see us changing all of our spec files for this :-)
Well, depends how you look at it :-) If it is actually saving ~10% for a lot of packages, then it'd be worth changing the .spec files. I don't think anyone wants to go and make this change alone, so it's something that could happen during a package update (which, I guess is not happening that much for 11.1 anymore but...). If I get some time this weekend, I'll have a look at it. Cheers, Magnus -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On Wed, 2008-10-29 at 14:04 +0100, Vincent Untz wrote:
Le mardi 28 octobre 2008, à 11:28 +1000, Magnus Boman a écrit :
The bug mentions that for Evolution, the package shrinks by ~10%.
Would be interesting to see if we get the same results; using lzma for our rpms might change this.
The -lang rpm package shrunk from 20mb to 19mb: Original package; 3479035 2008-11-01 14:49 evolution-2.24.1-9.1.x86_64.rpm 20367188 2008-11-01 14:50 evolution-lang-2.24.1-9.1.x86_64.rpm Modified package; 3479073 2008-11-01 14:05 evolution-2.24.1-8.1.x86_64.rpm 19513598 2008-11-01 14:06 evolution-lang-2.24.1-8.1.x86_64.rpm The installed size shrunk from with 4.5mb (From 66646 to 62363) I'll try with a few more packages to see what the effect is. Cheers, Magnus -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On Tue, 2008-10-28 at 11:28 +1000, Magnus Boman wrote:
Hello,
I was spying on Fedoras GDM package and came across something interesting:
======== # strip unneeded translations from .mo files # ideally intltool (ha!) would do that for us # http://bugzilla.gnome.org/show_bug.cgi?id=474987 cd po grep -v ".*[.]desktop[.]in.*\|.*[.]server[.]in[.]in$\|.*[.]schemas[.]in$" POTFILES.in > POTFILES.keep mv POTFILES.keep POTFILES.in intltool-update --pot for p in *.po; do msgmerge $p %{name}.pot > $p.out msgfmt -o `basename $p .po`.gmo $p.out done ========
Looks interesting indeed, but it needs to be done via an RPM macro or not at all. Michael. -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
participants (3)
-
Magnus Boman
-
Michael Wolf
-
Vincent Untz