Skip to content

Commit bf20900

Browse files
authored
Merge pull request #4086 from grandixximo/fix/asciidoctor-required-for-manpages
build: hard-fail configure if asciidoctor is missing
2 parents 1c36c76 + 0c24fb2 commit bf20900

3 files changed

Lines changed: 10 additions & 11 deletions

File tree

debian/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ elif [ -f /etc/lsb-release ]; then
110110
fi
111111

112112
if [ -n "$ENABLE_BUILD_DOCUMENTATION" ]; then
113-
DOC_DEPENDS="asciidoctor,\n asciidoctor-pdf | ruby-asciidoctor-pdf,\n fonts-dejavu,\n fonts-noto-cjk,\n ghostscript,\n graphviz,\n librsvg2-bin,\n python3-fonttools,\n ruby-rouge,\n w3c-linkchecker"
113+
DOC_DEPENDS="asciidoctor-pdf | ruby-asciidoctor-pdf,\n fonts-dejavu,\n fonts-noto-cjk,\n ghostscript,\n graphviz,\n librsvg2-bin,\n python3-fonttools,\n ruby-rouge,\n w3c-linkchecker"
114114
else
115115
DOC_DEPENDS=''
116116
fi

debian/control.top.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Build-Depends:
1414
@EXTRA_BUILD@,
1515
groff-base <!nodoc>,
1616
imagemagick <!nodoc>,
17-
asciidoctor <!nodoc>,
17+
asciidoctor,
1818
libunicode-linebreak-perl <!nodoc>,
1919
autoconf,
2020
automake,

src/configure.ac

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,16 +1067,15 @@ AC_ARG_ENABLE(build-documentation,
10671067
# --enable-build-documentation=html). =html itself warn-and-disables
10681068
# only the missing PDF tools; users who want PDF best-effort can pass
10691069
# =html and rebuild after installing the missing tools.
1070-
if ( test "$BUILD_DOCS" = "yes" ) ; then
1071-
AC_PATH_PROG(ASCIIDOCTOR,asciidoctor,"none")
1072-
if ( test "none" = "$ASCIIDOCTOR" ) ; then
1073-
AC_MSG_WARN([no asciidoctor, documentation cannot be built
1074-
install with "sudo apt-get install asciidoctor"])
1075-
BUILD_DOCS=no
1076-
BUILD_DOCS_PDF=no
1077-
BUILD_DOCS_HTML=no
1078-
fi
1070+
# halcompile manpages need asciidoctor regardless of BUILD_DOCS.
1071+
AC_PATH_PROG(ASCIIDOCTOR,asciidoctor,"none")
1072+
if ( test "none" = "$ASCIIDOCTOR" ) ; then
1073+
AC_MSG_ERROR([no asciidoctor, manpages cannot be built
1074+
install with "sudo apt-get install asciidoctor" on Debian / Ubuntu,
1075+
"sudo dnf install rubygem-asciidoctor" on Fedora, or "gem install asciidoctor"])
1076+
fi
10791077

1078+
if ( test "$BUILD_DOCS" = "yes" ) ; then
10801079
if ( test "$BUILD_DOCS" = "yes" ) ; then
10811080
AC_PATH_PROG(GS,gs,"none")
10821081
if ( test "none" = "$GS" ) ; then

0 commit comments

Comments
 (0)