[135848] trunk/dports/devel/dbus/Portfile

cal at macports.org cal at macports.org
Tue May 5 10:08:07 PDT 2015


Revision: 135848
          https://trac.macports.org/changeset/135848
Author:   cal at macports.org
Date:     2015-05-05 10:08:06 -0700 (Tue, 05 May 2015)
Log Message:
-----------
dbus: Avoid trashing the root user on root installations when installation is attempted with +no_root, #45737

Executing "add_users root" currently trashes the root user when executed. The
code that actually modifies the user database runs before extract and again
before installation. Avoid actually getting to this point by erroring out
early.

This is a safety measure until the underlying problem in MacPorts base is
fixed.

Modified Paths:
--------------
    trunk/dports/devel/dbus/Portfile

Modified: trunk/dports/devel/dbus/Portfile
===================================================================
--- trunk/dports/devel/dbus/Portfile	2015-05-05 15:06:12 UTC (rev 135847)
+++ trunk/dports/devel/dbus/Portfile	2015-05-05 17:08:06 UTC (rev 135848)
@@ -274,8 +274,8 @@
 }
 
 variant no_root conflicts underscore description {Run the DBUS daemon as MacPorts install user.} {
-    pre-configure {
-        if { ${install.user}=="root" || ${install.group}=="wheel" } {
+    pre-fetch {
+        if {${install.user} eq "root" || ${install.group} eq "wheel"} {
             ui_error "The DBUS daemon should not be run as root."
             error "Please do not use this variant with your MacPorts configuration."
         }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150505/936552b5/attachment.html>


More information about the macports-changes mailing list