[142489] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

dstrubbe at macports.org dstrubbe at macports.org
Sat Dec 12 05:58:29 PST 2015


Revision: 142489
          https://trac.macports.org/changeset/142489
Author:   dstrubbe at macports.org
Date:     2015-11-12 16:40:49 -0800 (Thu, 12 Nov 2015)
Log Message:
-----------
compilers portgroup: Bugfix for compilers.enforce_c and compilers.enforce_fortran. In principle, they accepted a list of ports, but in practice a list supplied in a single statement would get enclosed in braces, and considered as a single (meaningless) item in the actual action. Now, the list appending is done correctly.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/compilers-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2015-11-13 00:37:27 UTC (rev 142488)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl	2015-11-13 00:40:49 UTC (rev 142489)
@@ -495,7 +495,9 @@
 
 proc compilers.enforce_c {args} {
     global compilers.required_c
-    lappend compilers.required_c $args
+    foreach portname $args {
+        lappend compilers.required_c $portname
+    }
 }
 
 proc compilers.action_enforce_c {args} {
@@ -520,7 +522,9 @@
 
 proc compilers.enforce_fortran {args} {
     global compilers.required_f
-    lappend compilers.required_f $args
+    foreach portname $args {
+        lappend compilers.required_f $portname
+    }
 }
 
 proc compilers.action_enforce_f {args} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/52ae7c71/attachment.html>


More information about the macports-changes mailing list