diff options
author | Petr Viktorin <pviktori@redhat.com> | 2021-01-29 14:45:59 +0100 |
---|---|---|
committer | Michal Domonkos <mdomonko@redhat.com> | 2022-07-01 10:52:14 +0200 |
commit | 504add3efbc03a7ca6438240ef0dc86b67671817 (patch) | |
tree | 45982eae8afbcec81627ff97c56dfa0d6f6c3589 | |
parent | 7b1fc619a5c828828dad7c1f61f525d957b9e2c5 (diff) | |
download | rpm-504add3efbc03a7ca6438240ef0dc86b67671817.tar.gz |
Remove `_with_*` from the documentation
This section uses the `_with_*` macro, which is dangerous when used in
combination with `%bcond` or `%bcond_without` because it doesn't honor
the "default".
The section above already explains what users should do -- some variation of:
%{?with_gnutls:--with static} \
%{!?with_openssl:--without openssl}
... which is more verbose, but works with %bcond` & `%bcond_without`.
(cherry picked from commit 1c2970dda2c828b07fcaec494b9f5abe01ed8cb0)
-rw-r--r-- | docs/manual/conditionalbuilds.md | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/docs/manual/conditionalbuilds.md b/docs/manual/conditionalbuilds.md index a2d913967..bcf8bdeb1 100644 --- a/docs/manual/conditionalbuilds.md +++ b/docs/manual/conditionalbuilds.md @@ -83,16 +83,5 @@ macros which is nicer in other situations, e.g.: Always test for the `with`-condition, not the `without`-counterpart! -## Pass it to `%configure` - -To pass options to configure or other scripts that understand a `--with-foo` or -`--without-foo` parameter, you can use the `%{?_with_foo}` macro: - -``` -%configure \ - %{?_with_gnutls} \ - %{?_with_openssl} -``` - ## References * [macros](https://github.com/rpm-software-management/rpm/blob/master/macros.in) |