Skip to content

coreutils: facilitate generating real manpages

Paul Gortmaker openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3coreutils: don't generate useless dummy stub manpagesmeta/recipes-core/coreutils/coreutils-8.23/dummy_help2man.patch meta/recipes-core/coreutils/coreutils-8.23/fix-for-dummy-man-usage.patch meta/recipes-core/coreutils/coreutils-8.23/man-decouple-manpages-from-build.patch +1 more+28 -550 replies
2/3coreutils: import prebuilt manpages from Gentoometa/recipes-core/coreutils/coreutils_8.23.bb+18 -31 reply
3/3scripts: delete dummy help2man scriptscripts/help2man+0 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH-v2 0/3] coreutils: facilitate generating real manpages

As part of improving the end user experience for installs where the end user interacts directly with the generated filesystem (e.g. the build-appliance) these three commits ensure that we can have real man pages for coreutils on the target if desired.

This has been problematic for everyone who cross compiles, since the gnu folks use "help2man" -- which is a perl script that wants to run the target binaries (e.g. "chmod --help") and then use the output from that. And unfortunately this doesn't appear likely to change.

Our current status is that we "hide" perl by defeating a perl check, and also we have our own "help2man" script which unconditionally fails (as part of an earlier solution to the manpages problem). And then the doc RPM gets useless stub manpages with a big "OOOPS" message in them.

Here we delete all stuff associated with the old solutions, and then decouple the one makefile line triggering what would be the failed attempt at generating manpages via help2man. Then we add in sourcing and using prebuilt manpages from the Gentoo project (which was their solution[1] to the help2man cross-compile issue).

[v2: use update-alternatives in patch #2; patch #1 and #3 unchanged]

Paul.

[1] http://lists.gnu.org/archive/html/coreutils/2014-11/msg00001.html
---

Paul Gortmaker (3):
coreutils: don't generate useless dummy stub manpages
coreutils: import prebuilt manpages from Gentoo
scripts: delete dummy help2man script

 .../coreutils/coreutils-8.23/dummy_help2man.patch  | 22 ---------------
 .../coreutils-8.23/fix-for-dummy-man-usage.patch   | 31 ----------------------
 .../man-decouple-manpages-from-build.patch         | 27 +++++++++++++++++++
 meta/recipes-core/coreutils/coreutils_8.23.bb      | 24 +++++++++++++----
 scripts/help2man                                   |  3 ---
 5 files changed, 46 insertions(+), 61 deletions(-)
 delete mode 100644 meta/recipes-core/coreutils/coreutils-8.23/dummy_help2man.patch
 delete mode 100644 meta/recipes-core/coreutils/coreutils-8.23/fix-for-dummy-man-usage.patch
 create mode 100644 meta/recipes-core/coreutils/coreutils-8.23/man-decouple-manpages-from-build.patch
 delete mode 100755 scripts/help2man
Signature · 1 line
2.2.1