[OE-core] [PATCH-v2 0/3] coreutils: facilitate generating real manpages

Paul Gortmaker paul.gortmaker at windriver.com
Tue Feb 17 05:47:43 UTC 2015


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

-- 
2.2.1




More information about the Openembedded-core mailing list