[MacPorts] #65718: zsh: install failure for macOS 13

MacPorts noreply at macports.org
Sat Oct 29 04:59:03 UTC 2022


#65718: zsh: install failure for macOS 13
----------------------------------+----------------------
  Reporter:  David-Noble-at-work  |      Owner:  larryv
      Type:  defect               |     Status:  accepted
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.7.99
Resolution:                       |   Keywords:  ventura
      Port:  zsh                  |
----------------------------------+----------------------

Comment (by larryv):

 Replying to [comment:11 tbaumgard]:
 > I can confirm that commenting out those lines gets it to install
 > without errors and {{{ZSHROADMAP}}} is in the output of
 > {{{man /opt/local/share/man/man1/zshall.1.gz}}}.

 Thank you!

 > Apple appears to be using the latest version of {{{mandoc}}} to
 > generate man pages in the current release version of macOS (13.0
 > 22A380).

 Yeah, that's what I suspected.  Wikipedia mentions it, but it's
 good to hear it firsthand.

 > I'm guessing, but it sounds like from the historical error messages
 > that previous versions of {{{man}}} were expecting those man pages
 > to be in {{{/opt/local/share/man/man1/man1}}} (notice the two
 > {{{man1}}} directories).

 That's not quite it.  The issue is that MacPorts gzip-compresses
 man pages, but `groff` does not do any preprocessing for `.so`
 requests.  When asked to include `whatever.1`, it does not try to
 find, decompress, and include `whatever.1.gz`.  When asked to include
 `whatever.1.gz` explicitly, it does not perform decompression but
 reads the gzip file as is and chokes predictably.  This is why the
 port runs `soelim` on `zshall.1` before base compresses all the man
 pages.

 Something online (another Wikipedia page perhaps) gave me the notion
 that `mandoc` handles this more intelligently, which is why I asked
 for testing.  I'm relieved to hear that it does; I was perilously
 close to writing a bare-bones `soelim` implementation in POSIX
 shell. 😰

 > Anyway, you can kind of independently verify the fix on older
 > versions of macOS

 No need, I'll take your word for it :)

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


More information about the macports-tickets mailing list