]> code.ossystems Code Review - openembedded-core.git/commitdiff
Remove help2man dependency
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Sep 2011 22:26:07 +0000 (23:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 4 Oct 2011 12:44:32 +0000 (13:44 +0100)
The help2man script is pretty useless to us. It requires to run the target
binary to extract help information which is not possible for any of our
cross compiled target binaries.

We're not interested in man pages for -cross/-native tools.

It therefore makes no sense to have this as a core build dependency.

This patch removes the dependeny and replaces it with a script
returning false. This will trigger autotool's missing utility
to use the copy of the man page included with the sources which
is what would already happen when we tried to run cross compiled
binaries anyway.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass
scripts/help2man [new file with mode: 0755]

index 8f65b709fd52770196e938ce58ba6f3980e64bd6..da32f1ded8544f7ca8c0fb838c596f305462f923 100644 (file)
@@ -7,7 +7,7 @@ def autotools_dep_prepend(d):
 
        if pn in ['autoconf-native', 'automake-native', 'help2man-native']:
                return deps
-       deps += 'autoconf-native automake-native help2man-native '
+       deps += 'autoconf-native automake-native '
 
        if not pn in ['libtool', 'libtool-native'] and not pn.endswith("libtool-cross"):
                deps += 'libtool-native '
diff --git a/scripts/help2man b/scripts/help2man
new file mode 100755 (executable)
index 0000000..2bb8d86
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exit 1