r/linuxfromscratch • u/vijeno • Jan 19 '18
Resolving circular dependencies? Manually? How does that work?
At this moment, it is only an academic interest of mine, but I might delve into some manual installing soon, probably even a complete lfs, and I figure that this topic must be of interest to the lovely people here. I'm sure that lfs itself is non-circular, but after that, you are on your own, so... how do you deal with that?
I googled for a bit, and the results were, shall I say sobering. It seems like this is an unsolved problem...???
In C++ headers, the solution is a forward declaration, so I'm guessing that something akin to that might be a solution, but I have not the faintest clue how that would be done with massive libraries.
Here's what I found so far:
https://askubuntu.com/questions/584829/how-does-apt-handle-circular-dependencies
https://stackoverflow.com/questions/22726476/how-does-homebrew-resolve-dependencies
View all comments
Show parent comment
1
u/vijeno Feb 26 '18
You can't always skip them. At least, you can't guarantee that.
From what I gathered so far, sometimes you really just have to mess around with both sources and force-install them or add forward references or do ungodly stuff to them, until they both work. It seems pretty frightening.