Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

[upx] automatizzare la compressione upx in portage

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
Author
Message
cloc3
Advocate
Advocate
User avatar
Posts: 4840
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

[upx] automatizzare la compressione upx in portage

  • Quote

Post by cloc3 » Sun Oct 31, 2010 8:13 pm

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: Select all

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: Select all

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
Top
cloc3
Advocate
Advocate
User avatar
Posts: 4840
Joined: Tue Jan 13, 2004 10:09 am
Location: http://www.gentoo-users.org/user/cloc3/
Contact:
Contact cloc3
Website

  • Quote

Post by cloc3 » Mon Nov 01, 2010 9:13 pm

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

Code: Select all

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: Select all

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: Select all

find ./image -type f -name *.upx -exec rm -f {} \;
ci ho fatto un baco. vediamo cosa dicono.
vu vu vu
gentù
mi piaci tu
Top
Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy