Re: [MacPorts] #67807: glew’s sed code in Makefile has a bug which prevents it from recognizing Darwin versions containing letters

MacPorts noreply at macports.org
Sun Jul 23 17:09:37 UTC 2023


#67807: glew’s sed code in Makefile has a bug which prevents it from recognizing
Darwin versions containing letters
---------------------------+--------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.8.1
Resolution:                |   Keywords:
      Port:  glew          |
---------------------------+--------------------

Comment (by kencu):

 upstream may not feel it is their responsibility to hand unreleased betas
 of darwin operation systems in their release code:
 {{{
 powerpc-apple-darwin10.0.0d2
 }}}

 I certainly would not, and neither should they.

 this part gives this:
 {{{
 echo powerpc-apple-darwin10.0.0d2 | cut -d - -f 3
 darwin10.0.0d2
 }}}

 and the next part gives this:
 {{{
 % echo darwin10.0.0d2 | sed -e 's/[0-9\.]//g;'
 darwind
 }}}

 and that is not a SYSTEM anyone recognizes...

 so -- monkeying with this SED to fix that is a pointless pain in the butt
 ... just patch the code like this:

 {{{
 SYSTEM ?= darwin
 }}}

 or - looks like you can just send in an ENV VAR with SYSTEM=darwin or add
 that onto the configure.args and get the same effect.

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


More information about the macports-tickets mailing list