Mono 2.6.x provides (optional) .NET 4.0 support. This is not currently enabled in the ebuild. Attached ebuild patch enables it. Tested and works fine here on: Linux mini 2.6.34-gentoo-r1 #4 SMP Thu Jun 24 11:33:36 PDT 2010 i686 Genuine Intel(R) CPU 1300 @ 1.66GHz GenuineIntel GNU/Linux Below is a blurb from the Mono website: http://www.mono-project.com/Release_Notes_Mono_2.6 Early 4.0 APIs This release includes partial support for C# 4.0 and includes some of the upcoming .NET 4.0 APIs. Since these APIs have not officially been completed by Microsoft, they could change without notice. If you want to try out C# 4.0 and the new .NET 4.0 APIs, you should configure Mono with: --with-profile4=yes. Reproducible: Always
Created attachment 237163 [details, diff] Ebuild patch to enable .NET 4.0 profile
This bug is still relevant for dev-lang/mono-2.6.7
I am unsure about building it since their APIs have not been finished yet: http://www.mono-project.com/Release_Notes_Mono_2.6#Early_4.0_APIs I would prefer to wait for mono-2.8
Hello Pacho, I appreciate your position and agree with the sentiment in general. However a couple of points to consider: - Since those release notes were written, Microsoft .NET 4 has been shipped, so the 'standard' as such is final: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0a391abd-25c1-4fc0-919f-b21f31ab88b7 - The (partial) .NET 4 support in Mono lives in a new, separate compiler 'dmcs' built in addition to the existing compilers 'mcs', 'gmcs', etc. So unless a developer specifically chooses said new compiler, they are not affected. In other words, the new features are 'opt-in' and 'off-by-default'. - For those of use who do want/require .NET 4 support, the portions of that support that are present in Mono 2.6 are still very useful. I am personally one of those developers, and I can say anecdotally that I've been making daily use of, for example, Mono's C# 4.0 covariance/contravariance for about 6 months running with no problems. I hope you'll take these point into consideration and, whatever the outcome, thanks for your work on the ebuild. Regards, Ron
+ 07 Sep 2010; Pacho Ramos <pacho@gentoo.org> mono-2.6.7.ebuild, + metadata.xml: + Drop PDEPEND on pe-format (bug #333907 by Michał Górny), fix build on + hardened (bug #286280 by Jason Mattax and fix by Magnus Granberg) and + allow people to enable .NET 4.0 profile if they want (bug #326497 by Ron + MacNeil).