9/10/2023 0 Comments Macports trac![]() Note that if you still need additional help debugging a dependency cycle like this, there is a pull request against this script that may improve things: A workaround is to reduce your list of ports to install, until it no longer has a dependency cycle. One cause of this problem is a "dependency cycle": port A depends directly or indirectly on port B, while port B depends on port A. Each port has some obstacle that prevents it from being the next to install. It indicates that the script has a list of ports to install, and it can't figure out which of the ports to install next. If you see an "infinite loop" error message, such as this: You may skip explicitly installing ports that you did not request as long as they are not using non-default variants since they will be installed as dependencies of other ports. Note that if you have specified variants which are not the default, you may need to install ports in an order other than the alphabetical order recorded in myports.txt. Sudo port install portname +variant1 +variant2 … In the worst case, you can reinstall your ports manually by browsing myports.txt and installing the ports one by one, remembering to specify the appropriate variants: You may need to do this multiple times if there are multiple conflicting ports listed. If the script fails, for this reason, you can delete one of the conflicting ports from myports.txt and then simply run the script again. It's possible to have conflicting ports installed provided at most one of the conflicting set is active. One known issue is that the script will fail if there are conflicting ports in the list. Though it is now quite well-tested, the restore_ports script may fail in some cases. Double-check your desired ports are set as requested with port echo requested. Edit requested.txt to remove any ports that were not installed and repeat this step. Warning: if a port in requested.txt was not installed in the previous step, the iterative setrequested will terminate, leaving some ports still marked as not-requested. Xargs sudo port setrequested < requested.txt If you saved the list of requested ports, you can now restore the requested flags for your newly installed ports to their former states. Note: ports that are not available on your new platform will be skipped, with only a warning message. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p option when you run restore_ports.tcl see.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |