[58224] trunk/dports/lang

jann at macports.org jann at macports.org
Thu Sep 24 07:12:41 PDT 2009


Revision: 58224
          http://trac.macports.org/changeset/58224
Author:   jann at macports.org
Date:     2009-09-24 07:12:41 -0700 (Thu, 24 Sep 2009)
Log Message:
-----------
Give write permissions to precomp directory for admin users

Modified Paths:
--------------
    trunk/dports/lang/eiffelstudio64/Portfile
    trunk/dports/lang/eiffelstudio65/Portfile

Modified: trunk/dports/lang/eiffelstudio64/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio64/Portfile	2009-09-24 13:53:43 UTC (rev 58223)
+++ trunk/dports/lang/eiffelstudio64/Portfile	2009-09-24 14:12:41 UTC (rev 58224)
@@ -111,6 +111,11 @@
                       system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt.ecf -c_compile -clean"
                       system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt-safe.ecf -c_compile -clean"
                     }
+                    
+                    # Fix permissions of precompile directory
+                    set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
+                    file attributes $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
+                    file attributes $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
                   }
 
 post-install      {

Modified: trunk/dports/lang/eiffelstudio65/Portfile
===================================================================
--- trunk/dports/lang/eiffelstudio65/Portfile	2009-09-24 13:53:43 UTC (rev 58223)
+++ trunk/dports/lang/eiffelstudio65/Portfile	2009-09-24 14:12:41 UTC (rev 58224)
@@ -110,11 +110,11 @@
                       system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt.ecf -c_compile -clean"
                       #system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && ${compiler} -experiment -precompile -config vision2-mt-safe.ecf -c_compile -clean"
                     }
-                    if {[variant_isset fixpermissions]} {
-                      set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
-                      system "cd $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) && chmod -R 777 ."
-                      system "cd $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) && chmod -R 777 ."
-                    }
+                    
+                    # Fix permissions of precompile directory
+                    set env(ISE_EIFFEL) ${destroot}/${applications_dir}/Eiffel${branch}
+                    file attributes $env(ISE_EIFFEL)/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
+                    file attributes $env(ISE_EIFFEL)/experimental/precomp/spec/$env(ISE_PLATFORM) -permissions g+w
                   }
 
 post-install      {
@@ -130,8 +130,3 @@
 variant precompile description {Build the precompiles for EiffelBase and EiffelVision} {
                   # Build the precompiles in the destroot phase.
 }
-
-variant fixpermissions description {Makes the precompile directory shared and writable by all users.} {
-                  # This fixes the issue with users being unable to build precompiles but
-                  # it is a potential security risk on multi-user systems
-}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090924/c2b5f299/attachment.html>


More information about the macports-changes mailing list