Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 326497 - >=dev-lang/mono-2.6: [patch] Enable .NET 4.0 profile
Summary: >=dev-lang/mono-2.6: [patch] Enable .NET 4.0 profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: dotnet project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 17:43 UTC by Ron MacNeil
Modified: 2010-09-07 21:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch to enable .NET 4.0 profile (mono-2.6.4.ebuild.patch,307 bytes, patch)
2010-07-01 17:44 UTC, Ron MacNeil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ron MacNeil 2010-07-01 17:43:40 UTC
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
Comment 1 Ron MacNeil 2010-07-01 17:44:10 UTC
Created attachment 237163 [details, diff]
Ebuild patch to enable .NET 4.0 profile
Comment 2 Ron MacNeil 2010-08-31 23:33:39 UTC
This bug is still relevant for dev-lang/mono-2.6.7
Comment 3 Pacho Ramos gentoo-dev 2010-09-01 08:33:43 UTC
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
Comment 4 Ron MacNeil 2010-09-01 14:42:36 UTC
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
Comment 5 Pacho Ramos gentoo-dev 2010-09-07 21:06:25 UTC
+  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).