Bug 2021763 - Update dotnet to the 6.0 version
Summary: Update dotnet to the 6.0 version
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: dotnet5.0
Version: 35
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Omair Majid
QA Contact:
URL:
Whiteboard:
: 2022928 2032762 (view as bug list)
Depends On: 2027818
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-10 06:35 UTC by Anton Kochkov
Modified: 2022-01-01 17:30 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-01 17:30:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Anton Kochkov 2021-11-10 06:35:14 UTC
Update .NET to the major version 6.0. This is a new major release. It is an Long-Term-Supported (LTS) release. It is expected to be supported upstream for about 3 years and End-of-Life'd around the end of 2024, or maybe early 2022.

See all details and changes at https://devblogs.microsoft.com/dotnet/announcing-net-6/


There exists bug for RHEL but not for Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2016419

Comment 1 Omair Majid 2021-11-10 15:20:58 UTC
Thanks for filing this. 

I haven been working on the preview builds here: https://pagure.io/dotnet-sig/dotnet6.0

Unfortunately, we couldn't package them because they didn't meet the Fedora packaging guidelines. In particular, until the GA release, .NET 6 could not be bootstrapped and it needed non-open source components to build and run.

All that has been fixed with the .NET 6 GA release, and I am working on adding that to Fedora. I expect it will take a few weeks to do the builds, go through the package review and then build/release packages for the supported Fedora versions (34, 35 and 36).

Comment 2 Omair Majid 2021-11-11 21:18:00 UTC
Update: I have it building on Fedora 34, but I am seeing strange hangs in msbuild on Fedora 35. We will need to debug and fix this.

Comment 3 Omair Majid 2021-11-22 13:24:23 UTC
Another update.

Fedora 35 and later have clang 13. Building .NET 6 with that results in a broken build, where things (eg, crossgen2) just hang at runtime. It could be a bug in clang 13, could be an issue in .NET or maybe in another system component entirely, we are not sure. Building with (a self-built) clang 12 works, though. We don't have any other usable version of clang in Fedora 35, so until we identify and fix this issue, we are unlikely to make more progress on packaging .NET 6 for Fedora.

For more technical details, see:

- https://pagure.io/dotnet-sig/dotnet6.0/issue/1
- https://github.com/dotnet/runtime/issues/61671

Comment 4 Jakub Adamík 2021-11-30 11:00:43 UTC
Update: According to https://github.com/dotnet/runtime/issues/61671, issue was fixed.

Comment 5 Omair Majid 2021-11-30 18:34:13 UTC
*** Bug 2022928 has been marked as a duplicate of this bug. ***

Comment 6 Omair Majid 2021-11-30 18:48:47 UTC
This is the package review for adding .NET 6 to Fedora: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2027818

Comment 7 Omair Majid 2021-12-01 16:06:30 UTC
I finally got copr to build this package:

https://copr.fedorainfracloud.org/coprs/g/dotnet-sig/dotnet-preview/build/2995361/

It works on x86_64 and aarch64 on Fedora 34 and 35. There's a build error on s390x, which doesn't sound too urgent, because we can just skip s390x for now. The most worrisome is that there's a build error on x86_64 on Rawhide (another crash in crossgen2), which looks very similar to the just-fixed https://github.com/dotnet/runtime/issues/61671. We know the fix for 61671 is working, otherwise the build would fail on Fedora 35 as well. There might be another clang 13 issue?

Comment 8 Omair Majid 2021-12-01 23:07:28 UTC
The crash seems to be caused by lttng-ust. The version in Fedora rawhide is incompatible with .NET: https://github.com/dotnet/runtime/issues/57784

Comment 9 Alessandro 2021-12-16 14:12:17 UTC
Hi

Is there any news regarding this since building works on fedora 35 but it is still not available in the default repos?
Not to be impatient, all work is appreciated!

Kind regards

Comment 10 Omair Majid 2021-12-21 16:46:23 UTC
*** Bug 2032762 has been marked as a duplicate of this bug. ***

Comment 11 Omair Majid 2021-12-21 16:51:36 UTC
I have built .NET 6 for all supported Fedora versions now.

Installing it should be a matter of `dnf install dotnet-sdk-6.0` when it's available.

Rawhide: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4df64a6e1a
  This should be available in the next compose (hopefully later today?)

Fedora 35: https://bodhi.fedoraproject.org/updates/FEDORA-2021-9f61773163
  This is getting pushed to the updates-testing repository. Please see 
  https://fedoraproject.org/wiki/How_to_test_updates#Steps_to_follow on
  how to enable the updates-testing repository. Once it has been tested
  (users provide positive karma or it reaches the 7 day waiting period),
  it should become available in the main Fedora 35 repository.

Fedora 34: https://bodhi.fedoraproject.org/updates/FEDORA-2021-22cd8b68c0
  This is getting pushed to the updates-testing repository. Please see 
  https://fedoraproject.org/wiki/How_to_test_updates#Steps_to_follow on
  how to enable the updates-testing repository. Once it has been tested
  (users provide positive karma or it reaches the 7 day waiting period),
  it should become available in the main Fedora 34 repository.

Comment 12 Alessandro 2021-12-26 17:07:04 UTC
Thank you so much Omair,

Happy holidays

Comment 13 Omair Majid 2022-01-01 17:30:48 UTC
Packages for .NET 6 are now available in Fedora 34, Fedora 35 and Rawhide.


Note You need to log in before you can comment on or make changes to this bug.