config: Show error if rst2man not found when manpages are enabled
PATCH 1/1 config: Show error if rst2man not found when manpages are enabled
From: Tedd Ho-Jeong An <[email protected]>
This patch adds a check if the conversion tool is installed when the manpages is enabled, and show error if it is not installed.
--- configure.ac | 3 +++ 1 file changed, 3 insertions(+)
configure.ac +3 -0
@@ -328,6 +328,9 @@ AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], [enable_manpages=${enableval}]) if (test "${enable_manpages}" != "no"); then AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], "no") + if (test "${RST2MAN}" = "no" ); then + AC_MSG_ERROR([rst2man is required]) + fi fi AM_CONDITIONAL(MANPAGES, test "${enable_manpages}" = "yes") AM_CONDITIONAL(RUN_RST2MAN, test "${enable_manpages}" = "yes" && test "${RST2MAN}" != "no")
Signature · 1 line
2.26.3
Luiz Augusto von Dentz
maintainerHi Tedd,
Quoted 14 lines · Tedd Ho-Jeong An
From: Tedd Ho-Jeong An <[email protected]>
This patch adds a check if the conversion tool is installed when the manpages is enabled, and show error if it is not installed.
--- configure.ac | 3 +++ 1 file changed, 3 insertions(+)configure.ac +0
-0
configure.ac AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], · line 332
Quoted 5 lines
configure.ac +2
-0@@ -328,6 +328,9 @@ AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], [enable_manpages=${enableval}]) if (test "${enable_manpages}" != "no"); then AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], "no") + if (test "${RST2MAN}" = "no" ); then + AC_MSG_ERROR([rst2man is required])
I guess we can mention that it is typically packaged with python-docutils e.g: rstman is required: install python-docutils or alternatively we check python-docutils with pkgconfig since it will be a hard dependency anyway.
Quoted 7 lines
configure.ac +1
-1+ fi fi AM_CONDITIONAL(MANPAGES, test "${enable_manpages}" = "yes") AM_CONDITIONAL(RUN_RST2MAN, test "${enable_manpages}" = "yes" && test "${RST2MAN}" != "no") --2.26.3
Signature · 1 line
Luiz Augusto von Dentz
Hi Luiz,
Quoted 11 lines · Luiz Augusto von Dentz
Hi Tedd,
Quoted 8 lines · Tedd Ho-Jeong An
From: Tedd Ho-Jeong An <[email protected]>
This patch adds a check if the conversion tool is installed when the manpages is enabled, and show error if it is not installed.
--- configure.ac | 3 +++ 1 file changed, 3 insertions(+)
Quoted 15 lines
configure.ac AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], · line 332
Quoted 10 lines
configure.ac +2
-0@@ -328,6 +328,9 @@ AC_ARG_ENABLE(manpages, AC_HELP_STRING([--enable-manpages], [enable_manpages=${enableval}]) if (test "${enable_manpages}" != "no"); then AC_CHECK_PROGS(RST2MAN, [rst2man rst2man.py], "no") + if (test "${RST2MAN}" = "no" ); then + AC_MSG_ERROR([rst2man is required])I guess we can mention that it is typically packaged with python-docutils e.g: rstman is required: install python-docutils or alternatively we check python-docutils with pkgconfig since it will be a hard dependency anyway.
Just to keep the consistency with other errors in configure.ac, I think it is better to say like it instead of mentioning the package name.
Also, there is a python3-docutils and python-docutils depending on the python version that user is using. So it may confuse the user, and the package name may different for other distros (I didn't check though...).
Quoted 10 lines
Quoted 8 lines
configure.ac +1
-1+ fi fi AM_CONDITIONAL(MANPAGES, test "${enable_manpages}" = "yes") AM_CONDITIONAL(RUN_RST2MAN, test "${enable_manpages}" = "yes" && test "${RST2MAN}" != "no") --2.26.3
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=480621
---Test result---
Test Summary:
CheckPatch PASS 0.66 seconds GitLint PASS 0.14 seconds Prep - Setup ELL PASS 52.43 seconds Build - Prep PASS 0.16 seconds Build - Configure PASS 9.31 seconds Build - Make PASS 220.57 seconds Make Check PASS 9.17 seconds Make Dist PASS 13.43 seconds Make Dist - Configure PASS 5.48 seconds Make Dist - Make PASS 89.69 seconds Build w/ext ELL - Configure PASS 9.07 seconds Build w/ext ELL - Make PASS 212.28 seconds
Details
##############################
Test: CheckPatch - PASS
Desc: Run checkpatch.pl script with rule in .checkpatch.conf
##############################
Test: GitLint - PASS
Desc: Run gitlint with rule in .gitlint
##############################
Test: Prep - Setup ELL - PASS
Desc: Clone, build, and install ELL
##############################
Test: Build - Prep - PASS
Desc: Prepare environment for build
##############################
Test: Build - Configure - PASS
Desc: Configure the BlueZ source tree
##############################
Test: Build - Make - PASS
Desc: Build the BlueZ source tree
##############################
Test: Make Check - PASS
Desc: Run 'make check'
##############################
Test: Make Dist - PASS
Desc: Run 'make dist' and build the distribution tarball
##############################
Test: Make Dist - Configure - PASS
Desc: Configure the source from distribution tarball
##############################
Test: Make Dist - Make - PASS
Desc: Build the source from distribution tarball
##############################
Test: Build w/ext ELL - Configure - PASS
Desc: Configure BlueZ source with '--enable-external-ell' configuration
##############################
Test: Build w/ext ELL - Make - PASS
Desc: Build BlueZ source with '--enable-external-ell' configuration
---
Regards,
Linux Bluetooth