Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update eng/native/init-distro-rid.sh
This way is better

Co-authored-by: Adeel Mujahid <[email protected]>
  • Loading branch information
eabdullin1 and am11 authored Dec 2, 2021
commit 62b760f485dd5dba1961fbd2ea355088e611fbc7
4 changes: 2 additions & 2 deletions eng/native/init-distro-rid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ initNonPortableDistroRid()
# We have forced __PortableBuild=0. This is because -portablebuld
# has been passed as false.
if (( isPortable == 0 )); then
if [[ "${ID}" == "rhel" || "${ID}" == "rocky" || "${ID}" == "almalinux" ]]; then
# remove the last version digit
# for RHEL and its derivatives, remove the last version digit (if present)
if [[ "${ID}" == "rhel" || "${ID_LIKE}" =~ .*rhel.* ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this also affect centos and fedora?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition matches centos but not fedora.
After that value on centos is not affected by the line below, so it is only for distros which we have version / release policy like RHEL and are derivatives of that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, these PRs are not really needed, unless the distro really wants to create a "non-portable" release of .NET and provide some distro-specific packages.

https://dotnet.microsoft.com/download/dotnet/thank-you/sdk-6.0.100-linux-x64-binaries works for any glibc-based linux distro..

non-portable is only used by source builds for a long time now, elsewhere we all use portable binaries, so these PRs are less meaningful.

VERSION_ID="${VERSION_ID%.*}"
fi

Expand Down