[MacPorts] #63305: goreleaser @0.174.1_1: sh: {MACPORTS_LEGACY_SUPPORT_LDFLAGS=-L/opt/local/lib: No such file or directory

MacPorts noreply at macports.org
Tue Jul 27 19:45:23 UTC 2021


#63305: goreleaser @0.174.1_1: sh:
{MACPORTS_LEGACY_SUPPORT_LDFLAGS=-L/opt/local/lib: No such file or
directory
-------------------------+-------------------------
  Reporter:  ryandesign  |      Owner:  herbygillot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.1
Resolution:              |   Keywords:
      Port:  goreleaser  |
-------------------------+-------------------------

Comment (by ryandesign):

 The problem is in this block:
 {{{
 post-build {
     system -W ${worksrcpath} "${build.env} ./scripts/completions.sh"
 }
 }}}
 `build.env` is a Tcl list, so Tcl is converting that list to a string
 representation here for you, but it's not the representation you need. The
 problem probably only arises when an env value contains a space, which it
 does when the legacysupport portgroup is in use, which I guess it is here.

 I suspect you don't need the legacy support environment variables in order
 to run this script. Maybe explicitly listing the ones you do need would be
 a solution, rather than trying to use `build.env`.

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


More information about the macports-tickets mailing list