LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-28-2006, 09:43 AM   #1
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
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
 
Old 02-28-2006, 10:11 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
Old 02-28-2006, 10:15 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Original Poster
Rep: Reputation: 57
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?

Last edited by nx5000; 02-28-2006 at 10:23 AM.
 
Old 02-28-2006, 10:40 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 02-28-2006, 10:54 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Original Poster
Rep: Reputation: 57
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
 
Old 02-28-2006, 01:49 PM   #6
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
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.
 
Old 02-28-2006, 04:18 PM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Original Poster
Rep: Reputation: 57
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.

Last edited by nx5000; 03-01-2006 at 03:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to save a list of installed packages and install these packages later mandavi Ubuntu 5 09-07-2009 11:36 AM
POLL: Optimization for Slack 10.1 default packages ganja_guru Slackware 2 11-16-2004 03:08 AM
Recompile slackware packages senorsnor Slackware 3 07-09-2004 07:59 PM
Installing new packages from RPM, uninstalls existing apps finger0fg0d Linux - Software 3 07-06-2004 12:25 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration