[MacPorts] #68503: libutf8proc @2.8.0: Some files installed into /usr/local

MacPorts noreply at macports.org
Wed Oct 18 20:21:46 UTC 2023


#68503: libutf8proc @2.8.0: Some files installed into /usr/local
--------------------------+------------------------
  Reporter:  nskillen     |      Owner:  ryandesign
      Type:  defect       |     Status:  accepted
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.1
Resolution:               |   Keywords:
      Port:  libutf8proc  |
--------------------------+------------------------
Changes (by ryandesign):

 * keywords:  sonoma x86_64 =>
 * cc: judaew, herbygillot, therealketo@… (added)
 * status:  assigned => accepted
 * owner:  judaew => ryandesign


Comment:

 It also happens for me if I build from source right now on Monterey, so
 it's not OS-specific.

 The problem was caused 16 hours ago when
 [changeset:3e8b01be2045bf28dc6f92f755d01acfe7024b55/macports-ports the
 port was switched to use the makefile portgroup].

 The libutf8proc Makefile sets:

 {{{
 prefix=/usr/local
 }}}

 The Portfile sets:

 {{{
 makefile.prefix_name \
                     prefix
 }}}

 which causes the makefile portgroup to set `prefix=/usr/local` as an
 environment variable (instead of `PREFIX=/usr/local` as it would otherwise
 do) ''but any variable set by a Makefile overrides anything set as an
 environment variable''. The solution is to tell the makefile portgroup to
 append this as an argument, rather than set it as an environment variable,
 so that it overrides what was set in the Makefile:

 {{{
 makefile.override-append \
                     PREFIX
 }}}

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


More information about the macports-tickets mailing list