Basically I want

  1. apt-get's dependency resolving ability, and
  2. to compile packages with customized options (such as the loader path).

Can that be done with the apt-* suite? If not, perhaps I can try to set up Portage? (which may be difficult on a Debian-based system?)

link|improve this question

62% accept rate
feedback

3 Answers

you can use apt-get build-dep to install dependancies,befroe compiling the package. However some version of the package would, of course, need to be in the repos

link|improve this answer
1  
It looks like apt-get build-dep does not build the dependencies (it install pre-built binaries). Did I miss something? – netvope Mar 20 '11 at 6:26
it installs the dependancies needed to build a package. You can then build your package as needed. – Journeyman Geek Mar 20 '11 at 6:27
Thanks for trying, but I'd like to build the dependencies as well – netvope Mar 20 '11 at 6:41
1  
I have to ask, is Debian a requirement? Because otherwise it sounds like you want Gentoo or LFS — if you want to compile all of your software from source, there is little benefit in using a ready-made distro. – alexandru Mar 20 '11 at 7:22
same thing i'm wondering. – Journeyman Geek Mar 20 '11 at 7:53
show 1 more comment
feedback

I haven't tried it about myself, but how about apt-build?

link|improve this answer
Looks promising, but I haven't figured out how to supply build options to apt-build. Can that be done? – netvope Mar 20 '11 at 13:50
feedback

So I tried Portage... Installing Portage on a non-Gentoo-based system is much easier than I thought!

They have a port named Gentoo Prefix. I followed the bootstrapping guide and it worked flawlessly (almost, except that I need to clear MAKEFLAGS=-j for groff-1.21 to build). It did take a lot of time to build, though.

The greatest things about Gentoo Prefix is that I can keep it separate from the system's package manager and it doesn't require root privilege. I played with the USE flags and CFLAGS a little bit and the build process seems to be very flexible.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.