[MacPorts] Migration modified

MacPorts noreply at macports.org
Wed Dec 28 23:54:53 CET 2016


Page "Migration" was changed by adfernandes
Diff URL: <https://trac.macports.org/wiki/Migration?action=diff&version=98>
Revision 98
Comment: Add a 'troubleshooting' note for when the restore uses too many open files.
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: Migration
=========================================================================
--- Migration (version: 97)
+++ Migration (version: 98)
@@ -67,3 +67,9 @@
 sudo port install portname +variant1 +variant2 …
 }}}
 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`. 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.
+
+Another potential problem is that the `restore_ports.tcl` command may fail with a `Too many open files` error message. Under macOS Sierra, the default shell has a default `ulimit` of 256 open files. The solution is to restore the ports with a slightly modified command:
+{{{
+sudo bash -c "ulimit -n 4096; ./restore_ports.tcl myports.txt"
+}}}
+This will raise the file limit for the duration of the `restore_ports.tcl` command.
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/Migration>
MacPorts <https://www.macports.org/>
Ports system for macOS

This is an automated message. Someone added your email address to be
notified of changes on 'Migration' page.
If it was not you, please report to admin at macports.org.


More information about the macports-changes mailing list