Skip to content

Add non-portable RID for OpenBSD#16564

Open
am11 wants to merge 2 commits intodotnet:mainfrom
am11:patch-18
Open

Add non-portable RID for OpenBSD#16564
am11 wants to merge 2 commits intodotnet:mainfrom
am11:patch-18

Conversation

@am11
Copy link
Member

@am11 am11 commented Mar 3, 2026

Missed in the previous PR.

@am11
Copy link
Member Author

am11 commented Mar 3, 2026

cc @akoeplinger, @sethjackson

__freebsd_major_version=$("$rootfsDir"/bin/freebsd-version | cut -d'.' -f1)
nonPortableRid="freebsd.$__freebsd_major_version-${targetArch}"
elif [ "$targetOs" = "openbsd" ]; then
nonPortableRid="openbsd.$(uname -r)-${targetArch}"
Copy link
Member Author

Choose a reason for hiding this comment

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

@sethjackson, it depends on general compat of platform. On FreeBSD, we only use major version. If we want the same, then it would become:

Suggested change
nonPortableRid="openbsd.$(uname -r)-${targetArch}"
nonPortableRid="openbsd.$(uname -r | cat -d'.' -f1)-${targetArch}"

Copy link
Contributor

Choose a reason for hiding this comment

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

AFAIK OpenBSD is not generally considered ABI compatible from point release to point release.
Eg. for 7.8 -> 7.9 things may work but there are no guarantees that they will.

I think the first option:
nonPortableRid="openbsd.$(uname -r)-${targetArch}"

Is the best one.

uname -r will give back 7.8

So then the RID will be something like:
openbsd.7.8-x64

It might be nice to have:
openbsd-78-x64

instead but regardless I'm good here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants