[100023] trunk/dports/devel/codeblocks/Portfile

Ryan Schmidt ryandesign at macports.org
Sat Nov 24 13:49:25 PST 2012


On Nov 24, 2012, at 05:00, afb at macports.org wrote:

> Revision: 100023
>          https://trac.macports.org/changeset/100023
> Author:   afb at macports.org
> Date:     2012-11-24 03:00:15 -0800 (Sat, 24 Nov 2012)
> Log Message:
> -----------
> codeblocks: use gcc not clang (#35072)
> 
> Modified Paths:
> --------------
>    trunk/dports/devel/codeblocks/Portfile
> 
> Modified: trunk/dports/devel/codeblocks/Portfile
> ===================================================================
> --- trunk/dports/devel/codeblocks/Portfile	2012-11-24 09:56:38 UTC (rev 100022)
> +++ trunk/dports/devel/codeblocks/Portfile	2012-11-24 11:00:15 UTC (rev 100023)
> @@ -4,7 +4,7 @@
> 
> name			codeblocks
> version			10.05
> -revision		1
> +revision		2
> platforms		darwin freebsd
> categories		devel aqua x11
> maintainers		afb
> @@ -24,6 +24,11 @@
> 			sha1 b7697f512de69ad731f0febac4b91bb6c605fa57 \
> 			rmd160 a1b4e93f4cc41ae6b7fd955689dae8648f0fd2f9
> 
> +# apparently only works with gcc
> +if {${configure.compiler} == "clang"} {
> +    configure.compiler gcc
> +}
> +

"gcc" is an alias, not a specific compiler, so it should not be used in configure.compiler. On latest Xcode for example, "gcc" is a symlink to llvm-gcc. What you probably should write is:

compiler.blacklist clang

And add a comment above that, referencing the upstream bug port about the problem. If there isn't one yet, please file one; blacklisting compilers is meant to be a temporary measure.



More information about the macports-dev mailing list