[MacPorts] #60176: Failure to activate cctools with bsdtar from libarchive port

MacPorts noreply at macports.org
Wed Apr 15 19:07:19 UTC 2020


#60176: Failure to activate cctools with bsdtar from libarchive port
-------------------------+----------------------
  Reporter:  agouasmi    |      Owner:  kencu
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:  libarchive  |
-------------------------+----------------------
Changes (by eborisch):

 * owner:  eborisch => kencu
 * cc: jeremyhu (added)


Comment:

 Heh. So these are starting from the source cctools tarball. I see in the
 cctools port there are a number of "delete stray resource fork" actions.
 It looks like these need to be expanded to catch the manpages, too; this
 works for me. Will submit a pull request.

 {{{#!diff
 diff --git a/devel/cctools/Portfile b/devel/cctools/Portfile
 index 25482fd632b..e1a0fdb8120 100644
 --- a/devel/cctools/Portfile
 +++ b/devel/cctools/Portfile
 @@ -192,6 +192,16 @@ post-patch {
          }
          reinplace "s:__TRY_SYSTEM_CLANG__:${try_system_clang}:"
 ${worksrcpath}/as/driver.c

 +        foreach file [glob ${worksrcpath}/man/*] {
 +            ui_debug "deleting stray rsrc fork from ${file}"
 +            if {${os.major} >= 9} {
 +                system "cp -X  ${file} ${file}.tmp"
 +                system "mv ${file}.tmp ${file}"
 +            } else {
 +                system "cp /dev/null ${file}/rsrc"
 +            }
 +        }
 +
          foreach file [glob ${worksrcpath}/{*/,}Makefile] {

              ui_debug "deleting stray rsrc fork from ${file}"

 }}}

 I will try to get back to the libarchive bits at some point, but this
 should fix this explicit issue.

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


More information about the macports-tickets mailing list