Closed mgacummings closed 1 year ago
Could you run the following:
cd $(brew --repo macaulay2/tap)
git show --stat
git pull
I'm up to date:
Mikes-Mac:~ mike$ cd $(brew --repo macaulay2/tap)
Mikes-Mac:homebrew-tap mike$ git show --stat
commit 3ec7d97f6082496c87c520dd001d4d0328c4829a (HEAD -> main)
Author: Mahrud Sayrafi <mahrud@berkeley.edu>
Date: Fri Jun 2 15:39:24 2023 -0400
replace OpenMP patch
Formula/macaulay2.rb | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
Mikes-Mac:homebrew-tap mike$ git pull
Already up to date.
You are definitely not up to date:
[mahrud@noether ~]$ cd $(brew --repo macaulay2/tap)
[mahrud@noether homebrew-tap]$ git show --stat
commit 3ff29ced0d752e979412c66605cb5dee2367f36f (HEAD -> main, origin/main, origin/HEAD)
Author: Mahrud Sayrafi <mahrud@umn.edu>
Date: Thu Jun 22 15:01:53 2023 +0000
macaulay2: update 1.22_1 bottle.
Formula/macaulay2.rb | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
But that explains the issue! I wonder why that is happening ...
Could you run git status
? Maybe you're on a different branch somehow and need to get back with git checkout main
.
Huh that is odd. Here's what I get with git status
:
Mikes-Mac:homebrew-tap mike$ git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
Mikes-Mac:homebrew-tap mike$ git checkout main
Already on 'main'
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
I'm not sure why I'm ahead.
It's probably not your fault. I think you pulled at an unlucky time when I was trying something. Try this:
git reset --hard origin/main
Also, it would be very helpful for other users with your setup if you could bottle M2 and upload it somewhere so I can add it on github:
brew install --build-bottle M2
brew bottle --no-rebuild M2
Thanks!
Thanks for your help! I've got version 1.22 installed now.
Here's the output from the bottling if you want it:
Mikes-Mac:homebrew-tap mike$ brew bottle --no-rebuild M2
==> Bottling macaulay2--1.22_1.arm64_ventura.bottle.tar.gz...
==> Detecting if macaulay2--1.22_1.arm64_ventura.bottle.tar.gz is relocatable...
./macaulay2--1.22_1.arm64_ventura.bottle.tar.gz
bottle do
sha256 cellar: :any, arm64_ventura: "964bc221d05f11e374976b4690700c5c614d6ab243a8a0813bdbbddab8c59877"
end
and the bottled file can be downloaded from: https://math.mcmaster.ca/~cummim5/files/misc/macaulay2--1.22_1.arm64_ventura.bottle.tar.gz.
Thanks again!
Thank you, just added the bottle.
@mahrud This fixed my inability to build M2 with homebrew as well! (My M2 was 1 push ahead of main, and wasn't updating).
Should I add a MacOS 12.6.6 Apple M1 monterey bottle? If so, could you remind me of the steps you would like me to follow?
Great! You can build the bottle:
brew install --build-bottle M2
brew bottle --no-rebuild M2
Then upload the bottle here: https://github.com/Macaulay2/homebrew-tap/releases/tag/macaulay2-1.22_1 Once you do, let me know the checksum that brew prints (like the one above) and I'll add it to the formula.
In trying to upgrade to version 1.22 using
brew install Macaulay2/tap/M2
, I geterror: unknown argument: '-MD'
followed byninja: build stopped: subcommand failed.
.I am using an Apple Mac on an M1 chip running macOS Ventura 13.4.1 (up-to-date).
I'm not too experienced with homebrew, but here's where in the output it looks like the error begins to occur:
After this appears, there are some more logs before the process terminates with the -MD and ninja error messages: