LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-21-2004, 12:47 AM   #1
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Rep: Reputation: 15
source compiled debian


Hey there Debian know-a-lots,

i have been using debian for a while now and i recently tried a couple of source based distros. i don't really know enough about them to really set up my system the way i want, but i do admit that compiling from source did speed things up on my old k6-400mhz system.
so here is my question,
i know that using apt, i can download the source packages and compile them locally, What i would like to do is set the Make options, or GCC options, flags and such to compile these all optomized like for my system. not so much for every package that i have, but the really resource intensive ones, like X, mozilla, etc.. it would also allow me to do it package by package while i still have a working system and not take 3 days to set up ( like gentoo, sourcemage, lunar etc.. )

so, is it possible to do this, and how do i go about it ?
thanks a lot, look forward to any help
 
Old 02-22-2004, 04:41 PM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Re: source compiled debian

Hi,

Quote:
Originally posted by ruwach
Hey there Debian know-a-lots,

i have been using debian for a while now and i recently tried a couple of source based distros. i don't really know enough about them to really set up my system the way i want, but i do admit that compiling from source did speed things up on my old k6-400mhz system.
so here is my question,
i know that using apt, i can download the source packages and compile them locally, What i would like to do is set the Make options, or GCC options, flags and such to compile these all optomized like for my system. not so much for every package that i have, but the really resource intensive ones, like X, mozilla, etc.. it would also allow me to do it package by package while i still have a working system and not take 3 days to set up ( like gentoo, sourcemage, lunar etc.. )

so, is it possible to do this, and how do i go about it ?
thanks a lot, look forward to any help
sure it is possible to do that:

Install a minimal debian system. Setup internet and apt (_DON'T_ forget the "deb-src" lines in sources.list).
Now download the sourcepackages you want to compile yourself.

Code:
apt-get source $package_of_your_choice
After downloading dpkg will extract the source of the downloaded package into a directory named after the packagename. Inside there is another directory called "debian" where you can find a file called "control". Inside this file, you can see all other packages your self-build package depends on later so read there, that you can get all other packages you have to build.

In the ".dsc" file in the directory where you have downloaded the source package are all binary packages listed that will emerge from the source. Look for the "build-depends" line and install all header files and/or the packages themself shown there.

Those are the files you need to build the package(s).

Now you have two choices. Installing precompiled packages/headers or compile them yourself by hand. If you compiling them yourself then you have to do the above for all packages your package depends on ...

Now, after you've done all this, continue by reading here (READ THIS, REALLY, YOU NEED IT !!!) and building your package with all the depending packages.

And at least you have to do a

Code:
dpkg --install $your_package $depending_package_1 $depending_package_.....
to install the package(s)...

Have fun

cu
 
Old 02-22-2004, 05:44 PM   #3
schleppy
LQ Newbie
 
Registered: Feb 2004
Location: New England
Posts: 1

Rep: Reputation: 0
apt-get build-dep

One suggestion,
You can use the apt-get build-dep option to make sure you've got all the depends for building debs. It's in the apt-get man-page. Enjoy.
 
Old 02-23-2004, 08:58 PM   #4
ruwach
Member
 
Registered: Feb 2003
Location: sc
Distribution: mandrake 9
Posts: 73

Original Poster
Rep: Reputation: 15
ok, this stuff is great, but.......
stony, the link is broken,
and i think i can pull off these steps ok, just that i still don't know how to pass my compilier options durring the compile , my march=k6-2 and flags and stuff,,,

thanks for your replies
 
Old 02-24-2004, 12:51 AM   #5
Strike
Member
 
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569

Rep: Reputation: 31
Use apt-src or apt-build or pbuilder ... or be intelligent and only compile the stuff that uses up CPU for significant amounts of time.
 
  


Reply



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
Compiled Apache2 from source... emptystrings Linux - Software 1 11-17-2004 02:44 PM
uninstall apache 1.3 that was compiled from source? rgiggs Slackware 5 11-15-2004 03:48 AM
RPM vs compiled source Yell0w_c0w Linux - Software 2 03-09-2004 12:15 PM
delete compiled source killi Slackware 8 05-15-2003 09:21 AM
Uninstalling software thats been compiled from source burt Linux - Software 5 10-17-2002 03:18 PM

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

All times are GMT -5. The time now is 07:23 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