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

MacPorts noreply at macports.org
Sun Aug 21 17:37:06 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 RobK88):

 Thank you Ryan for updating the port from version 2.9 to version 3 using
 the new Github repo.  That is by far the best solution!  No need to worry
 about DOS line ending in the Makefile.

 By the way, I was finally able to get dzip at 2.9 to build using Josh's patch
 file (which adds the missing newline to the end of the file).

 I needed to change the `reinplace` statement in the post-extract block
 with one that uses `dos2unix`.

 That is, I needed to change:

 {{{
 post-extract {
     # Convert DOS to UNIX line endings so we can patch
     reinplace "s|\r||g" ${worksrcpath}/Makefile.linux
 }
 }}}


 with


 {{{
 depends_build   port:dos2unix

 post-extract {
     # Convert DOS to UNIX line endings so we can patch
     exec dos2unix -q "${worksrcpath}/Makefile.linux"
 }
 }}}

 N.B.  It is important to use the -q (or quiet) flag with dos2unix.

 It looks like dos2unix does more than just replace the line endings.

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


More information about the macports-tickets mailing list