sidneys / homebrew-homebrew

sidneys.github.io Homebrew Tap
23 stars 12 forks source link

Intel AMD64 Sonoma 14.1 - latest homebrew - Incorrect arch bug? #29

Open MathiasDeWeerdt opened 8 months ago

MathiasDeWeerdt commented 8 months ago

It seems to be trying to install a ARM64 on my AMD64 system.

➜  fixes brew update
Installing from the API is now the default behaviour!
You can save space and time by running:
  brew untap homebrew/core
  brew untap homebrew/cask
Already up-to-date.
➜  fixes brew upgrade
==> Upgrading 1 outdated package:
sidneys/homebrew/openssl@1.0 1.0.2u -> 1.0.2u_1
==> Fetching sidneys/homebrew/openssl@1.0
==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c195/openssl-1.0.2u-darwin-arm64.patch
Already downloaded: /Users/mathiasdeweerdt/Library/Caches/Homebrew/downloads/db281f2b8a51c8a97d6bced562e99959b2c8b3241129895f8850506ccd1f8899--openssl-1.0.2u-darwin-arm64.patch
==> Downloading https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
Already downloaded: /Users/mathiasdeweerdt/Library/Caches/Homebrew/downloads/6a06bfa556bd474c7e4efb2eab11c7d43d4238b508bd91e74c438653e24b8a45--openssl-1.0.2u.tar.gz
==> Upgrading sidneys/homebrew/openssl@1.0
  1.0.2u -> 1.0.2u_1

==> Patching
==> Applying openssl-1.0.2u-darwin-arm64.patch
patching file Configure
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2u_1 --openssldir=/usr/local/etc/openssl@1.0 no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
==> make
==> make test
Last 15 lines from /Users/mathiasdeweerdt/Library/Logs/Homebrew/openssl@1.0/03.make:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704690236396:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
140704690236396:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
140704690236396:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help:
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) https://github.com/sidneys/homebrew-homebrew/issues/2
MathiasDeWeerdt commented 8 months ago

Hotfix I used for now:

mkdir -p /usr/local/Cellar/openssl@1.0/1.0.2u_1
cp /usr/local/Cellar/openssl@1.0/1.0.2u/ /usr/local/Cellar/openssl@1.0/1.0.2u_1/

Edit .zshrc in your home directory. And add the following export

export PATH="/usr/local/Cellar/openssl@1.0/1.0.2u_1/bin:$PATH"
source .zshrc
brew update
brew upgrade

Its fine now and not trying to install the the latest version.