[MacPorts] PortfileRecipes modified

MacPorts noreply at macports.org
Mon Aug 26 00:22:59 PDT 2013


Page "PortfileRecipes" was changed by jeremyhu at macports.org
Diff URL: <https://trac.macports.org/wiki/PortfileRecipes?action=diff&version=71>
Revision 71
Comment: Show globs in the compiler.blacklist example and remove block that is no longer relevant with base 2.2
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: PortfileRecipes
=========================================================================
--- PortfileRecipes (version: 70)
+++ PortfileRecipes (version: 71)
@@ -375,28 +375,20 @@
 If your port works with clang but not llvm-gcc-4.2, do this:
 
 {{{
-compiler.blacklist llvm-gcc-4.2
+compiler.blacklist *llvm-gcc-4.2
 }}}
 
 If your port works with llvm-gcc-4.2 but not clang, do this:
 
 {{{
-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.
-
-{{{
-if {${configure.compiler} eq "llvm-gcc-4.2"} {
-    configure.compiler gcc-4.2
-} elseif {${configure.compiler} eq "clang"} {
-    depends_build-append port:apple-gcc42
-    depends_skip_archcheck-append apple-gcc42
-    configure.compiler apple-gcc-4.2
-}
-}}}
-
-This snippet is taken from [http://lists.macosforge.org/pipermail/macports-dev/2012-January/017515.html this message on macports-dev].
+compiler.blacklist *clang*
+}}}
+
+Note that the globs are used to match patterns in the name.  The first example above will also match macports-llvm-gcc-4.2, and the second example will also match macports-clang-*.
+
+If your port works with neither clang nor llvm-gcc-4.2, the fallback will be to gcc-4.2 (provided by the apple-gcc-4.2 port if it's not available).  It is becoming increasingly important that ports build successfully with clang since it has been the default compiler since Xcode 4.2, and Apple no longer supports the use of gcc.
+
+If your port fails to build with the most recent current versions of clang, please file bugs upstream to fix issues when building with clang, and reference these bug reports in the Portfile, so other developers can followup.
 
 == Providing compiler variants == #gcc
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/PortfileRecipes>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'PortfileRecipes' page.
If it was not you, please report to .


More information about the macports-changes mailing list