[MacPorts] #55293: set ${prefix} in portindex

MacPorts noreply at macports.org
Sun Nov 26 16:28:57 UTC 2017


#55293: set ${prefix} in portindex
--------------------------+-----------------
  Reporter:  RJVB         |      Owner:
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  base         |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+-----------------

Comment (by neverpanic):

 The portindex does not contain information regarding dependencies of
 variants.

 Btw, I accidentally changed the value of `$prefix` from its current value
 `${prefix}` during portindex back in the day. It went unnoticed for quite
 a while and then we discovered that it was actually causing problems and
 we were relying on the value being `${prefix}`, so I don't think we can
 change this here. See [9a23db2fde81660ca42425ae0647a4f347571f45/macports-
 base].

 I'd also argue that we shouldn't change it if there is a simple
 alternative available, as there is in this case (just use
 `registry_active` as you already do).

 In addition to that, I completely agree with Ryan that Portfiles must not
 change behavior depending on what the user has installed on their system
 other than changing default variants, but that seems to be a lesson you
 seem to refuse to learn, so I won't waste my time on repeating it any
 further.

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


More information about the macports-tickets mailing list