[90802] trunk/base/src/macports1.0/macports.tcl

cal at macports.org cal at macports.org
Wed Mar 14 17:03:07 PDT 2012


Revision: 90802
          https://trac.macports.org/changeset/90802
Author:   cal at macports.org
Date:     2012-03-14 17:03:07 -0700 (Wed, 14 Mar 2012)
Log Message:
-----------
Warn if developer_dir is set but doesn't exist

Apparently MacPorts <= 1.8 shipped a config file with developer_dir set to
/Developer, which causes a number of problems now

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2012-03-14 20:42:27 UTC (rev 90801)
+++ trunk/base/src/macports1.0/macports.tcl	2012-03-15 00:03:07 UTC (rev 90802)
@@ -1041,6 +1041,12 @@
         } else {
             set macports::developer_dir ""
         }
+    } else {
+        if {$os_platform == "darwin" && ![file isdirectory $developer_dir]} {
+            ui_warn "Your developer_dir setting in macports.conf points to a non-existing directory.\
+                Since this is known to cause problems, please correct the setting or comment it and let\
+                macports auto-discover the correct path."
+        }
     }
 
     if {[getuid] == 0 && $os_major >= 11 && $os_platform == "darwin" && [vercmp $xcodeversion 4.3] >= 0} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120314/5e776cbd/attachment.html>


More information about the macports-changes mailing list