[Rpm-maint] [rpm-software-management/rpm] Add _without_check macro (#1256)
Sérgio Basto
notifications at github.com
Wed Dec 7 12:57:22 UTC 2022
> One way to fix this could be extending bcond_with and bcond_without to %undefine the with_ macro in the else case. That way the defaults could be overwritten by later lines. This sounds a bit like a bad feature to advertise to packagers but may be ok for this.
yeah that is other problem ,
```
%bcond_with static
%bcond_without static
%if %{with static}
echo "static is enabled on 1 "
%endif
%undefine with_static
%if %{with static}
echo "static is enabled on 2 "
%endif
```
rpmspec --parse above first "with static" will be true but the second "with static" will not , the second is the correct
so %bcond_without , as @ffesti also concluded should be %undefine the `with_` macro
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1256#issuecomment-1340927837
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1256/c1340927837 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20221207/af7ab241/attachment.html>
More information about the Rpm-maint
mailing list