Macport Pass Dependency

Is it possible to install the port also if the dependency cannot be built?

I mean, I need to install texlive, and this requires a lot of dependency, and one of them (py26-libxml2) cannot be created. Is there any way to skip it?

I know this is safe, but I need it, and I don't want to install tex with MacTex.

Thanks, Luke

+7
source share
1 answer

Note before starting: removing dependencies can break the assembly, so be prepared to troubleshoot. Of course, there is no guarantee of success. Google may help with build errors, but it will only be so far. Perhaps you should try to find out why py26-libxml2 is called first.

Change Dependencies

It looks like you can edit the list of dependencies. The trick is that you already need to know what depends on py26-libxml2. you can use

port rdeps texlive 

to see the base tree, but each port will only be displayed once, unless you use --full, which takes forever for texlive.

Once you find the dependent, you can change your dependencies locally through the downloaded Portfile.

 sudo port edit PORTNAME 

Then you must remove the dependency from depend_lib or depend_lib-append. I don't know much about the format, so ...

You must back up this file before editing. His location can be found through

 port file PORTNAME 

After editing, you can run rdeps again to see if any other dependency is using the one you want to skip.

+9
source

All Articles