Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

[mono] properly support HEAD building #36764

Closed
wants to merge 1 commit into from
Closed

Conversation

haf
Copy link
Contributor

@haf haf commented Feb 12, 2015

This was referenced Feb 12, 2015
@mistydemeo
Copy link
Member

Can you provide build logs (brew gist-logs mono) for the build that failed in #36766? Thanks!

@mistydemeo
Copy link
Member

The error is:

*** The compiler 'mcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
Corlib not in sync with this runtime: expected corlib version 117, found 111.
Loaded from: /private/tmp/mono-nEz281/mcs/class/lib/monolite/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.mono-project.com/download.

Looks like HEAD requires a newer monolite to build.

@haf
Copy link
Contributor Author

haf commented Feb 13, 2015

I'm not getting that error message https://gist.github.com/anonymous/797deb26ad692fbf60ba

To fix your error I can change this piece of the formula:

  1 ¬
  2   resource "monolite" do¬
  3     magic_number = "111"¬
  4     url "http://storage.bos.xamarin.com/mono-dist-master/cb/cb33b94c853049a43222288ead1e0cb059b227    83/monolite-111-latest.tar.gz"¬
  5     sha1 "a674c47cd60786c49185fb3512410c43689be43e"¬
  6   end¬

However, do we have the same error, to start with?

The builds are taken from here: https://wrench.mono-project.com/Wrench/ViewWorkTable.aspx?lane_id=4&host_id=21&command_id=374

I could code ruby to pick the latest version based on the link -- the magic number is the MONO_CORLIB_VERSION which needs to be 117 in your case.

Can I get the sha1-commit-hash of the HEAD from the formula DSL, somehow? That would solve the problem of finding the path, given that I can make monolite-latest.tgz the name o the file.

I'm having a conversation in general about making this build more repeatable - if you would comment with all your experience in making homebrew work, it would add considerable value to the discussion.

@jacknagel
Copy link
Contributor

PR no longer applies cleanly; what is the status here?

@haf
Copy link
Contributor Author

haf commented May 16, 2015

You didn't respond so it became stale; the PR needs to be updated with the latest monolite.

@jacknagel
Copy link
Contributor

Can I get the sha1-commit-hash of the HEAD from the formula DSL, somehow?

You can get it at build-time (during install) by asking git for it (e.g. git rev-parse HEAD or similar), the full git repo is present for the build.

@DomT4
Copy link
Member

DomT4 commented May 29, 2015

Any update here?

@haf
Copy link
Contributor Author

haf commented May 30, 2015

@DomT4 No time here. I suggest you pick up where I left off and send a new PR with both mine and your changes and then we'll merge that PR instead.

@MikeMcQuaid
Copy link
Member

Passing on this.

@haf haf deleted the bugs/mono-head branch May 31, 2015 11:24
@Homebrew Homebrew locked and limited conversation to collaborators Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants