-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release/6.0.1xx] Fix build against musl #13410
Conversation
problem: I thought my implementation of OSPlatformIsMuslCheck worked, but alas it doesn't. Can't have elements in Directory.Build.props, either. Anyways have any pointers to check if building with musl without using ldd? |
@omajid My understanding of
in Directory.Build.props, and set
But, within |
I think this is a @crummel @lbussell @MichaelSimons any suggestions on how we can initialize properties that depend on values we get by running a target? |
How about defining a InitTargetRid task that encapsulates the logic necessary to compute the RIDs and invoke it as part of InitBuild in build.proj? FYI - There is a conflicting RID related change that should be pulled in first. |
@ayakael - Is this something you are still able to contribute to? |
fdb38b2
to
7f3a74c
Compare
@MichaelSimons To be honest trying to figure this out is, for me, like throwing spaguetti at the wall to see if it sticks. In other words, when it comes to As you can see, my last push is broken. Building installer gives me the following error:
This is probably because I'm trying to write the |
@ayakael, I'll take a look and see if I can help out. Just to set expectations, it will more than likely take me a bit due to other priorities. |
@MichaelSimons I appreciate that :) There is no rush, I've got a patch going for the Alpine package that works fine, it's just not portable as it forces musl build. Building with that patch on Fedora would force musl and break the build. This PR is simply to get this to an upstream state to help ya'll out for when Microsoft moves over to the community source-build (eventually). |
WIth #14549, this is no longer necessary for source-build use-case. linux-musl-$arch is still broken though, due to @MichaelSimons Is this use-case something that should be fixed? |
Note that #14549 against rc1, the
Thus, there needs to be a fix implemented, but it'll be much smaller now that aspnetcore is non-portable. |
Closing in favor of #14816 |
Description
Proper implementation of changes discussed in dotnet/source-build#2782
Includes aspnetcore patch that is a workaround till dotnet/aspnetcore#37400 is addressed.
Related PRs
dotnet/command-line-api#1673
Made as part of Alpine Linux dotnet6 packaging project, see dotnet/source-build#2782