Skip to content

Conversation

patrickdepinguin
Copy link

While manpage generation is optional depending on whether
'rst2man'/'rst2man.py' is found, a broken rst2man will still cause build
breakage.

For a build system like Buildroot, where manpages are anyway not needed,
it is preferred to be able to disable manpage generation altogether, to
avoid any impact of a broken user environment.

Add an option of type 'feature' which can be disabled explicitly as follows:
-Dbuild-manual=disabled

In that case, even if rst2man would be present, the manpage would still not
be generated.

The 'feature' option type was added in meson 0.47, so bump the minimum meson
version accordingly.

See https://mesonbuild.com/Build-options.html#features .

Signed-off-by: Thomas De Schampheleire [email protected]

While manpage generation is optional depending on whether
'rst2man'/'rst2man.py' is found, a broken rst2man will still cause build
breakage.

For a build system like Buildroot, where manpages are anyway not needed,
it is preferred to be able to disable manpage generation altogether, to
avoid any impact of a broken user environment.

Add an option of type 'feature' which can be disabled explicitly as follows:
    -Dbuild-manual=disabled

In that case, even if rst2man would be present, the manpage would still not
be generated.

The 'feature' option type was added in meson 0.47, so bump the minimum meson
version accordingly.

See https://mesonbuild.com/Build-options.html#features .

Signed-off-by: Thomas De Schampheleire <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant