Opened 3 years ago

Closed 8 months ago

#64111 closed defect (fixed)

cmake, cmake-devel: /opt/homebrew is in the default system path

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: arm64 Cc: mascguy (Christopher Nielsen)
Port: cmake, cmake-devel

Description

On Apple Silicon systems, Homebrew apparently installs into /opt/homebrew, and cmake knows this and adds that path to the system path on Apple Silicon systems. This resulted in a build failure of Aseprite when the user also had Homebrew installed. See #64103. I think we should patch the cmake port so that it does not search this path. We already patch cmake so that it does not search the Fink path /sw.

Change History (6)

comment:1 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: mascguy added
Port: cmake-devel added
Summary: cmake has /opt/homebrew in the default system pathcmake, cmake-devel: /opt/homebrew is in the default system path

I think this also caused #68254.

comment:2 Changed 13 months ago by Ken <21211439+kencu@…>

In 4c0ec16c0bace1d91e3cb243b363cd90c6cf1fac/macports-ports (master):

cmake-devel: remove homebrewisms (https://github.com/macports/macports-ports/pull/20758)

  • There are some hardcoded references to homebrew paths, that have crept into cmake over time. Remove these.
  • Prevents homebrew-installed software like python from being detected over the settings in PATH and PREFIX, if the user happens to have homebrew installed in /opt/homebrew

See: #64111

comment:3 Changed 13 months ago by kencu (Ken)

I'm sorry I missed adding this ticket to the commit message. Thanks for adding it.

comment:4 in reply to:  3 Changed 13 months ago by mascguy (Christopher Nielsen)

Replying to kencu:

I'm sorry I missed adding this ticket to the commit message. Thanks for adding it.

No worries, we've got your back!

comment:5 Changed 11 months ago by ryandesign (Ryan Carsten Schmidt)

Other issues this may have caused: #68863, #68866

comment:6 Changed 8 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.