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

check_for_opencore false positive #18763

Closed
3 tasks done
guycalledseven opened this issue Nov 13, 2024 · 4 comments · Fixed by #18765
Closed
3 tasks done

check_for_opencore false positive #18763

guycalledseven opened this issue Nov 13, 2024 · 4 comments · Fixed by #18765
Assignees
Labels
bug Reproducible Homebrew/brew bug help wanted We want help addressing this

Comments

@guycalledseven
Copy link

brew doctor output

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have installed macOS using OpenCore Legacy Patcher.
We do not provide support for this configuration.
It is expected behaviour that some formulae will fail to build in this unsupported configuration.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.4.5-14-gb421c2f
ORIGIN: https://github.com/Homebrew/brew
HEAD: b421c2f0685bbeab84aaa7f2f77a098bc8f68553
Last commit: 88 minutes ago
Core tap JSON: 13 Nov 10:13 UTC
Core cask tap JSON: 13 Nov 10:13 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: /usr/bin/nano
HOMEBREW_GITHUB_API_TOKEN: set
HOMEBREW_MAKE_JOBS: 10
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_SORBET_RUNTIME: set
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.47.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1-arm64
CLT: 16.1.0.0.1.1729049160
Xcode: 16.1
Rosetta 2: false

What were you trying to do (and why)?

Newly added check_for_opencore check is falsely reporting that i've installed macOS using OpenCore Legacy Patcher.
I have not, but I do have OpenCore Legacy patcher installed for purpose of making bootable usb.

The check is wrong IMHO - it just checks for existance of those two files:

  • /Library/Application Support/Dortania/OpenCore-Patcher.app
  • /Library/PrivilegedHelperTools/com.dortania.opencore-legacy-patcher.privileged-helper

What happened (include all command output)?

The warning showed up.

What did you expect to happen?

No warning about OpenCore Legacy patcher.

Step-by-step reproduction instructions (by running brew commands)

brew doctor
@guycalledseven guycalledseven added the bug Reproducible Homebrew/brew bug label Nov 13, 2024
@MikeMcQuaid
Copy link
Member

The check is wrong IMHO - it just checks for existance of those two files:

  • /Library/Application Support/Dortania/OpenCore-Patcher.app
  • /Library/PrivilegedHelperTools/com.dortania.opencore-legacy-patcher.privileged-helper

Can you suggest files we should check for instead?

@MikeMcQuaid MikeMcQuaid added the in progress Maintainers are working on this label Nov 13, 2024
@carlocab carlocab removed their assignment Nov 13, 2024
@carlocab carlocab added help wanted We want help addressing this in progress Maintainers are working on this and removed in progress Maintainers are working on this labels Nov 13, 2024
@EricFromCanada EricFromCanada self-assigned this Nov 13, 2024
@cho-m
Copy link
Member

cho-m commented Nov 13, 2024

Maybe NVRAM check for bootloader? Though would need someone with OpenCore to check how reliable (EDIT: and maybe won't work for older Mac that don't use NVRAM? Looks like OpenCore should emulate it and probably missing command on non-patched systems)

https://dortania.github.io/OpenCore-Legacy-Patcher/UPDATE.html#checking-oclp-and-opencore-versions

@ZhongRuoyu
Copy link
Member

Maybe NVRAM check for bootloader?

I was thinking the same: #18765

Though would need someone with OpenCore to check how reliable (EDIT: and maybe won't work for older Mac that don't use NVRAM? Though looks like it should emulate it)

Can @EricFromCanada perhaps confirm on your OpenCore enabled device(s)?

@EricFromCanada
Copy link
Member

Seems to work…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/brew bug help wanted We want help addressing this
Projects
None yet
6 participants