-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
dotnet 3.1.108 (new formula) #60929
dotnet 3.1.108 (new formula) #60929
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work here, mostly some style issues to go
Looks like a missing header (maybe missing dependency?): https://github.com/Homebrew/homebrew-core/pull/60929/checks?check_run_id=1097197052#step:5:3938 |
daa2d98
to
ce3969a
Compare
I believe I have fixed all style problems now, but as @MikeMcQuaid writes, the build fails. 10.14 fails with the following error:
As mentioned, I've tried to declare Also, I'm not sure how to best fix the Then there's this, which I need help to decode:
10.15 fails with the following error, which I suppose I have to take to the .NET team. I do expect them to ask for the contents of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
What is this file?
These should be moved to
Thanks for checking 👍🏻
That means this isn't a
On the GitHub Actions workers: I don't think so, really. Someone on 10.15 (e.g. me) could do it locally for you and upload it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback left as issue comments.
ce3969a
to
b8fd848
Compare
It's the binary executable. Extracting all files from the build output tarball into
Is it possible to circumvent the complaints from
Indeed, I've made that change now with @SeekingMeaning's code review suggestion.
Since the failure seems consistent for 10.15, I would really appreciate if you coud! 🙏 |
Yes please!
It's ok, you can ignore it and it'll go away after this is merged.
Let me know exactly what you'd like me to run and what files to upload where and I will! |
282c49c
to
1c852da
Compare
👍
If you check out this PR and run |
1c852da
to
767833c
Compare
767833c
to
857ac6c
Compare
Running now, will edit with the result. EDIT: I suspect it's this, but I attached the log
|
Thanks, @SMillerDev! Does this mean I should add a dependency on |
I'm not sure how feasible either solution would be from a packaging standpoint. It might be better to report the issue upstream and see if they have a solution. |
Ideas on how we can proceed with the suggestions made in dotnet/source-build#1744 (comment) is welcome. As I don't have 10.15 and Microsoft themselves are unable to reproduce the problem, it would be incredible if @SMillerDev or someone else with 10.15 who are able to reproduce this can assist with the necessary debugging to figure out the source of this issue. 🙏 |
@dagood, I see. Thanks for elaborating.
It seems like Gist is used with homebrew-core/Formula/paperkey.rb Lines 21 to 24 in deaed66
So I suppose that with it we could create the file resource "patches/coreclr/0001-Fix-elf.h-file-not-found-on-macOS-10.15-1789.patch" do
url "https://gist.github.com/dagood/0ad394e4f73fd9f80ae85bc90de90296/raw/02b14212f024d56f477d1df85aac7997ddffcf1d/0001-Fix-elf.h-file-not-found-on-macOS-10.15-1789.patch"
sha256 "dedd27c5722fbd69afeaaef28c3f4e4299855be4842028cd74e0ce8c0156ab77"
end |
That's a patch of a patch. If you are placing this file under |
Thanks, @omajid. But it seems like I'm unable to use So unless I go about manually downloading the patch in |
Doesn't the formula control how
Why isn't the source available before install? It looks like it's normally fine: homebrew-core/Formula/fakeroot.rb Line 4 in 9591758
homebrew-core/Formula/fakeroot.rb Lines 27 to 30 in 9591758
|
To some extent, yes. It is, of course, "just Ruby", so I can do whatever I want, but I don't think doing whatever I want is going to get this PR accepted.
Indeed, I can. Thanks for the idea, I just found out I can do this: resource("0005-Fix-bad-configure-tests.patch").stage buildpath/"patches/coreclr/0005-Fix-bad-configure-tests.patch" I'm running a build with this in it just now, so fingers crossed this will work.
The |
87fddfe
to
e6e3c8c
Compare
Can you look at the source to see if the patch was applied? Seems like a simple check. For more details ( |
Seems like set(CMAKE_REQUIRED_FLAGS "-c -Werror=implicit-function-declaration")
Please have a look at |
e6e3c8c
to
97dc2b6
Compare
97dc2b6
to
e10b853
Compare
There we go, @MikeMcQuaid. The only failures now on all versions of macOS are:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for your contribution and incredible patience! Without people like you submitting PRs we couldn't run this project. You rock, @asbjornu!
Thanks for all the assistance to everyone involved, this was a team effort! ❤️ |
You're very welcome @asbjornu! CC me on the relevant GitVersion PR; I'm interested to see what it looks like after all this! |
Thanks @asbjornu ! Without contributions like yours it'd be impossible to keep homebrew going with the high standards that users have come to expect from the project. You can feel good knowing that you've made the world a bit better for homebrew and.NET users around the world! 👍 🎉 |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Thanks to all the valuable feedback given in #53092 and with dotnet/source-build#1685 resolved,
dotnet
finally builds successfully on macOS and this formula should be ready to go.Supersedes #3691 and fixes dotnet/sdk#4600.