coreutils: drop patch that unconditionally mangles manpages
PATCH 1/1 coreutils: drop patch that unconditionally mangles manpages
commit 841ec528ec04e64bd09ff10f8d9ad2d6e3aac05d ("coreutils: update to upstream version 9.21") added a patch which bypassed the check for perl and hence defaults to using the dummy man page for all of the coreutils manpages. This results in all manpages looking like:
NAME
chmod - a GNU coreutils 8.22 program
DESCRIPTION
OOOPS! Due to the lack of perl on the build system, we were unable to
create a proper manual page for chmod.
It is unclear why the test was disabled, but since it clearly causes the manpages to be useless, we need to drop this patch.
meta/recipes-core/coreutils/coreutils-8.22/dummy_help2man.patch deleted +0 -22
@@ -1,22 +0,0 @@ -Upstream-Status: Inappropriate [disable feature] - -Signed-off-by: Marko Lindqvist <[email protected]> -diff -Nurd coreutils-8.21/man/local.mk coreutils-8.21/man/local.mk ---- coreutils-8.21/man/local.mk 2013-02-05 16:01:21.000000000 +0200 -+++ coreutils-8.21/man/local.mk 2013-03-23 09:12:53.360470192 +0200 -@@ -19,11 +19,11 @@ - EXTRA_DIST += man/help2man man/dummy-man - - ## Graceful degradation for systems lacking perl. --if HAVE_PERL --run_help2man = $(PERL) -- $(srcdir)/man/help2man --else -+#if HAVE_PERL -+#run_help2man = $(PERL) -- $(srcdir)/man/help2man -+#else - run_help2man = $(SHELL) $(srcdir)/man/dummy-man --endif -+#endif - - man1_MANS = @man1_MANS@ - EXTRA_DIST += $(man1_MANS:.1=.x)
meta/recipes-core/coreutils/coreutils_8.22.bb +0 -1
@@ -14,7 +14,6 @@ inherit autotools gettext texinfo SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ file://remove-usr-local-lib-from-m4.patch \ - file://dummy_help2man.patch \ file://fix-for-dummy-man-usage.patch \ "
Signature · 1 line
1.9.1
Op 6 aug. 2014, om 22:38 heeft Paul Gortmaker <[email protected]> het volgende geschreven:
Quoted 8 lines
commit
841ec528ec04e64bd09ff10f8d9ad2d6e3aac05d("coreutils: update to upstream version 9.21") added a patch which bypassed the check for perl and hence defaults to using the dummy man page for all of the coreutils manpages. This results in all manpages looking like:NAME
chmod - a GNU coreutils 8.22 program
Quoted 6 lines
DESCRIPTION
OOOPS! Due to the lack of perl on the build system, we were unable to
create a proper manual page for chmod.It is unclear why the test was disabled, but since it clearly causes the manpages to be useless, we need to drop this patch.
That all might be true, but DEPENDS doesn't list 'perl' or 'perl-native', so this commit is wrong.
Quoted 50 lines · Paul Gortmaker
commit
841ec528ec04e64bd09ff10f8d9ad2d6e3aac05d("coreutils: update to upstream version 9.21") added a patch which bypassed the check for perl and hence defaults to using the dummy man page for all of the coreutils manpages. This results in all manpages looking like:NAME
chmod - a GNU coreutils 8.22 programDESCRIPTION
OOOPS! Due to the lack of perl on the build system, we were unable to
create a proper manual page for chmod.It is unclear why the test was disabled, but since it clearly causes the manpages to be useless, we need to drop this patch.
Signed-off-by Paul Gortmaker <[email protected]>meta/recipes-core/coreutils/coreutils-8.22/dummy_help2man.patch deleted +0
-22@@ -1,22 +0,0 @@ -Upstream-Status: Inappropriate [disable feature] - -Signed-off-by: Marko Lindqvist <[email protected]> -diff -Nurd coreutils-8.21/man/local.mk coreutils-8.21/man/local.mk ---- coreutils-8.21/man/local.mk 2013-02-05 16:01:21.000000000 +0200 -+++ coreutils-8.21/man/local.mk 2013-03-23 09:12:53.360470192 +0200 -@@ -19,11 +19,11 @@ - EXTRA_DIST += man/help2man man/dummy-man - - ## Graceful degradation for systems lacking perl. --if HAVE_PERL --run_help2man = $(PERL) -- $(srcdir)/man/help2man --else -+#if HAVE_PERL -+#run_help2man = $(PERL) -- $(srcdir)/man/help2man -+#else - run_help2man = $(SHELL) $(srcdir)/man/dummy-man --endif -+#endif - - man1_MANS = @man1_MANS@ - EXTRA_DIST += $(man1_MANS:.1=.x)meta/recipes-core/coreutils/coreutils_8.22.bb +0
-0
meta/recipes-core/coreutils/coreutils_8.22.bb inherit autotools gettext texinfo · line 19
Quoted 7 lines
meta/recipes-core/coreutils/coreutils_8.22.bb +0
-1@@ -14,7 +14,6 @@ inherit autotools gettext texinfo SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ file://remove-usr-local-lib-from-m4.patch \ - file://dummy_help2man.patch \ file://fix-for-dummy-man-usage.patch \ "
There's some build failure about coreutils on autobuilder that might be caused by this patch. Please take a look at it.
Below is a link to the log.
https://autobuilder.yoctoproject.org/main/builders/nightly-arm/builds/201/steps/BuildImages_1/logs/stdio
//Chen Qi
Quoted 11 lines · Koen Kooi
Op 6 aug. 2014, om 22:38 heeft Paul Gortmaker <[email protected]> het volgende geschreven:
Quoted 8 lines
commit
841ec528ec04e64bd09ff10f8d9ad2d6e3aac05d("coreutils: update to upstream version 9.21") added a patch which bypassed the check for perl and hence defaults to using the dummy man page for all of the coreutils manpages. This results in all manpages looking like:NAME
chmod - a GNU coreutils 8.22 program
Quoted 8 lines
Quoted 6 lines
DESCRIPTION
OOOPS! Due to the lack of perl on the build system, we were unable to
create a proper manual page for chmod.It is unclear why the test was disabled, but since it clearly causes the manpages to be useless, we need to drop this patch.
That all might be true, but DEPENDS doesn't list 'perl' or 'perl-native', so this commit is wrong.
Wrong might be overstated. The patch unconditionally disables a _check_ for perl. So if perl is there, it is used; if it is absent, it is not. Given that there really is no excuse for shipping broken manpages, one could argue that a DEPENDS on perl-native is sensible, and if that is what it takes to get the broken patch dropped, I'll add one.
P.
--
Quoted 1 line
Quoted 19 lines · Paul Gortmaker
Quoted 18 lines · Koen Kooi
Op 6 aug. 2014, om 22:38 heeft Paul Gortmaker <[email protected]> het volgende geschreven:
Quoted 14 lines
commit
841ec528ec04e64bd09ff10f8d9ad2d6e3aac05d("coreutils: update to upstream version 9.21") added a patch which bypassed the check for perl and hence defaults to using the dummy man page for all of the coreutils manpages. This results in all manpages looking like:NAME
chmod - a GNU coreutils 8.22 programDESCRIPTION
OOOPS! Due to the lack of perl on the build system, we were unable to
create a proper manual page for chmod.It is unclear why the test was disabled, but since it clearly causes the manpages to be useless, we need to drop this patch.
Quoted 8 lines
Quoted 1 line
That all might be true, but DEPENDS doesn't list 'perl' or 'perl-native', so this commit is wrong.
Wrong might be overstated. The patch unconditionally disables a _check_ for perl. So if perl is there, it is used; if it is absent, it is not. Given that there really is no excuse for shipping broken manpages, one could argue that a DEPENDS on perl-native is sensible, and if that is what it takes to get the broken patch dropped, I'll add one.
undeterministic build results mean it's broken
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]