shims/super: add pod2man shim #19174
Open
+96
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?As noted in Homebrew/homebrew-core#191352 (comment), one factor which hinders
:all
bottles from being built is that Perl documentation generation viapod2man
embeds some version information about the version ofperl
and tools used.This change introduces a wrapper/shim for
pod2man
which should mitigate two areas where this happens which I have observed so far:perl
version is inserted in the footer if an explicit value is not provided for--release
. A constant value of a single space is passed in this wrapper/shim to prevent this (an empty value for--release
is not accepted).Pod::Man
andPod::Simple
are inserted in a comment in the resulting *roff output. There is no flag to disable this, so perform find/replace in the output (which may be via stdout or to output files) to remove those occurrences.Alternatives
Introduce a new DSL that performs the same/similar transformations on a provided file (or all files in a formula's
man
directory), e.g.clean_pod2man_outputs!
or something like that, which would need to be called explicitly.