Don't run help2man during cross builds and use pre-generated manual pages instead...
authorSZ Lin (林上智) <szlin@debian.org>
Mon, 9 Nov 2020 03:24:33 +0000 (11:24 +0800)
committerSZ Lin (林上智) <szlin@debian.org>
Mon, 14 Dec 2020 07:34:58 +0000 (07:34 +0000)
Forwarded: no

Gbp-Pq: Name Don-t-run-help2man-during-cross-builds-and-use-pre-genera.patch

configure.ac
man/Makefile.am

index 885c791c132583e6d16332204982993ce3b810d1..dfa13d2d7a45c66faeaa1178c1bfc541874a2150 100644 (file)
@@ -221,7 +221,7 @@ if test "x$cross_compiling" = xno
 then
        AC_CHECK_PROG([has_help2man], [help2man], [true], [false])
 fi
-AM_CONDITIONAL([WITH_MANPAGES], [test "x$has_help2man" = xtrue])
+AM_CONDITIONAL([WITH_HELP2MAN], [test "x$has_help2man" = xtrue])
 if test "x$has_help2man" = xfalse
 then
        AC_MSG_NOTICE([help2man not found - man pages cannot be generated automatically])
index 0f9c644320c44da35f709bc7a3fc1575e1b2c728..70a0f4fe6a43c8497ddeb0c4cc0d0b9e5413183b 100644 (file)
@@ -6,10 +6,10 @@
 # Copyright (C) 2019 Bartosz Golaszewski <bartekgola@gmail.com>
 #
 
-if WITH_MANPAGES
-
 dist_man1_MANS = gpiodetect.man gpioinfo.man gpioget.man gpioset.man gpiofind.man gpiomon.man
 
+if WITH_HELP2MAN
+
 %.man: $(top_builddir)/tools/$(*F)
        help2man $(top_builddir)/tools/$(*F) --include=$(srcdir)/template --output=$(builddir)/$@ --no-info