[MacPorts] #68340: go @1.17.13_0: environment variables for olders macOS versions cause bash to print "wrong substitution" and thus compiles fail.

MacPorts noreply at macports.org
Mon Nov 13 15:08:45 UTC 2023


#68340: go @1.17.13_0: environment variables for olders macOS versions cause bash
to print "wrong substitution" and thus compiles fail.
------------------------+--------------------
  Reporter:  garoffoli  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  go         |
------------------------+--------------------

Comment (by RobK88):

 I have seen code written like this:


 {{{
 pre-build {
 #   Sierra and earlier
     if {${os.platform} eq "darwin" && ${os.major} <=
 ${legacysupport.newest_darwin_requires_legacy}} {
         build.env-append    GO_EXTLINK_ENABLED="1" \
 GO_LDFLAGS="\"-extldflags=${configure.ldflags}\"" \
                             CGO_LDFLAGS="-g -O2 ${configure.ldflags}"
     }
 }
 }}}

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


More information about the macports-tickets mailing list