2.6.0 features

Ryan Schmidt ryandesign at macports.org
Sat Oct 5 13:30:18 UTC 2019



On Oct 5, 2019, at 07:14, Joshua Root wrote:

> It has now been the customary 2 weeks since the release of MacPorts
> 2.6.0, so the new features can be freely used in portfiles. In particular:
> 
> * New compiler selection options. You can specify required C or C++
> standard versions, and/or specify that Fortran, OpenMP, MPI, or TLS is
> required. The cxx11 portgroup should no longer be necessary; simply set
> 'compiler.cxx_standard 2011' instead (and newer standards are supported
> just as easily). Some documentation has been written at
> <https://trac.macports.org/wiki/CompilerSelection>.

I was sad to discover that this does not automatically set the `-std=...` flag in cflags/cxxflags.


> * Ports that need a full Xcode installation to build should set
> 'use_xcode yes'. This is set automatically if build.type is 'xcode'.
> Ports that don't set this option to 'yes' are assumed to be able to be
> built with just the Command Line Tools, and MacPorts won't warn about
> Xcode being missing.

Is this the explanation for why ports like VLC2 don't build anymore?

https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/99080/steps/install-port/logs/stdio

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance





More information about the macports-dev mailing list