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.
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
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131
Rep:
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 ...
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.
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,,,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.