Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[upx] automatizzare la compressione upx in portage
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sun Oct 31, 2010 8:13 pm    Post subject: [upx] automatizzare la compressione upx in portage Reply with quote

http://upx.sourceforge.net

ma per produrre pronti?
ho proposto un ebuild per bashrcng.
comprime durante l'emerge tutti i pacchetti inclusi in /etc/portage/package.upx.
esempio d'uso:
Code:

s939 ~ # echo app-office/openoffice >>/etc/portage/package.upx
s939 ~ # eselect bashrcng enable upx
Enabling plugin 'upx' ...done.
s939 ~ # echo app-office/openoffice >>/etc/portage/package.upx
s939 ~ # emerge -k openoffice >/dev/null 2>&1 &
[1] 27864
s939 ~ #
[1]+  Done                    emerge -k openoffice > /dev/null 2>&1
s939 ~ #


per comprimere openoffice, è bene procurarsi la versione 3.07 (fuori portage), perché la 3.04 mette fuori uso gli eseguibili.
allora:
Code:

s939 ~ # mkdir /usr/local/portage/app-arch/upx-ucl -p
s939 ~ # cp -a /usr/portage/app-arch/upx-ucl/upx-ucl-3.04.ebuild /usr/local/portage/app-arch/upx-ucl/upx-ucl-3.07.ebuild
s939 ~ # ebuild /usr/local/portage/app-arch/upx-ucl/upx-ucl-3.07.ebuild manifest
>>> Creating Manifest for /usr/local/portage/app-arch/upx-ucl

smascherare e compilare.

ah! naturalmente: sono cose sperimentali. non lamentiamoci se ci va il sistema a pancia all'aria.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Mon Nov 01, 2010 9:13 pm    Post subject: Reply with quote

anche upx-3.07 ha i suoi bravi problemi.
per ogni libreria di kde, ad esempio, fallisce in questo modo:
Code:

s939 ~ # upx /usr/lib/libkdeinit4_kded4.so
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2010
UPX 3.07        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 08th 2010

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
libkdeinit4_kded4.so  1/5  [*************************************]   37.5%  - unknown section LEXECDYN
Abortito

in più, dimentica uno stupido file temporaneo:
Code:

s939 ~ # ls /usr/lib/libkdeinit4_kded4.upx
/usr/lib/libkdeinit4_kded4.upx

che ingrassa inutilmente il pacchetto.

ho inserito il seguente workaround nel mio modulo locale di bashrcng-upx:
Code:

find ./image -type f -name *.upx -exec rm -f {} \;

ci ho fatto un baco. vediamo cosa dicono.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum