Skip to content

Install common error library in OpenBSD rootfs - #17027

Merged
jkotas merged 3 commits into
dotnet:mainfrom
am11:patch-18
Jun 22, 2026
Merged

Install common error library in OpenBSD rootfs#17027
jkotas merged 3 commits into
dotnet:mainfrom
am11:patch-18

Conversation

@am11

@am11 am11 commented Jun 18, 2026

Copy link
Copy Markdown
Member

We need libcom_err.a for NativeAOT shared libraries publish: dotnet/runtime#129580.

@am11

am11 commented Jun 18, 2026

Copy link
Copy Markdown
Member Author

cc @akoeplinger, @janvorli

@am11

am11 commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

Sync'd change from dotnet/runtime#129572 as next VMR sync in runtime is reverting it.

@jkotas jkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@jkotas

jkotas commented Jun 22, 2026

Copy link
Copy Markdown
Member

From dotnet/runtime#129580 : "Of course we can't link pure static executable / library with .so reference"

Why do we need to create pure static executables on OpenBSD? Our default story everywhere else is to reference .so for system dependencies.

@am11

am11 commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

It's mainly for -p:StaticExecutable=true and -p:NativeLib=Static options. This library is in actual VM with standard install, it was missing from rootfs.

@jkotas

jkotas commented Jun 22, 2026

Copy link
Copy Markdown
Member

Do we carry the dependencies required by -p:StaticExecutable=true in the rootfs for Linux?

@am11

am11 commented Jun 22, 2026

Copy link
Copy Markdown
Member Author

Yes, usually they are in the same package. In case of OpenBSD, /crossrootfs/x64/usr/local/heimdal/lib/libkrb5.a is also available, but the difference is that we aren't using their package manager pkg_add to install it but rather wget/curl, which doesn't pull the dependencies. We manually worked out the few dependencies we needed.

@jkotas
jkotas merged commit 69f2416 into dotnet:main Jun 22, 2026
10 checks passed
@am11
am11 deleted the patch-18 branch June 22, 2026 10:11
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 25, 2026
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