On Aug 29, 2020, at 01:41, Ken Cunningham wrote:

> There is an idiosyncrasy in MacPorts base wherein if the SDKROOT is "/" then 
> MacPorts base leaves ${configure.sdkroot} as  "". This causes a number of 
> ports to break, and we can't seem to agree on how to fix that, so you have to 
> test that first, and set it to "/" if it is "". 

Is there a ticket about this?

The place to fix it would be in src/port1.0/portconfigure.tcl in proc 
portconfigure::configure_get_sdkroot, changing some or possibly all "return {}" 
statements to "return {/}". If you haven't already, you might try making that 
modification in your local copy of MacPorts (on macOS 10.13 or earlier) and 
using it for awhile and verifying that this doesn't break any ports.


> Some variation of this usually works (you will see this in many ports):
> 
> 
> if {${configure.sdkroot} eq ""} {
>  set ${configure.sdkroot} "/"

configure.sdkroot /


> }
> configure.args-append --my-fancy-sdkroot-setting-option=${configure.sdkroot}

Reply via email to