Skip to content
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

brew openssl install on macOS 14 Arm64 is borked #9755

Closed
1 of 13 tasks
benoit-pierre opened this issue Apr 27, 2024 · 7 comments
Closed
1 of 13 tasks

brew openssl install on macOS 14 Arm64 is borked #9755

benoit-pierre opened this issue Apr 27, 2024 · 7 comments

Comments

@benoit-pierre
Copy link

Description

The pkg-config entry libraries search path is invalid:

# the include directory is correct:
▸ pkg-config --cflags libcrypto
-I/opt/homebrew/Cellar/openssl@3/3.3.0/include
# but the libraries search path is not:
▸ pkg-config --libs libcrypto
-L/opt/homebrew/Cellar/openssl@3/3.3.0 -lcrypto
#
▸ ls -l /opt/homebrew/Cellar/openssl@3/3.3.0
total 1752
-rw-r--r--   1 runner  admin     990 Apr  9 12:12 AUTHORS.md
-rw-r--r--   1 runner  admin  782003 Apr  9 12:12 CHANGES.md
-rw-r--r--   1 runner  admin    1256 Apr 22 18:13 INSTALL_RECEIPT.json
-rw-r--r--   1 runner  admin   10175 Apr  9 12:12 LICENSE.txt
-rw-r--r--   1 runner  admin   84478 Apr  9 12:12 NEWS.md
-rw-r--r--   1 runner  admin    8182 Apr  9 12:12 README.md
drwxr-xr-x   4 runner  admin     128 Apr 22 18:13 bin
drwxr-xr-x   3 runner  admin      96 Apr  9 12:12 include
drwxr-xr-x  12 runner  admin     384 Apr 22 18:13 lib
drwxr-xr-x   4 runner  admin     128 Apr  9 12:12 share

Reinstalling with brew reinstall openssl@3 fix it.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Current runner version: '2.316.0'

Is it regression?

No idea.

Expected behavior

pkg-config --libs openssl return the correct flags.

Actual behavior

pkg-config --libs openssl return an invalid libraries search path.

Repro steps

Check the output for pkg-config --libs openssl (or libcrypto/libssl): -L/opt/homebrew/Cellar/openssl@3/3.3.0 is returned instead of -L/opt/homebrew/Cellar/openssl@3/3.3.0/lib.

@Chocobo1
Copy link

Reinstalling with brew reinstall openssl@3 fix it.

Linking to upstream issue: Homebrew/homebrew-core#169728
and upstream PR: Homebrew/homebrew-core#169721

I suppose the macOS image just need to bundle the new openssl bottle/package.

@benoit-pierre
Copy link
Author

Thank!

How come a brew update does not also fix the problem? They did not bump the formula?

@ReenigneArcher
Copy link

I believe I'm facing this as well.

Something interesting that I discovered is that even though the image is supposed to be arm64... uname -m returns x86_64

@mikhailkoliada
Copy link
Contributor

Hey! Unfortunately we can not help fixing this issue, we do not manage .pc files shipped with openssl, it should be reported to Hebrew and the fix shipped there (well, it was, so I hope it is soon to be fixed)

@benoit-pierre
Copy link
Author

benoit-pierre commented Apr 28, 2024

I know you don't manage the pc files yourselves, but you do provide an image with a number of homebrew packages pre-installed. So are you going to update the image with the fixed version?

@mikhailkoliada
Copy link
Contributor

the rollout gonna happen after may 7th I believe, in the meantime brew upgrade should do the trick in runtime

@benoit-pierre
Copy link
Author

OK, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants