How to recursively build a package and its dependencies on a Debian-based system?

1

0

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

netvope

Posted 2011-03-20T05:03:06.093

Reputation: 4 505

Answers

0

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.

netvope

Posted 2011-03-20T05:03:06.093

Reputation: 4 505

I came across this while cleaning up my own low score/bad answers from way back. Your answer is definately better than mine, so mind selecting it as such? ;p – Journeyman Geek – 2012-07-21T07:35:34.513