[MacPorts] ProblemHotlist modified

MacPorts noreply at macports.org
Thu May 16 13:10:08 PDT 2013


Page "ProblemHotlist" was changed by larryv at macports.org
Diff URL: <https://trac.macports.org/wiki/ProblemHotlist?action=diff&version=101>
Revision 101
Comment: discourage use of root login shells; add option of running base from trunk
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: ProblemHotlist
=========================================================================
--- ProblemHotlist (version: 100)
+++ ProblemHotlist (version: 101)
@@ -248,6 +248,28 @@
 sudo ./repairfilemap.tcl
 }}}
 
-== Hanging commands on Mountain Lion == #hangs
-Mountain Lion made some changes to CoreFoundation, such as the creation of the [http://developer.apple.com/library/mac/#releasenotes/CoreFoundation/CoreFoundation.html cfprefsd] daemon. This can cause some processes to hang for users who have logged in as root.
-A patch to solve this issue was committed in r104118 and is available to MacPorts users who are using trunk for their base. It will reach the rest of the MacPorts users once MacPorts 2.2 is released. In the meantime, users experiencing this issue can export `__CFPREFERENCES_AVOID_DAEMON=1` to their shell environment, and then add `__CFPREFERENCES_AVOID_DAEMON` to the environment variables to keep with the `extra_env` option in the user's `macports.conf` file.
+== Hanging commands on Mountain Lion == #mtln-hangs
+
+'''Symptom'''
+
+Running MacPorts 2.1.3 or older under a root login shell on Mountain
+Lion may hang indefinitely; this is due to
+[http://developer.apple.com/library/mac/#releasenotes/CoreFoundation/CoreFoundation.html certain changes in CoreFoundation].
+A workaround has been [[changeset:104118|committed to trunk]] and will
+be released in a future version of MacPorts.
+
+'''Workaround'''
+
+The recommended way to avoid this issue is to avoid running MacPorts in
+root login shells. Non-login root shells are fine.
+||= =||= DO =||= DON’T =||
+||= Non-interactive =|| `sudo port …`\\`su -c port …` || `su - -c port …` ||
+||= Interactive =|| `sudo -s`\\`su` || `sudo -i`\\`sudo su -`\\`su -` ||
+
+If you absolutely must use a root login shell, you can
+1. [[howto/RunningTrunk|run MacPorts from trunk]], or
+2. work around the problem by setting !__CFPREFERENCES_AVOID_DAEMON to “1” in the environment and configuring MacPorts to preserve it in macports.conf:
+{{{
+extra_env   __CFPREFERENCES_AVOID_DAEMON
+}}}
+Note that using `extra_env` is unsupported.
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/ProblemHotlist>
MacPorts <http://www.macports.org/>
Ports system for OS X

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


More information about the macports-changes mailing list