Thursday 30 August 2018

package management - Can pkgsrc, Homebrew, Fink, and MacPorts peacefully coexist?


I heard that some people like to use both Fink and Macports since some packages exist in one and not the other.


Recently I've had trouble building and running packages like GRASS and Digikam w/ MacPorts, and have started looking at alternatives.


Just wondering: would pkgsrc and Homebrew also coexist and function nicely with them?


I am still trying out package managers and like to explore all the possibilities before I settle on one or two.


Thanks!



Answer



Homebrew will cause problems when building software from source if it is installed in /usr/local. This is the default, which is a bad choice as this path is in the default search path of compilers and other tools. Therefore builds from other packaging software might pick up the wrong dependency, using Homebrew's version instead of their own.


Years ago, in the very beginning of the project, even MacPorts was using /usr/local. But it turned out not to cooperate with other tools as is documented in their FAQ. Unfortunately Homebrew developers didn't want to hear about prior experiences and ignored such facts...


In general, it is usually better to stick to one tool only to avoid all problems. MacPorts is doing their best to patch out any harcoded paths, e.g. to /sw which is used by Fink. So usually it will work, but having anything installed in /usr/local will definitely cause problems for it.


I don't know pkgsrc enough to say if it is really affected the same way, but my best guess is that this problem applies to it as well.


There don't seem to be any open bugs for digikam or grass in MacPorts. You should report your problems to them directly with new tickets to get assistance.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...