[MacPorts] #65696: dzip @2.9 Error: Failed to patch dzip: command execution failed

MacPorts noreply at macports.org
Mon Aug 22 07:30:20 UTC 2022


#65696: dzip @2.9 Error: Failed to patch dzip: command execution failed
---------------------+------------------------
  Reporter:  RobK88  |      Owner:  ryandesign
      Type:  defect  |     Status:  closed
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.7.2
Resolution:  fixed   |   Keywords:
      Port:  dzip    |
---------------------+------------------------

Comment (by ryandesign):

 I can't explain why you were having problems with version 2.9 of this
 port. As far as I know it worked fine for everyone else. I've copy-pasted
 the same `reinplace` command to change DOS to UNIX line endings in
 countless other ports over the years with no complaints. Under the hood,
 `reinplace` uses `sed`, so perhaps if your `sed` is not working correctly
 or if you did something strange like replace your macOS `sed` with a
 different implementation, like GNU `sed`, that could account for the
 problem. If that's what you did, you should undo it.

 The use of `exec` in Portfiles is discouraged because it bypasses MacPorts
 sandboxing restrictions. Instead, we use `system`, e.g.:
 {{{
 system -W ${worksrcpath} "dos2unix -q Makefile.linux"
 }}}

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


More information about the macports-tickets mailing list