[MacPorts] #58426: Portfile instructions: unclear about global variable ${portbuildpath}

MacPorts noreply at macports.org
Thu May 2 15:52:53 UTC 2019


#58426: Portfile instructions: unclear about global variable ${portbuildpath}
--------------------------+--------------------
  Reporter:  frankliuao   |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  guide        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by frankliuao):

 I kinda agree, but variables like ${destroot} and ${workpath} depends on
 the build path, and will be useful for the developers if they are clearly
 explained.

 After some tracking I realized that it's in
 /opt/local/var/macports/build/_your_ports_source_/portname/

 where _your_ports_source_ reflects what you specified in the sources.conf

 It would be nice if the maintainers could add some information in the
 guide. If not I hope this can be found by Google with keywords
 Portfile destroot, macports workpath, macports portbuildpath


 Replying to [comment:3 jmroot]:
 > It's one of those variables like `prefix` that is handed down from
 above. Its value is not based on anything that a Portfile can control and
 it doesn't have a fixed default. The way it is constructed is also
 difficult to explain concisely. Have a look at the
 `macports::getportbuildpath` procedure if you're interested.

-- 
Ticket URL: <https://trac.macports.org/ticket/58426#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list