[MacPorts] #74310: pre-configure and post-configure phases should set SDKROOT environment variable

MacPorts noreply at macports.org
Mon Aug 10 21:08:30 UTC 2026


#74310: pre-configure and post-configure phases should set SDKROOT environment
variable
--------------------+----------------------
 Reporter:  breun   |      Owner:  jmroot
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  base    |    Version:
 Keywords:          |       Port:
--------------------+----------------------
 I expected that an environment variable also gets set for the `pre-*` and
 `post-*` variants of a phase that sets it. Specifically, the `SDKROOT`
 environment variable gets set automatically for the `configure` phase, but
 it seems that `pre-configure` and `post-configure`
 [https://github.com/macports/macports-
 ports/pull/33777#discussion_r3751708877 do not set it].

 Unless there is a good reason why `pre-configure` and `post-configure`
 should not have `SDKROOT` set automatically, I think it makes sense for
 MacPorts to set it for those phases too.

-- 
Ticket URL: <https://trac.macports.org/ticket/74310>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list