Bug 1951312

Summary: dotnet3.1: FTBFS in Red Hat Enterprise Linux 9 CentOS Stream
Product: Red Hat Enterprise Linux 9 Reporter: Mohan Boddu <mboddu>
Component: dotnet3.1Assignee: Omair Majid <omajid>
Status: CLOSED CURRENTRELEASE QA Contact: Radka Gustavsson <rjanekov>
Severity: unspecified Docs Contact: Levi <lvaleeva>
Priority: unspecified    
Version: CentOS StreamKeywords: Triaged
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: dotnet3.1-3.1.115-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-08 16:02:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1951115    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Mohan Boddu 2021-04-19 21:33:34 UTC
dotnet3.1 failed to build from source in Red Hat Enterprise Linux 9 CentOS Stream

https://kojihub.stream.rdu2.redhat.com//koji/taskinfo?taskID=247692


Please fix dotnet3.1 at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it.

Comment 1 Mohan Boddu 2021-04-19 21:33:37 UTC
Created attachment 1773561 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Mohan Boddu 2021-04-19 21:33:38 UTC
Created attachment 1773562 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Mohan Boddu 2021-04-19 21:33:39 UTC
Created attachment 1773563 [details]
state.log

Comment 4 Omair Majid 2021-04-20 03:24:22 UTC
This is the first time I am seeing the `centos.9-x64` runtime id. That runtime id is generated from `${ID}.${VERSION_ID}-x64` after parsing /etc/os-release. That's not known to .NET, so it fails the build.

Is there some authoritative document/statement that calls out the "official" value of /etc/os-release for RHEL 9 and CentOS (Stream) 9?

Comment 5 Omair Majid 2021-04-20 16:21:20 UTC
Asked on chat and got an answer.

# cat /etc/os-release 
NAME="CentOS Stream"
VERSION="9"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="9"
PLATFORM_ID="platform:el9"
PRETTY_NAME="CentOS Stream 9"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:9"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"