[haikuports] Re: Recipes that depend on themselves

  • From: gus knight <waddlesplash@xxxxxxxxx>
  • To: HaikuPorts ML <haikuports@xxxxxxxxxxxxx>
  • Date: Mon, 3 Aug 2015 18:18:10 -0400

On Sat, Aug 1, 2015 at 12:52 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:

AFAIK, that isn't entirely trivial. I'm not even sure that there is any such
open source compiler that can still build the current OpenJDK. Maybe Hamish
can provide better info.

I'll ask him when I get the chance. Thanks!

In essence the main purpose of BUILD_PREREQUIRES for native builds is to be
able to break dependency cycles. OpenJDK is a simple example, gcc is another
one. I don't know what the state of haikuporter's dependency resolver is and
whether it actually does everything correctly.
[snip]
That doesn't make sense, as there are quite a few packages (binutils,
gcc,...) that depend on themselves.

And I was able to break the dependency cycles by "whitelisting" just 8
packages: gcc, binutils, libtool, gawk, make, grep, sed, & tar. With
these whitelisted (currently OpenJDK is disabled), there are no
dependency loops.

(*) Unless I'm mistaken fetching the same version of the package via pkgman
from an existing package repository instead of building it has been
implemented in haikuporter. This is, however, only a convenience shortcut to
save time and should be equivalent to actually building the package.

There is, but it's pretty lacking (and I plan to flesh it out and make
the Kitchen use it.)

-gus

Other related posts: