Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meson: allow explicitly disabling manpage generation #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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