[MacPorts] PortfileRecipes modified

MacPorts noreply at macports.org
Sun Sep 9 11:05:33 PDT 2012


Changed page "PortfileRecipes" by ryandesign at macports.org from 70.114.147.232*
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=41>
Revision 41
Comment: rewrite first two compiler override blocks to use compiler.blacklist instead

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 40)
+++ PortfileRecipes (version: 41)
@@ -257,25 +257,20 @@
 
 == Specifying which compiler to use based on the version of Xcode == #compiler
 
-As of MacPorts 2, the default value of configure.compiler is chosen based on Xcode version instead of OS X version. If a certain compiler won't build your port, test whether that compiler has been chosen, and then set a different compiler that does work. When choosing an alternate compiler, keep in mind that as of Xcode 4, we would prefer ports build with clang. If that's not possible, use llvm-gcc-4.2. If neither work, use gcc-4.2, but provide a fallback to apple-gcc-4.2.
+As of MacPorts 2, the default value of configure.compiler is chosen based on Xcode version instead of OS X version.
+If a certain compiler won't build your port, blacklist it, and MacPorts will select the next-best compiler.
 
 If your port works with clang but not llvm-gcc-4.2, do this:
 
 {{{
-if {${configure.compiler} == "llvm-gcc-4.2"} {
-    configure.compiler clang
-}
+compiler.blacklist llvm-gcc-4.2
 }}}
 
 If your port works with llvm-gcc-4.2 but not clang, do this:
 
 {{{
-if {${configure.compiler} == "clang"} {
-    configure.compiler llvm-gcc-4.2
-}
-}}}
-
-These snippets are taken from [http://lists.macosforge.org/pipermail/macports-dev/2011-July/015263.html this message on macports-dev].
+compiler.blacklist clang
+}}}
 
 If your port works with neither clang nor llvm-gcc-4.2, use gcc-4.2; since on Xcode 4.2 and up (i.e. where the default compiler is clang) there is no included version of gcc-4.2, use apple-gcc-4.2 in that case. Use of this block should be considered a temporary stopgap measure. Please file a bug report with the upstream developers of the software so they can fix it to work with clang and llvm-gcc-4.2. Put a reference to the upstream bug report in the Portfile.
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on PortfileRecipes. If it was not you, please
report to .


More information about the macports-changes mailing list