[114733] users/landonf/openjdk7/dports/java/openjdk6/Portfile

Landon Fuller landonf at macports.org
Fri Dec 27 05:56:08 PST 2013


On Dec 22, 2013, at 3:11 , Ryan Schmidt <ryandesign at macports.org> wrote:

Hey Ryan --

Thanks for looking into this.

> This will unnecessarily make users of Xcode < 5 install the llvm-gcc42 port, when they have a perfectly good version of llvm-gcc42 provided by Xcode. Rather than this, you should use compiler.blacklist. For example, if no clang compiler will work, blacklist all of them with:
> 
> compiler.blacklist *clang*

I think I'd need 'compiler.whitelist macports-llvm-gcc-4.2 llvm-gcc-4.2' to make sure I always get a consistent compiler? There's an extensive test suite I ran with a JVM built against llvm-gcc4.2, and I hesitate to throw any variables into the mix.

> MacPorts will pick the next-best compiler, which will be llvm-gcc42, either the version provided by Xcode or the one provided by MacPorts, depending on what’s available. You can then use the variables ${configure.cc}, ${configure.cxx}, etc. where you need them.

Will this actually work with llvm-gcc? Apple is still shipping 'gcc' and 'llvm-gcc' binaries/symlinks, but they're pointed at clang; won't find_developer_tool still pick them up?

	landonf at lambda:~> llvm-gcc -v
	Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

	landonf at lambda:~> llvm-gcc --help   
	OVERVIEW: clang LLVM compiler
	[snip]

	landonf at lambda:~> gcc -v
	Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
	Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

	landonf at lambda:~> gcc --help
	OVERVIEW: clang LLVM compiler
	[snip]

Shipping an incompatible compiler as 'gcc' and 'llvm-gcc' was an absolutely ridiculous decision on the part of Apple's developer tools team, but they didn't ask me.

-landonf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20131227/9a7cfb72/attachment.sig>


More information about the macports-dev mailing list