Josh Huber said:
Aaron Haviland <orion@tribble.dyndns.org> writes:
apt-get source <package> && cd <package>-* && dpkg-buildpackage -rfakeroot -us -uc
... but iirc, it's not really optimised. to do that, you need to rebuild certain packages without certain tweaks that debian throws in. something about enabling certain i586 stuff, but still making them work on i386? (which is why all the debs say i386 instead of iX86)
Well, for most of the optimizations, a very simple change can be made:
$> apt-cache show pentium-builder Package: pentium-builder Priority: extra Section: devel Installed-Size: 80 Maintainer: Alex Pennace <alex@pennace.org> Architecture: all Version: 0.17 Depends: gcc | g++, perl Filename: pool/main/p/pentium-builder/pentium-builder_0.17_all.deb Size: 6604 MD5sum: 25fd685abdcfd1e0ec6efc92a8d3e801 Description: force pentium optimized compilation Replaces gcc, cc, and g++ with scripts that build pentium optimized code. (Other processors can be optimized for as well.) . By default, after installing this package, the compilers will behave normally. However, if the environment variable DEBIAN_BUILDARCH=pentium is set, they will enter pentium optimized compile mode.
Just install pentium-builder, set the environment variable like it says to, and apt-get -b source <package> away!
Well, hot damn. you're my new hero! Now I can still build optimised local .debs and make non-optimised redistributable ones without messy tweaking! -- Aaron Haviland orion [at] tribble [dot] dyndns [dot] org orion [at] parsed [dot] net