Trying to recompile existing packages or new packages with optimization
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Trying to recompile existing packages or new packages with optimization
Hi,
I'm trying to make apt-build for sid working but it still compiles (at least from what I see in the output) without my -march=i686 and -O3
Has anyone tried it or would there be another method?
Also how by using aptget source and debian rules do you compile with
special options like -O3 -march=i686 ?
You may want to search on "debian from scratch" or for just the individual packages pentium-builder.
Code:
Package: pentium-builder
Priority: extra
Section: devel
Installed-Size: 44
Maintainer: Alex Pennace <alex@pennace.org>
Architecture: all
Version: 0.18
Depends: gcc | g++, perl
Filename: pool/main/p/pentium-builder/pentium-builder_0.18_all.deb
Size: 6894
MD5sum: df2e717efdf6c599929f1e0bb5dc511d
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.
Tag: admin::configuring, devel::packaging, role::sw:plugin, suite::debian, use::configuring
apt-build has removed my pentuimbuilder dohh (I didn't really like this awfull hack anyway)
Okay I'll have a look at LFS forum.
thx
edit: by the way I don't see why we have to rely on pentiumbuild to build optimized packages.. nobody in debian.org has pentium or what?
The packages like so many other things in life are built for the lowest common denominator which when you think about it makes sense when you take into consideration the extra archive space it would take to build an i386, 486, 586, 686, k7, cyrix .... plus all the bugs that could possibly be introduced by doing it. You can go with Debian as there is a Debian from scratch effort as I mention in my previous post first hit on Google if you search.
Yes I agree that they don't have to store optimized BINARY packages (not everybody has a brand new pentium120, too much space on their servers and maybe instability with -O3) but they could give me a configuration file for recompiling it myself at least. Strange
http://julien.danjou.info/article-apt-build.html is referenced by Martin Kraft. He also mentions repacking and customizing packages with dpkg-repack,fakeroot, and debedit(to modify version number) in Chapter5 of Debian System Concepts and Techniques.
Thats exactly this link that made me post this thread. As I said it seems to still compile with old options. also this link is quite old, does it work with gcc4,...
I will look at chapter 5 and post my findings.
thanx a lot
edit: Oh I looked too quickly I thought it was in debian ref manual. I think it's worth bying this book.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.