LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Trying to recompile existing packages or new packages with optimization (https://www.linuxquestions.org/questions/debian-26/trying-to-recompile-existing-packages-or-new-packages-with-optimization-420307/)

nx5000 02-28-2006 09:43 AM

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 ?

Can dpkg-architecture give back i686?

I'm a bit lost :D

HappyTux 02-28-2006 10:11 AM

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


nx5000 02-28-2006 10:15 AM

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? :)

HappyTux 02-28-2006 10:40 AM

Quote:

Originally Posted by nx5000
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.

nx5000 02-28-2006 10:54 AM

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

Thanks HappyTux

lestoil 02-28-2006 01:49 PM

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.

nx5000 02-28-2006 04:18 PM

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.


All times are GMT -5. The time now is 02:31 PM.